]> granicus.if.org Git - clang/commit
Introduce Decl::getPreviousDecl() and Decl::getMostRecentDecl(),
authorDouglas Gregor <dgregor@apple.com>
Sat, 14 Jan 2012 15:55:47 +0000 (15:55 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 14 Jan 2012 15:55:47 +0000 (15:55 +0000)
commitf785a7d611404cf4747287a2bbc59b4d0e6a5a8c
tree96bf85203538403a6d581763eee3f0a630cd17fd
parent9fcbf2da816a24d39ed37a54ff91fba30362dd8a
Introduce Decl::getPreviousDecl() and Decl::getMostRecentDecl(),
virtual functions that provide previous/most recent redeclaration
information for any declaration. Use this to eliminate the redundant,
less efficient getPreviousDecl() functions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148184 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/AST/DeclBase.h
include/clang/AST/DeclObjC.h
include/clang/AST/DeclTemplate.h
lib/Sema/SemaTemplate.cpp
lib/Serialization/ASTReaderDecl.cpp