[clang-tools-extra] r207238 - Remove unnecessary explicit unique_ptr ctors now that buildASTFromCode returns a unique_ptr instead of a raw pointer.
David Blaikie
dblaikie at gmail.com
Fri Apr 25 10:03:21 PDT 2014
Author: dblaikie
Date: Fri Apr 25 12:03:20 2014
New Revision: 207238
URL: http://llvm.org/viewvc/llvm-project?rev=207238&view=rev
Log:
Remove unnecessary explicit unique_ptr ctors now that buildASTFromCode returns a unique_ptr instead of a raw pointer.
Modified:
clang-tools-extra/trunk/unittests/clang-query/QueryEngineTest.cpp
Modified: clang-tools-extra/trunk/unittests/clang-query/QueryEngineTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-query/QueryEngineTest.cpp?rev=207238&r1=207237&r2=207238&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-query/QueryEngineTest.cpp (original)
+++ clang-tools-extra/trunk/unittests/clang-query/QueryEngineTest.cpp Fri Apr 25 12:03:20 2014
@@ -35,10 +35,10 @@ class QueryEngineTest : public ::testing
protected:
QueryEngineTest()
- : S(mkASTUnit2(std::unique_ptr<ASTUnit>(buildASTFromCode(
- "void foo1(void) {}\nvoid foo2(void) {}", "foo.cc")),
- std::unique_ptr<ASTUnit>(buildASTFromCode(
- "void bar1(void) {}\nvoid bar2(void) {}", "bar.cc")))),
+ : S(mkASTUnit2(buildASTFromCode("void foo1(void) {}\nvoid foo2(void) {}",
+ "foo.cc"),
+ buildASTFromCode("void bar1(void) {}\nvoid bar2(void) {}",
+ "bar.cc"))),
OS(Str) {}
std::unique_ptr<ASTUnit> ASTs[2];
More information about the cfe-commits
mailing list