[cfe-commits] r93805 - /cfe/trunk/tools/CIndex/CIndexUSRs.cpp
Ted Kremenek
kremenek at apple.com
Mon Jan 18 15:25:32 PST 2010
Author: kremenek
Date: Mon Jan 18 17:25:32 2010
New Revision: 93805
URL: http://llvm.org/viewvc/llvm-project?rev=93805&view=rev
Log:
Tweak USR output for ObjC categories.
Modified:
cfe/trunk/tools/CIndex/CIndexUSRs.cpp
Modified: cfe/trunk/tools/CIndex/CIndexUSRs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndexUSRs.cpp?rev=93805&r1=93804&r2=93805&view=diff
==============================================================================
--- cfe/trunk/tools/CIndex/CIndexUSRs.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndexUSRs.cpp Mon Jan 18 17:25:32 2010
@@ -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);
}
More information about the cfe-commits
mailing list