]> granicus.if.org Git - clang/commitdiff
Tweak USR output for ObjC categories.
authorTed Kremenek <kremenek@apple.com>
Mon, 18 Jan 2010 23:25:32 +0000 (23:25 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 18 Jan 2010 23:25:32 +0000 (23:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93805 91177308-0d34-0410-b5e6-96231b3b80d8

tools/CIndex/CIndexUSRs.cpp

index bb74fe9321b1db9f2883913480cec037d1e614dc..4f43c50d141a8ccef909ee7c019f2c4b44fc79e3 100644 (file)
@@ -146,13 +146,13 @@ void USRGenerator::VisitObjCContainerDecl(ObjCContainerDecl *D) {
     case Decl::ObjCCategory: {
       ObjCCategoryDecl *CD = cast<ObjCCategoryDecl>(D);
       Out << "objc(cy)" << CD->getClassInterface()->getName()
-      << '_' << CD->getName();
+      << '^' << CD->getName();
       break;
     }
     case Decl::ObjCCategoryImpl: {
       ObjCCategoryImplDecl *CD = cast<ObjCCategoryImplDecl>(D);
       Out << "objc(cy)" << CD->getClassInterface()->getName()
-      << '_' << CD->getName();
+      << '^' << CD->getName();
       break;
     }
     case Decl::ObjCProtocol:
@@ -230,8 +230,7 @@ CXEntity clang_getEntityFromDecl(CXIndex CIdx, CXDecl CE) {
 
 CXString clang_getCursorUSR(CXCursor C) {
   if (Decl *D = cxcursor::getCursorDecl(C))
-    return ConstructUSR(D);
-  
+    return ConstructUSR(D);  
   
   return CIndexer::createCXString(NULL);
 }