[cfe-dev] No virtual destructor in ExternalSemaSource
rjmccall at apple.com
Tue Feb 1 12:01:06 PST 2011
On Feb 1, 2011, at 3:35 AM, Vassil Vassilev wrote:
> I found out that there is no virtual destructor for ExternalSemaSource:
> include/clang/Sema/ExternalSemaSource.h:33: ~ExternalSemaSource();
> include/clang/AST/ExternalASTSource.h:56: virtual
> Is that bug or I am misunderstanding something? Shall we (Axel
> Naumann and me) check in patch.
Methods with the same signature as virtual methods in a base class are
implicitly virtual, and this applies to destructors, too.
More information about the cfe-dev