Skip to content

Thin wrapper around clang static analyzer to enable cross-translation unit analyses.

License

Notifications You must be signed in to change notification settings

yasushi-saito/clang-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Clang-analyzer

clang-analyzer is a simple Python script that invokes clang++'s static analyzer with cross-translation unit support. It runs the steps described in the following web page:

https://clang.llvm.org/docs/analyzer/user-docs/CrossTranslationUnit.html

Usage

clang-analyzer [-p <compile_command.json_dir>] [--exclude=re] [c++ files...]

You must create a compile_commands.json file that lists the source files and its compile flags.

  • The -p flag sets the directory that contains the compile_commands.json file. It defaults to '.'.

  • All the c++ files in the commandline must appear in compile_commands.json.

  • The --exclude flag sets the regexp patterns to exclude c++ files.

About

Thin wrapper around clang static analyzer to enable cross-translation unit analyses.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages