diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-04-27 04:48:22 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-04-27 04:48:22 +0000 |
commit | 3b887354b1b667c97d070ddc67b5354353c4c07b (patch) | |
tree | 6918d42ba0eff9ecd953365c511ddd0289e3d874 /lib/Sema/SemaTemplate.cpp | |
parent | 173d51286bcaff4b6b76eebf6542d3b1311142e2 (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.cpp | 2 |
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, |