在<path>cppcheck中--clang=和--addon-python=<python解释器>有什么用?



在cppcheck中使用--clang=和--addon python=有什么用?请解释如何将这些选项与cppcheck一起使用??

来自--help输出:

--clang=<path>       Experimental: Use Clang parser instead of the builtin Cppcheck
parser. Takes the executable as optional parameter and
defaults to `clang`. Cppcheck will run the given Clang
executable, import the Clang AST and convert it into
Cppcheck data. After that the normal Cppcheck analysis is
used. You must have the executable in PATH if no path is
given.
--addon-python=<python interpreter>
You can specify the python interpreter either in the
addon json files or through this command line option.
If not present, Cppcheck will try "python3" first and
then "python".

最新更新