Change clang_getUSR() to return a CXString instead of a 'const char *'.

llvm-svn: 93213
This commit is contained in:
Ted Kremenek 2010-01-12 00:38:53 +00:00
parent 46157971e9
commit 87be3617e3
2 changed files with 3 additions and 3 deletions

View File

@ -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.
*/

View File

@ -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"