aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-24 04:59:56 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-24 04:59:56 +0000
commit4497dd49f78eb5e1a7c3f19d1a13564f79e12341 (patch)
treefedc833b21e742d12f0d98cf7bba069c18b80931 /lib/Sema/SemaCodeComplete.cpp
parent3bf185b7e607ea5081c43ba315a9f0161f4aa6c6 (diff)
State explicitly that we are intentionally not providing macro completions for declarator name completions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111898 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
-rw-r--r--lib/Sema/SemaCodeComplete.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/SemaCodeComplete.cpp b/lib/Sema/SemaCodeComplete.cpp
index 3c2c54f952..be94c27158 100644
--- a/lib/Sema/SemaCodeComplete.cpp
+++ b/lib/Sema/SemaCodeComplete.cpp
@@ -2380,6 +2380,9 @@ void Sema::CodeCompleteDeclarator(Scope *S,
}
Results.ExitScope();
+ // Note that we intentionally suppress macro results here, since we do not
+ // encourage using macros to produce the names of entities.
+
HandleCodeCompleteResults(this, CodeCompleter,
AllowNestedNameSpecifiers
? CodeCompletionContext::CCC_PotentiallyQualifiedName