I have a simple derived class definition containing the following: void TriangulationReport(const std::wstring& i_report) override;
The base class has: virtual void TriangulationReport(const std::wstring& i_report);
CppCheck reports:
missingOverride (style)
The function TriangulationReport overrides a function in a base class but is not marked with a override specifier.
The override specifier is right there in the code, am I misinterpreting the report, or is CppCheck somehow not seeing the override spec? (I've tried with and without "virtual" in front of the override as well).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That's really tricky as it is a huge codebase and the CppCheck run is server-based with no direct ability for me to run it locally. I will attempt to see if I can reproduce, but I'm not even sure what might be the environmental cause of this in the code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a simple derived class definition containing the following:
void TriangulationReport(const std::wstring& i_report) override;
The base class has:
virtual void TriangulationReport(const std::wstring& i_report);
CppCheck reports:
The override specifier is right there in the code, am I misinterpreting the report, or is CppCheck somehow not seeing the override spec? (I've tried with and without "virtual" in front of the override as well).
Please post code sufficient to reproduce the issue.
That's really tricky as it is a huge codebase and the CppCheck run is server-based with no direct ability for me to run it locally. I will attempt to see if I can reproduce, but I'm not even sure what might be the environmental cause of this in the code.
Maybe you can identify the file that is causing this, then run cppcheck on preprocessor output (
-E
switch) and start reducing from there.