A collection of examples about llvm and clang.
cmake arguments:
-DLLVM_DIR=${llvm-install-path}/lib/cmake/llvm
-DClang_DIR=${llvm-install-path}/lib/cmake/clang
all testcases are tested use clang 16.0.0
All Examples:
tooling::buildASTFromCodeWithArgs()
, and dump clang AST using CreateASTDumper
APIASTFrontendAction
ASTImporter
RecursiveASTVisitor
RecursiveASTVisitor