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)
commitff7d47a354b7706ea4028ea4b0d0e0e858971b05
tree78a366de36742b3ce063e174e2547174b69943d9
parentbbdb9f26538f889a042432c9e87407ab472db1bf
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)

llvm-svn: 170482
22 files changed:
clang/include/clang/AST/DeclBase.h
clang/lib/AST/CXXInheritance.cpp
clang/lib/AST/DeclBase.cpp
clang/lib/AST/DeclCXX.cpp
clang/lib/AST/DeclObjC.cpp
clang/lib/AST/ExprCXX.cpp
clang/lib/CodeGen/CGClass.cpp
clang/lib/Sema/MultiplexExternalSemaSource.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaInit.cpp
clang/lib/Sema/SemaLambda.cpp
clang/lib/Sema/SemaLookup.cpp
clang/lib/Sema/SemaOverload.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/lib/Sema/TreeTransform.h
clang/lib/Serialization/ASTReaderDecl.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/lib/Serialization/ASTWriterDecl.cpp