]> granicus.if.org Git - clang/commitdiff
State explicitly that we are intentionally not providing macro completions for declar...
authorDouglas Gregor <dgregor@apple.com>
Tue, 24 Aug 2010 04:59:56 +0000 (04:59 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 24 Aug 2010 04:59:56 +0000 (04:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111898 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaCodeComplete.cpp

index 3c2c54f952f961723d2214e3dd0a215a0aef46f7..be94c271583ac1102152ca64050c7676a66a3277 100644 (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