使用LibTooling对C++代码进行ATS分析获取项目的分析模型文件。 分析模型包含类模型,方法模型,调用关系,代码行数信息,圈复杂度等等。
略
# vcpkg integrate bash
# vcpkg integrate x-fish
vcpkg integrate zsh
brew install ninja
./build.sh
ln -s /usr/local/lib/clang/ ./install/lib/clang # 如果运行分析时输出错误信息,大概率是因为没有做这一步
# 接着编辑toml配置文件,最后运行
./install/bin/CXXScanner
https://github.com/sourcegraph/lsif-clang If you get missing header warnings (possible due to divergence between lsif-clang and Apple Clang), use an extra flag: --extra-arg="-resource-dir=$(clang -print-resource-dir)" compile_commands.json
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2023 yilongdong