Make the cursor kind of macro-name-only completions produced by
ASTUnit match those produced directly by code completion. Test case is
forthcoming.

llvm-svn: 112063
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp
index a22761d..16aa6e3 100644
--- a/clang/lib/Frontend/ASTUnit.cpp
+++ b/clang/lib/Frontend/ASTUnit.cpp
@@ -1628,6 +1628,7 @@
     
     // Adjust priority based on similar type classes.
     unsigned Priority = C->Priority;
+    CXCursorKind CursorKind = C->Kind;
     CodeCompletionString *Completion = C->Completion;
     if (!Context.getPreferredType().isNull()) {
       if (C->Kind == CXCursor_MacroDefinition) {
@@ -1660,9 +1661,11 @@
       Completion = new CodeCompletionString;
       Completion->AddTypedTextChunk(C->Completion->getTypedText());
       StringsToDestroy.push_back(Completion);
+      CursorKind = CXCursor_NotImplemented;
+      Priority = CCP_CodePattern;
     }
     
-    AllResults.push_back(Result(Completion, Priority, C->Kind, 
+    AllResults.push_back(Result(Completion, Priority, CursorKind, 
                                 C->Availability));
   }