]> granicus.if.org Git - clang/commitdiff
libclang/CXComment.cpp: Fix abuse of StringRef.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 18 Oct 2012 01:38:53 +0000 (01:38 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 18 Oct 2012 01:38:53 +0000 (01:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166163 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CXComment.cpp

index 44b947379becdf32a191b491d9e2bd230577f871..90a67ca69c30c87c4f26fd70d077eac3ae0620e9 100644 (file)
@@ -1028,7 +1028,7 @@ void CommentASTToXMLConverter::visitVerbatimLineComment(
   Result << "</Verbatim>";
 }
 
-static StringRef getSourceTextOfDeclaration(const DeclInfo *ThisDecl) {
+static std::string getSourceTextOfDeclaration(const DeclInfo *ThisDecl) {
   
   ASTContext &Context = ThisDecl->CurrentDecl->getASTContext();
   const LangOptions &LangOpts = Context.getLangOpts();