With some code files I get an access violation when I use a rule (--rule or --rule-file) regardless of the regex. This only happens when running on a project.
This can be broken down to the following call: cppcheck.exe --enable=warning --library=qt.cfg --exception-handling --rule=".+" --project=SomePrj.vcxproj
Unfortunately I can't give a complete example, because surprisingly it works again as soon as I extract the project from our SCM. So maybe its caused by some implicit includes.
I could narrow the AV down to the tokenlist, which seems to be 'simple' by default, despite being deprecated (Handling of "simple" rules is deprecated and will be removed in Cppcheck 2.5.). If I set it to 'normal' the check will run without any problems.
The <tokenlist> option for the rule file does not seem to be documented anywhere (except for the manual-ja.docbook, which I unfortunately cannot read) and cannot be set on the command line.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
With some code files I get an access violation when I use a rule (
--rule
or--rule-file
) regardless of the regex. This only happens when running on a project.This can be broken down to the following call:
cppcheck.exe --enable=warning --library=qt.cfg --exception-handling --rule=".+" --project=SomePrj.vcxproj
Unfortunately I can't give a complete example, because surprisingly it works again as soon as I extract the project from our SCM. So maybe its caused by some implicit includes.
One of the files is part of KDSoap: converter_clientstub.cpp
The other AV I've got twice, but is caused by the same call but other projects:
I could narrow the AV down to the tokenlist, which seems to be 'simple' by default, despite being deprecated (Handling of "simple" rules is deprecated and will be removed in Cppcheck 2.5.). If I set it to 'normal' the check will run without any problems.
I've included an example in the zip attached to my 'multiple thread' issue.
The
<tokenlist>
option for the rule file does not seem to be documented anywhere (except for the manual-ja.docbook, which I unfortunately cannot read) and cannot be set on the command line.