diff options
Diffstat (limited to 'tools/CIndex/CIndexUSRs.cpp')
-rw-r--r-- | tools/CIndex/CIndexUSRs.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/CIndex/CIndexUSRs.cpp b/tools/CIndex/CIndexUSRs.cpp index a992dbf..922f4b3 100644 --- a/tools/CIndex/CIndexUSRs.cpp +++ b/tools/CIndex/CIndexUSRs.cpp @@ -17,6 +17,8 @@ #include "llvm/ADT/SmallString.h" #include "llvm/Support/raw_ostream.h" +using namespace clang::cxstring; + //===----------------------------------------------------------------------===// // USR generation. //===----------------------------------------------------------------------===// @@ -156,14 +158,14 @@ static CXString ConstructUSR(Decl *D) { USRGenerator UG(Out); UG.Visit(static_cast<Decl*>(D)); if (UG.ignoreResults()) - return CIndexer::createCXString(NULL); + return createCXString(NULL); } if (StrBuf.empty()) - return CIndexer::createCXString(NULL); + return createCXString(NULL); // Return a copy of the string that must be disposed by the caller. - return CIndexer::createCXString(StrBuf.c_str(), true); + return createCXString(StrBuf.str(), true); } @@ -173,7 +175,7 @@ CXString clang_getCursorUSR(CXCursor C) { if (Decl *D = cxcursor::getCursorDecl(C)) return ConstructUSR(D); - return CIndexer::createCXString(NULL); + return createCXString(NULL); } } // end extern "C" |