I wrote my own clang tool following https://clang.llvm.org/docs/LibASTMatchersTutorial.html
The purpose of the tool is to generate diagrams based on specific source files. Until now as a prototype I worked with some basic cpp code which didn't have any dependencies. However the target project is large and uses CMake, leading to include errors when I run the tool (as expected).
I found this question with a similar problem: clang tool : include path, however due to the scale of the project I think supplying the include paths one by one like that is not really viable.
Is it possible to somehow reuse the CMake structure to feed in include paths, or recursively look for headers inside the root folder?