]> granicus.if.org Git - clang/commit
Introduce the virtual method Decl::getPrimaryDecl().
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 5 Jul 2009 22:21:56 +0000 (22:21 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 5 Jul 2009 22:21:56 +0000 (22:21 +0000)
commitfc7e2a8fbb08f0f496ac6cea0721fe72db8ce240
tree98504c68442080e6cc4571b4bd0d88e207290008
parent07796e1c522921e2b396df36bf9c1f702ffb2fb5
Introduce the virtual method Decl::getPrimaryDecl().

When a Decl subclass can have multiple re-declarations in the same declaration context (like FunctionDecl),
getPrimaryDecl() will return a particular Decl that all of them will point to as the "primary" declaration.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74800 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/AST/DeclBase.h
lib/AST/Decl.cpp