aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-04-27 04:48:22 +0000
committerDouglas Gregor <dgregor@apple.com>2011-04-27 04:48:22 +0000
commit3b887354b1b667c97d070ddc67b5354353c4c07b (patch)
tree6918d42ba0eff9ecd953365c511ddd0289e3d874 /lib/Sema/SemaTemplate.cpp
parent173d51286bcaff4b6b76eebf6542d3b1311142e2 (diff)
Extend Sema::ClassifyName() to support C++, ironing out a few issues
in the classification of template names and using declarations. We now properly typo-correct the leading identifiers in statements to types, templates, values, etc. As an added bonus, this reduces the number of lookups required for disambiguation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r--lib/Sema/SemaTemplate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp
index 3123f5fc67..3deeedc90d 100644
--- a/lib/Sema/SemaTemplate.cpp
+++ b/lib/Sema/SemaTemplate.cpp
@@ -119,7 +119,7 @@ bool Sema::hasAnyAcceptableTemplateNames(LookupResult &R) {
if (isAcceptableTemplateName(Context, *I))
return true;
- return true;
+ return false;
}
TemplateNameKind Sema::isTemplateName(Scope *S,