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"
|
||||
" --check-library Show information messages when library files have\n"
|
||||
" incomplete info.\n"
|
||||
" --clang Use Clang parser instead of the builtin Cppcheck\n"
|
||||
" parser. Cppcheck executes `clang`. The Clang AST is\n"
|
||||
" imported and converted into Cppcheck data. After that\n"
|
||||
" the normal Cppcheck analysis is used. You must have\n"
|
||||
" `clang` in PATH.\n"
|
||||
" --clang Experimental: Use Clang parser instead of the builtin\n"
|
||||
" Cppcheck parser. Cppcheck executes `clang`. The Clang\n"
|
||||
" AST is imported and converted into Cppcheck data.\n"
|
||||
" After that the normal Cppcheck analysis is used. You\n"
|
||||
" must have `clang` in PATH.\n"
|
||||
" --config-exclude=<dir>\n"
|
||||
" Path (prefix) to be excluded from configuration\n"
|
||||
" checking. Preprocessor configurations defined in\n"
|
||||
|
|
|
@ -445,7 +445,7 @@
|
|||
<item>
|
||||
<widget class="QRadioButton" name="mBtnClangParser">
|
||||
<property name="text">
|
||||
<string>Clang</string>
|
||||
<string>Clang (experimental)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -108,9 +108,9 @@ This option is only valid when supplying an input directory. To ignore multiple
|
|||
|
||||
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`.
|
||||
|
||||
|
|
Loading…
Reference in New Issue