]> granicus.if.org Git - clang/commit
Change DeclContextLookup(Const)Result to (Mutable)ArrayRef<NamedDecl*>, as per review...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 19 Dec 2012 00:45:41 +0000 (00:45 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 19 Dec 2012 00:45:41 +0000 (00:45 +0000)
commit3bc93e3124ad5e7191c4a12dc981c8ee53578193
tree473bface3adcd2064712462246a506969b0284d8
parent8a68da12c71efeeaca0ed24c39288a2117d07f9d
Change DeclContextLookup(Const)Result to (Mutable)ArrayRef<NamedDecl*>, as per review discussion in r170365

This does limit these typedefs to being sequences, but no current usage
requires them to be contiguous (we could expand this to a more general
iterator pair range concept at some point).

Also, it'd be nice if SmallVector were constructible directly from an ArrayRef
but this is a bit tricky since ArrayRef depends on SmallVectorBaseImpl for the
inverse conversion. (& generalizing over all range-like things, while nice,
would require some nontrivial SFINAE I haven't thought about yet)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170482 91177308-0d34-0410-b5e6-96231b3b80d8
22 files changed:
include/clang/AST/DeclBase.h
lib/AST/CXXInheritance.cpp
lib/AST/DeclBase.cpp
lib/AST/DeclCXX.cpp
lib/AST/DeclObjC.cpp
lib/AST/ExprCXX.cpp
lib/CodeGen/CGClass.cpp
lib/Sema/MultiplexExternalSemaSource.cpp
lib/Sema/SemaCodeComplete.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaLambda.cpp
lib/Sema/SemaLookup.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriter.cpp
lib/Serialization/ASTWriterDecl.cpp