Cppcheck show a false positive about 'The class 'xxx' does not have a constructor although it has private member variables. [noConstructor]' style warning when using cpp 'using' keyword with same alias than the class name.
A related issue was previously fixed (https://github.com/danmar/cppcheck/pull/3160), but was incomplete.
Hello,
Cppcheck show a false positive about 'The class 'xxx' does not have a constructor although it has private member variables. [noConstructor]' style warning when using cpp 'using' keyword with same alias than the class name.
A related issue was previously fixed (https://github.com/danmar/cppcheck/pull/3160), but was incomplete.
You will find a PoC with details here: https://pastebin.com/4JERvmDH
Thank you for the tool,
Paul
Thanks! I created ticket https://trac.cppcheck.net/ticket/10287
Last edit: Daniel Marjamäki 2021-05-21