[cfe-commits] r75602 - in /cfe/trunk: include/clang/AST/Decl.h lib/AST/Decl.cpp

Douglas Gregor dgregor at apple.com
Mon Jul 13 23:57:45 PDT 2009


On Jul 14, 2009, at 5:19 AM, Argiris Kirtzidis wrote:

> Author: akirtzidis
> Date: Mon Jul 13 22:19:57 2009
> New Revision: 75602
>
> URL: http://llvm.org/viewvc/llvm-project?rev=75602&view=rev
> Log:
> Introduce FunctionDecl::getFirstDeclaration() and  
> VarDecl::getFirstDeclaration().
>
> For multiple redeclarations they return the first one.

ASTContext::getCanonicalDecl does the same thing for functions,  
variables, function templates, class templates, etc. Why not use that?

	- Doug



More information about the cfe-commits mailing list