We're using cppCheck for static code analysis, and are getting a few syntaxError failures. The interesting thing is that the error is reported at a point in the middle of a very long typename defined by Windows::Foundation. Most of our library uses straight standard C++14, but one platform needs to use UWP and managed code to interface with a 3rd party SDK. This call:
Note that column 98 is right in the middle of the AsyncOperationWithProgressCompletedHandler type name.
Update: While looking at another syntax error, I realized that I can't be sure about the column position within the line. How is the tool treating tabs?
Last edit: John Schmitz 2021-08-03
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We're using cppCheck for static code analysis, and are getting a few syntaxError failures. The interesting thing is that the error is reported at a point in the middle of a very long typename defined by Windows::Foundation. Most of our library uses straight standard C++14, but one platform needs to use UWP and managed code to interface with a 3rd party SDK. This call:
causes this cppCheck error:
Note that column 98 is right in the middle of the AsyncOperationWithProgressCompletedHandler type name.
Update: While looking at another syntax error, I realized that I can't be sure about the column position within the line. How is the tool treating tabs?
Last edit: John Schmitz 2021-08-03
As far as I know, cppcheck makes no claims of handling that sort of code (C#, C++/CX...?), so maybe you can skip analysis of those files?
Last edit: CHR 2021-08-04
yes unfortunately managed c++ is outside the scope for cppcheck.
a tab is treated as a single character.