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:
Daniel Marjamäki 2020-09-04 18:30:29 +02:00
parent 7d01ad5b50
commit da1de50deb
3 changed files with 8 additions and 8 deletions

View File

@ -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"

View File

@ -445,7 +445,7 @@
<item>
<widget class="QRadioButton" name="mBtnClangParser">
<property name="text">
<string>Clang</string>
<string>Clang (experimental)</string>
</property>
</widget>
</item>

View File

@ -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`.