mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-21 09:20:38 +00:00
95ec67b143
* include/libabigail/abg-ir.h (struct ir_node_visitor, struct traversable): New interfaces. (translation_unit, scope_decl, type_decl, qualified_type_def) (pointer_type_def, reference_type_def, enum_type_decl) (typedef_decl, var_decl, function_decl, data_member) (member_function, member_function_template) (member_class_template): Implement the traversable interface, overload the traversable::traverse pure virtual function. * src/abg-ir.cc ({translation_unit, scope_decl, type_decl, namespace_decl, qualified_type_def, pointer_type_def, reference_type_def, enum_type_decl, typedef_decl, var_decl, function_decl, class_decl::member_function, class_decl, class_decl::data_member, class_decl::member_function_template, class_decl::member_class_template, function_template_decl, class_template_decl, }::traverse): Implement traversal. (ir_node_visitor::visit): New method, overloaded for the types above, which implement the traversable interface. * tests/test-walker.cc: New test case program to showcase how to use the new traversal API. * tests/makefile.am: Add test-walker.cc to the build system.
57 lines
1.4 KiB
Makefile
57 lines
1.4 KiB
Makefile
TESTS= \
|
|
runtestreadwrite \
|
|
runtestsvg \
|
|
runtestdot
|
|
|
|
noinst_PROGRAMS= $(TESTS) testwalker
|
|
|
|
noinst_LTLIBRARIES = libtestutils.la
|
|
|
|
libtestutils_la_SOURCES=\
|
|
test-utils.h \
|
|
test-utils.cc
|
|
|
|
libtestutils_la_CXXFLAGS= \
|
|
-DABIGAIL_SRC_DIR=\"${top_srcdir}\" \
|
|
-DABIGAIL_BUILD_DIR=\"${top_builddir}\"
|
|
|
|
runtestreadwrite_SOURCES=test-read-write.cc
|
|
runtestreadwrite_LDADD=libtestutils.la $(top_builddir)/src/libabigail.la
|
|
|
|
runtestsvg_SOURCES=test-svg.cc
|
|
runtestsvg_LDADD=$(top_builddir)/src/libabigail.la
|
|
|
|
runtestdot_SOURCES=test-dot.cc
|
|
runtestdot_LDADD=$(top_builddir)/src/libabigail.la
|
|
|
|
testwalker_SOURCES=test-walker.cc
|
|
testwalker_LDADD=$(top_builddir)/src/libabigail.la
|
|
|
|
AM_CPPFLAGS=-I${top_srcdir}/include/libabigail -I${top_builddir}/include/libabigail
|
|
AM_CXXFLAGS="-std=gnu++11"
|
|
|
|
EXTRA_DIST= \
|
|
data/test-read-write/test0.xml \
|
|
data/test-read-write/test1.xml \
|
|
data/test-read-write/test2.xml \
|
|
data/test-read-write/test3.xml \
|
|
data/test-read-write/test4.xml \
|
|
data/test-read-write/test5.xml \
|
|
data/test-read-write/test6.xml \
|
|
data/test-read-write/test7.xml \
|
|
data/test-read-write/test8.xml \
|
|
data/test-read-write/test9.xml \
|
|
data/test-read-write/test10.xml \
|
|
data/test-read-write/test11.xml \
|
|
data/test-read-write/test12.xml \
|
|
data/test-read-write/test13.xml \
|
|
data/test-read-write/test14.xml \
|
|
data/test-read-write/test15.xml \
|
|
data/test-read-write/test16.xml
|
|
|
|
clean-local: clean-local-check
|
|
.PHONY: clean-local-check
|
|
|
|
clean-local-check:
|
|
-rm -rf ${builddir}/output *.svg *.gv
|