From 497fd98af2fff16b5b885f1bdac3b9b039f5080f Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Tue, 27 Feb 2018 15:54:55 +0000 Subject: Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit rL326201 This broke gcc4.8 builds, compiler just segfaults:¬ http://lab.llvm.org:8011/builders/clang-atom-d525-fedora-rel/builds/14909¬ http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/22673¬ llvm-svn: 326204 --- clang/docs/LibTooling.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/docs/LibTooling.rst') diff --git a/clang/docs/LibTooling.rst b/clang/docs/LibTooling.rst index 848fa79bb60..75ef6a0fe7e 100644 --- a/clang/docs/LibTooling.rst +++ b/clang/docs/LibTooling.rst @@ -34,7 +34,7 @@ looked for. Let me give you an example: TEST(runToolOnCode, CanSyntaxCheckCode) { // runToolOnCode returns whether the action was correctly run over the // given code. - EXPECT_TRUE(runToolOnCode(llvm::make_unique(), "class X {};")); + EXPECT_TRUE(runToolOnCode(new clang::SyntaxOnlyAction, "class X {};")); } Writing a standalone tool -- cgit v1.2.3