[cfe-dev] Check virtual calls in ctor or dtor

Ted Kremenek kremenek at apple.com
Mon Sep 12 11:36:14 PDT 2011


Hi Lei,

Do you think this would be better implemented as a compiler warning, instead of a static analysis check?

Ted

On Sep 12, 2011, at 6:45 AM, 章磊 wrote:

> Hi Clang,
> 
> The attached patch adds a C++ syntax Checker to clang, it checks whether there is a virtual call in the constructor or destructor. I add a file to svn to implement this checker, because i think there may be some other syntax checkers we could write here.
> 
> I will appreciate it if there are any advice about this patch.
> 
> -- 
> Best regards!
> 
> Lei Zhang
> <VirtualCallinCtorOrDtor.patch>_______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list