From: NAKAMURA Takumi Date: Thu, 18 Oct 2012 01:38:53 +0000 (+0000) Subject: libclang/CXComment.cpp: Fix abuse of StringRef. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=922fbc41e496c6bb843de5d4cbe26d54f1ecdedf;p=clang libclang/CXComment.cpp: Fix abuse of StringRef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166163 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/libclang/CXComment.cpp b/tools/libclang/CXComment.cpp index 44b947379b..90a67ca69c 100644 --- a/tools/libclang/CXComment.cpp +++ b/tools/libclang/CXComment.cpp @@ -1028,7 +1028,7 @@ void CommentASTToXMLConverter::visitVerbatimLineComment( Result << ""; } -static StringRef getSourceTextOfDeclaration(const DeclInfo *ThisDecl) { +static std::string getSourceTextOfDeclaration(const DeclInfo *ThisDecl) { ASTContext &Context = ThisDecl->CurrentDecl->getASTContext(); const LangOptions &LangOpts = Context.getLangOpts();