aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang-c/Index.h2
-rw-r--r--tools/CIndex/CIndexUSRs.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
index b853d74bf5..ae797573a2 100644
--- a/include/clang-c/Index.h
+++ b/include/clang-c/Index.h
@@ -329,7 +329,7 @@ CINDEX_LINKAGE time_t clang_getFileTime(CXFile SFile);
* 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.
*/
diff --git a/tools/CIndex/CIndexUSRs.cpp b/tools/CIndex/CIndexUSRs.cpp
index e53c0c66f1..e0ee3acd30 100644
--- a/tools/CIndex/CIndexUSRs.cpp
+++ b/tools/CIndex/CIndexUSRs.cpp
@@ -74,8 +74,8 @@ CXEntity clang_getEntityFromDecl(CXIndex CIdx, CXDecl CE) {
return NullCXEntity();
}
-const char *clang_getUSR(CXEntity) {
- return "";
+CXString clang_getUSR(CXEntity) {
+ return CIndexer::createCXString("");
}
} // end extern "C"