diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-01-12 00:38:53 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-01-12 00:38:53 +0000 |
commit | 1fc00e6e4976f3a05ab4ac8b5a2c7aa5c4d030eb (patch) | |
tree | 5ad8a887680861280feab78cac9b148a8eed36b5 | |
parent | 4b333d2215b9707070f65ae569674e4818574f95 (diff) |
Change clang_getUSR() to return a CXString instead of a 'const char *'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93213 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang-c/Index.h | 2 | ||||
-rw-r--r-- | tools/CIndex/CIndexUSRs.cpp | 4 |
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" |