Tweak USR output for ObjC categories.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93805 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/CIndex/CIndexUSRs.cpp b/tools/CIndex/CIndexUSRs.cpp
index bb74fe9..4f43c50 100644
--- a/tools/CIndex/CIndexUSRs.cpp
+++ b/tools/CIndex/CIndexUSRs.cpp
@@ -146,13 +146,13 @@
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 @@
CXString clang_getCursorUSR(CXCursor C) {
if (Decl *D = cxcursor::getCursorDecl(C))
- return ConstructUSR(D);
-
+ return ConstructUSR(D);
return CIndexer::createCXString(NULL);
}