[cfe-commits] r76297 - in /cfe/trunk: include/clang/AST/Decl.h include/clang/AST/Redeclarable.h lib/AST/Decl.cpp
cedric.venet at laposte.net
Sun Jul 19 02:28:51 PDT 2009
Argyrios Kyrtzidis a écrit :
> On Jul 18, 2009, at 1:35 PM, Sebastian Redl wrote:
> > Argyrios Kyrtzidis wrote:
> >> On Jul 18, 2009, at 11:40 AM, Chris Lattner wrote:
> >>> This is nice Argiris, but is there a way to do with with
> >>> containment instead of multiple inheritance?
> How about I make the inheritance private ? The interface will have to
> be duplicated to FunctionDecl and VarDecl (and any other class that
> may use Redeclarable) but at least it will only delegate to the
> implementation of Redeclarable.
If you are ready to duplicate forwarding interface function, you can
just use aggregation(ie make Redeclarable a member variable) and avoid
any problem, no?
More information about the cfe-commits