summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/DeclSpec.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-02-25 02:25:35 +0000
committerDouglas Gregor <dgregor@apple.com>2011-02-25 02:25:35 +0000
commit144548072d38ab9ad76ed40674482df4704a0d43 (patch)
tree30eac55ddfdf1dfed7431700699535844aa332e8 /clang/lib/Sema/DeclSpec.cpp
parent0e65ce3de82cc69cd2cb0d37c8198d873ca7ddde (diff)
downloadbcm5719-llvm-144548072d38ab9ad76ed40674482df4704a0d43.tar.gz
bcm5719-llvm-144548072d38ab9ad76ed40674482df4704a0d43.zip
Use NestedNameSpecifierLoc within out-of-line variables, function, and
tag definitions. Also, add support for template instantiation of NestedNameSpecifierLocs. llvm-svn: 126470
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
-rw-r--r--clang/lib/Sema/DeclSpec.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp
index 2d853742808..037594a44a1 100644
--- a/clang/lib/Sema/DeclSpec.cpp
+++ b/clang/lib/Sema/DeclSpec.cpp
@@ -265,7 +265,8 @@ void CXXScopeSpec::Adopt(NestedNameSpecifierLoc Other) {
BufferCapacity = 0;
}
-NestedNameSpecifierLoc CXXScopeSpec::getWithLocInContext(ASTContext &Context) {
+NestedNameSpecifierLoc
+CXXScopeSpec::getWithLocInContext(ASTContext &Context) const {
if (isEmpty() || isInvalid())
return NestedNameSpecifierLoc();
OpenPOWER on IntegriCloud