[cfe-commits] r93213 - in /cfe/trunk: include/clang-c/Index.h tools/CIndex/CIndexUSRs.cpp
Ted Kremenek
kremenek at apple.com
Mon Jan 11 16:38:53 PST 2010
Author: kremenek
Date: Mon Jan 11 18:38:53 2010
New Revision: 93213
URL: http://llvm.org/viewvc/llvm-project?rev=93213&view=rev
Log:
Change clang_getUSR() to return a CXString instead of a 'const char *'.
Modified:
cfe/trunk/include/clang-c/Index.h
cfe/trunk/tools/CIndex/CIndexUSRs.cpp
Modified: cfe/trunk/include/clang-c/Index.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang-c/Index.h?rev=93213&r1=93212&r2=93213&view=diff
==============================================================================
--- cfe/trunk/include/clang-c/Index.h (original)
+++ cfe/trunk/include/clang-c/Index.h Mon Jan 11 18:38:53 2010
@@ -329,7 +329,7 @@
* in a specified translation unit. */
CINDEX_LINKAGE CXDecl clang_getDeclaration(CXEntity, CXTranslationUnit);
-CINDEX_LINKAGE const char *clang_getUSR(CXEntity);
+CINDEX_LINKAGE CXString clang_getUSR(CXEntity);
/*
* CXDecl Operations.
*/
Modified: cfe/trunk/tools/CIndex/CIndexUSRs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndexUSRs.cpp?rev=93213&r1=93212&r2=93213&view=diff
==============================================================================
--- cfe/trunk/tools/CIndex/CIndexUSRs.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndexUSRs.cpp Mon Jan 11 18:38:53 2010
@@ -74,8 +74,8 @@
return NullCXEntity();
}
-const char *clang_getUSR(CXEntity) {
- return "";
+CXString clang_getUSR(CXEntity) {
+ return CIndexer::createCXString("");
}
} // end extern "C"
More information about the cfe-commits
mailing list