summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2018-02-27 15:54:55 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2018-02-27 15:54:55 +0000
commit497fd98af2fff16b5b885f1bdac3b9b039f5080f (patch)
tree1aa1c150c739fec069916ed7f0b0aeed818b5e64 /clang/docs
parent12b40745abb776d596caf12c4b17444c9369e4bf (diff)
downloadbcm5719-llvm-497fd98af2fff16b5b885f1bdac3b9b039f5080f.tar.gz
bcm5719-llvm-497fd98af2fff16b5b885f1bdac3b9b039f5080f.zip
Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>"
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
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/LibTooling.rst2
-rw-r--r--clang/docs/RAVFrontendAction.rst2
2 files changed, 2 insertions, 2 deletions
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<clang::SyntaxOnlyAction>(), "class X {};"));
+ EXPECT_TRUE(runToolOnCode(new clang::SyntaxOnlyAction, "class X {};"));
}
Writing a standalone tool
diff --git a/clang/docs/RAVFrontendAction.rst b/clang/docs/RAVFrontendAction.rst
index d62879ffd06..c37d3c0e812 100644
--- a/clang/docs/RAVFrontendAction.rst
+++ b/clang/docs/RAVFrontendAction.rst
@@ -196,7 +196,7 @@ Now we can combine all of the above into a small example program:
int main(int argc, char **argv) {
if (argc > 1) {
- clang::tooling::runToolOnCode(llvm::make_unique<FindNamedClassAction>(), argv[1]);
+ clang::tooling::runToolOnCode(new FindNamedClassAction, argv[1]);
}
}
OpenPOWER on IntegriCloud