Cppcheck exits before finishing the 'result.xml', leaving it incomplete.
If I run cppcheck in debug mode, a debug assertion fails in TemplateSimplifier::expandTemplate():
I found these temporary solutions to avoid the crash:
1. add a semicolon after the body of the 'create()' method
2. move the 'create()' method implementation outside of the class
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use cppcheck version 2.6.
Below is a class that has a static template method (create()):
The 'create()' method is used in another source file:
I use the following command:
Cppcheck exits before finishing the 'result.xml', leaving it incomplete.
If I run cppcheck in debug mode, a debug assertion fails in TemplateSimplifier::expandTemplate():
I found these temporary solutions to avoid the crash:
1. add a semicolon after the body of the 'create()' method
2. move the 'create()' method implementation outside of the class
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/10651