[cfe-commits] r64629 - in /cfe/trunk: include/clang/AST/DeclBase.h include/clang/AST/DeclNodes.def lib/AST/DeclBase.cpp
Douglas Gregor
dgregor at apple.com
Mon Feb 16 08:15:15 PST 2009
On Feb 16, 2009, at 6:28 AM, Argiris Kirtzidis wrote:
> Author: akirtzidis
> Date: Mon Feb 16 08:28:33 2009
> New Revision: 64629
>
> URL: http://llvm.org/viewvc/llvm-project?rev=64629&view=rev
> Log:
> Make DeclContexts maintenance a bit easier.
>
> -In DeclNodes.def, only mark as DeclContexts the top classes that
> directly derive from DeclContext. If the Decl has subclasses,
> it should be marked with DECL_CONTEXT_BASE.
>
> -Use DeclNodes.def to automate the DeclContext::classof and
> DeclContext::CastTo definitions.
Thank you for doing this! This change (and the several that follow)
will certainly make DeclContext maintenance easier.
- Doug
More information about the cfe-commits
mailing list