aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-10-18 01:38:53 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-10-18 01:38:53 +0000
commit922fbc41e496c6bb843de5d4cbe26d54f1ecdedf (patch)
treee5d45c051b817c62d08b460ce9414d0c8e291483
parent6678a05ba19c40d60ed68b37262942eb887be217 (diff)
libclang/CXComment.cpp: Fix abuse of StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166163 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/libclang/CXComment.cpp2
1 files changed, 1 insertions, 1 deletions
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 << "</Verbatim>";
}
-static StringRef getSourceTextOfDeclaration(const DeclInfo *ThisDecl) {
+static std::string getSourceTextOfDeclaration(const DeclInfo *ThisDecl) {
ASTContext &Context = ThisDecl->CurrentDecl->getASTContext();
const LangOptions &LangOpts = Context.getLangOpts();