When using ifdefs to manage "similar" classes this is a false positive
error: ctuOneDefinitionRuleViolation - The one definition rule is violated, different classes/structs have the same name 'DupeSymbolExample'
#ifdef NOT_REALLY_DEFINED class DupeSymbolExample { public: DupeSymbolExample() {} void DifferentFunction() { } }; #else class DupeSymbolExample { public: DupeSymbolExample() {} void OtherDifferentFunction() { } }; #endif
Sounds similar to this ticket: https://trac.cppcheck.net/ticket/10431
Agreed, can someone reset my password on trac?
ok I can do it.. can you send me a new htpasswd hash somehow?
Log in to post a comment.
When using ifdefs to manage "similar" classes this is a false positive
error: ctuOneDefinitionRuleViolation - The one definition rule is violated, different classes/structs have the same name 'DupeSymbolExample'
Sounds similar to this ticket: https://trac.cppcheck.net/ticket/10431
Agreed, can someone reset my password on trac?
ok I can do it.. can you send me a new htpasswd hash somehow?