LibTooling is a library to support writing standalone tools based on Clang.
Questions tagged [libtooling]
152 questions
0
votes
1 answer
printing line number of the source codes Stmt using clang libtooling
Hello I'm working with clang libtooling. I need to take a .c file and print the names of all functions present and the lines the function declaration is in. In the ASTRecursive class I have function VisitFunctionDecl and have found the functions but…

Awaid Shaheen
- 95
- 1
- 9
0
votes
2 answers
With libclang (libtooling), how can I enable and disable specific warnings?
I'm trying to use the libclang API to programmatically analyze a C++ project. I have clang compiling fine, and my tool is properly parsing the generated AST, but I can't figure out how to turn on/off specific warnings.
here is the relevant code…

Tristan Zerr
- 1
- 2