clang-check
Check basic errors and work with Clang's Abstract Syntax Tree (AST). Part of Clang's LibTooling and is useful for debugging and analyzing C/C++ code. More information: https://manned.org/clang-check.
- Run default checks on a source file:
clang-check --
- Dump the Abstract Syntax Tree for debugging:
clang-check -ast-dump --
- Filter AST by Name:
clang-check -ast-dump -ast-dump-filter FunctionName
- Pretty-Print AST:
clang-check -ast-print --
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
