[cfe-commits] r76297 - in /cfe/trunk: include/clang/AST/Decl.h include/clang/AST/Redeclarable.h lib/AST/Decl.cpp
Chris Lattner
clattner at apple.com
Sat Jul 18 11:40:10 PDT 2009
On Jul 18, 2009, at 1:50 AM, Argiris Kirtzidis wrote:
> Author: akirtzidis
> Date: Sat Jul 18 03:50:13 2009
> New Revision: 76297
>
> URL: http://llvm.org/viewvc/llvm-project?rev=76297&view=rev
> Log:
> Introduce the Redeclarable template class, which serves as a base
> type defining the common interface for Decls that can be redeclared.
> Make FunctionDecl and VarDecl use it.
This is nice Argiris, but is there a way to do with with containment
instead of multiple inheritance? Alternatively, maybe there should be
a new class between "RedeclarableDecl" that inherits from ValueDecl
that VarDecl and FunctionDecl inherit from.
-Chris
More information about the cfe-commits
mailing list