Running simplecpp on the code above gives the following output
)
Obviously the closing parenthesis should be grouped together with the rest of the previous line.
I think things go wrong near line 671 in simplecpp.cpp (TokenList::readfile), but I don't know how to fix it properly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Cppcheck 2.4.1 reports
If the line break/continuation is removed, the error disappears. I'm not sure if this is related to cppcheck itself or the preprocessor component.
Running simplecpp on the code above gives the following output
Obviously the closing parenthesis should be grouped together with the rest of the previous line.
I think things go wrong near line 671 in simplecpp.cpp (TokenList::readfile), but I don't know how to fix it properly.
thanks! I can reproduce.. do you have a github account? I would appreciate a ticket in the simplecpp issue tracket; https://github.com/danmar/simplecpp/issues
I have created an issue here: https://github.com/danmar/simplecpp/issues/217