[cfe-dev] Warning when calling virtual functions from constructor/desctructor?

Sean McBride via cfe-dev cfe-dev at lists.llvm.org
Mon Jan 7 14:30:00 PST 2019


On Sun, 6 Jan 2019 22:15:53 +0100, Arnaud Bienner via cfe-dev said:

>I run my patched-clang on the Firefox codebase, without any occurrence of
>the warning. I guess that might be because calling virtual functions from
>constructors/destructors is likely to create issues (like said previously),
>and so is not common in this codebase.

Maybe the Firefox devs already use cppcheck, which can already diagnose that issue:
<https://sourceforge.net/p/cppcheck/wiki/ListOfChecks/>

--

Sean





More information about the cfe-dev mailing list