diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-22 15:46:01 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-22 15:46:01 +0000 |
commit | 9170e914fc2f9e512d8e22a9763b1962404a985b (patch) | |
tree | b5bbcea074e5a8deaf4080432cccad2cb50bc5d7 /clang/unittests/Tooling/RecursiveASTVisitorTest.cpp | |
parent | e1596856ecc87c659399b625cc3c501874c5de6f (diff) | |
download | bcm5719-llvm-9170e914fc2f9e512d8e22a9763b1962404a985b.tar.gz bcm5719-llvm-9170e914fc2f9e512d8e22a9763b1962404a985b.zip |
Streamify getNameForDiagnostic and remove the string versions of PrintTemplateArgumentList.
llvm-svn: 175894
Diffstat (limited to 'clang/unittests/Tooling/RecursiveASTVisitorTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/RecursiveASTVisitorTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp b/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp index a68a869bf55..81be19003b2 100644 --- a/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp +++ b/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp @@ -50,10 +50,11 @@ class NamedDeclVisitor public: bool VisitNamedDecl(NamedDecl *Decl) { std::string NameWithTemplateArgs; - Decl->getNameForDiagnostic(NameWithTemplateArgs, + llvm::raw_string_ostream OS(NameWithTemplateArgs); + Decl->getNameForDiagnostic(OS, Decl->getASTContext().getPrintingPolicy(), true); - Match(NameWithTemplateArgs, Decl->getLocation()); + Match(OS.str(), Decl->getLocation()); return true; } }; |