summaryrefslogtreecommitdiffstats
path: root/clang/docs/LibTooling.rst
diff options
context:
space:
mode:
Diffstat (limited to 'clang/docs/LibTooling.rst')
-rw-r--r--clang/docs/LibTooling.rst2
1 files changed, 1 insertions, 1 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
OpenPOWER on IntegriCloud