Skip to content

codingshark/class-forest

Repository files navigation

https://github.com/codingshark/class-forest.git

Intro:
This tool prints the inheritance graph for C++ source files.

TODO
1.Color template base class
2.Give a legend for the graph
3.Highlight nested class, giving the nesting class

===================================
Build:
1.
clone this project to
clang-llvm/llvm/tools/clang/tools/extra/
2.
add the following line to clang-llvm/llvm/tools/clang/tools/extra/CMakeLists.txt
add_subdirectory(class-forest)
3.
run
$cd clang-llvm/build
$ninja class-forest
4.
find the executable at
clang-llvm/build/bin
5.
Usage:
$class-forest file.cpp -- > dot.gv
$make_svg dot.gv

===================================
Build for Testing:
1.
Build class-forest following above steps
2.
uncomment add_subdirectory(class-forest-tests) in CMakelists.txt, if nacessary.
3.
$ninja class-forest-tests
4.
find the executable at
clang-llvm/build/bin
5.
find the executable at
clang-llvm/build/tools/clang/tools/extra/class-forest/class-forest-tests
6.
run
$class-forest-tests



About

Prints Inheritance graph for C++ source

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published