Clang: The clang parser import should be considered to be an experimental feature for now. There are many problems to solve.
This commit is contained in:
parent
7d01ad5b50
commit
da1de50deb
|
@ -972,11 +972,11 @@ void CmdLineParser::printHelp()
|
||||||
" analysis is disabled by this flag.\n"
|
" analysis is disabled by this flag.\n"
|
||||||
" --check-library Show information messages when library files have\n"
|
" --check-library Show information messages when library files have\n"
|
||||||
" incomplete info.\n"
|
" incomplete info.\n"
|
||||||
" --clang Use Clang parser instead of the builtin Cppcheck\n"
|
" --clang Experimental: Use Clang parser instead of the builtin\n"
|
||||||
" parser. Cppcheck executes `clang`. The Clang AST is\n"
|
" Cppcheck parser. Cppcheck executes `clang`. The Clang\n"
|
||||||
" imported and converted into Cppcheck data. After that\n"
|
" AST is imported and converted into Cppcheck data.\n"
|
||||||
" the normal Cppcheck analysis is used. You must have\n"
|
" After that the normal Cppcheck analysis is used. You\n"
|
||||||
" `clang` in PATH.\n"
|
" must have `clang` in PATH.\n"
|
||||||
" --config-exclude=<dir>\n"
|
" --config-exclude=<dir>\n"
|
||||||
" Path (prefix) to be excluded from configuration\n"
|
" Path (prefix) to be excluded from configuration\n"
|
||||||
" checking. Preprocessor configurations defined in\n"
|
" checking. Preprocessor configurations defined in\n"
|
||||||
|
|
|
@ -445,7 +445,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QRadioButton" name="mBtnClangParser">
|
<widget class="QRadioButton" name="mBtnClangParser">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Clang</string>
|
<string>Clang (experimental)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -108,9 +108,9 @@ This option is only valid when supplying an input directory. To ignore multiple
|
||||||
|
|
||||||
cppcheck -isrc/b -isrc/c
|
cppcheck -isrc/b -isrc/c
|
||||||
|
|
||||||
### Clang parser
|
### Clang parser (experimental)
|
||||||
|
|
||||||
By default Cppcheck uses an internal C/C++ parser. However it is possible to use the Clang parser instead.
|
By default Cppcheck uses an internal C/C++ parser. However there is an experimental option to use the Clang parser instead.
|
||||||
|
|
||||||
Install `clang`. Then use Cppcheck option `--clang`.
|
Install `clang`. Then use Cppcheck option `--clang`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue