summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorLarisse Voufo <lvoufo@google.com>2013-08-06 01:03:05 +0000
committerLarisse Voufo <lvoufo@google.com>2013-08-06 01:03:05 +0000
commit39a1e507ff0bef4bd6b2fdbab4e38583d2679617 (patch)
tree93b6d63dcb7906152a4879eeaf765de5852aacd4 /clang/lib/AST/DeclBase.cpp
parent6f7213cb93a3a6fe4e3dbbee0c1f0d2b34821523 (diff)
downloadbcm5719-llvm-39a1e507ff0bef4bd6b2fdbab4e38583d2679617.tar.gz
bcm5719-llvm-39a1e507ff0bef4bd6b2fdbab4e38583d2679617.zip
Started implementing variable templates. Top level declarations should be fully supported, up to some limitations documented as FIXMEs or TODO. Static data member templates work very partially. Static data member templates of class templates need particular attention...
llvm-svn: 187762
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 13bde4ca860..e99f7ec5b06 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -538,6 +538,7 @@ unsigned Decl::getIdentifierNamespaceForKind(Kind DeclKind) {
return IDNS_Namespace;
case FunctionTemplate:
+ case VarTemplate:
return IDNS_Ordinary;
case ClassTemplate:
@@ -560,6 +561,8 @@ unsigned Decl::getIdentifierNamespaceForKind(Kind DeclKind) {
case ClassTemplateSpecialization:
case ClassTemplatePartialSpecialization:
case ClassScopeFunctionSpecialization:
+ case VarTemplateSpecialization:
+ case VarTemplatePartialSpecialization:
case ObjCImplementation:
case ObjCCategory:
case ObjCCategoryImpl:
OpenPOWER on IntegriCloud