State explicitly that we are intentionally not providing macro completions for declarator name completions

llvm-svn: 111898
This commit is contained in:
Douglas Gregor
2010-08-24 04:59:56 +00:00
parent 5b297da1de
commit 56ccce0064

View File

@@ -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