clang-check
Check basic errors and work with Clang's Abstract Syntax Tree (AST). tldr-pages
On several platforms
Several platforms
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.
Run default checks on a source file
clang-check path/to/file.cpp --IdentifyDump the Abstract Syntax Tree for debugging
clang-check path/to/file.cpp -ast-dump --IdentifyFilter AST by Name
clang-check path/to/file.cpp -ast-dump -ast-dump-filter FunctionNameIdentifyPretty-Print AST
clang-check path/to/file.cpp -ast-print --Identify