AST2DB uses clang
to parse C/C++ code and stores AST node information into an SQLite database.
Current development is completed in the following environment:
- Operating System: linux-x86_64
- Compiler: g++ (gcc version 14.2.1)
- Dependencies
- clang: clang version 19.1.7
$ make # Compile
$ make help # View help information
$ ./build/demo <Target C/CPP File> # Run
Using ./tests/slight.cc
as the target file for testing:
$ ./build/demo ./tests/slight.cc
- Parse C/C++ code
- Record variable declaration & reference nodes
- Record function declaration & call nodes ...
- Store AST node information in an SQLite database
- Support exporting query results as CSV files ...