From: Douglas Gregor Date: Tue, 24 Aug 2010 04:59:56 +0000 (+0000) Subject: State explicitly that we are intentionally not providing macro completions for declar... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4497dd49f78eb5e1a7c3f19d1a13564f79e12341;p=clang 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 --- 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