CmdID

CmdID / Commands

clang-check

Check basic errors and work with Clang's Abstract Syntax Tree (AST). tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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 --Identify

Dump the Abstract Syntax Tree for debugging

clang-check path/to/file.cpp -ast-dump --Identify

Filter AST by Name

clang-check path/to/file.cpp -ast-dump -ast-dump-filter FunctionNameIdentify

Pretty-Print AST

clang-check path/to/file.cpp -ast-print --Identify