diff options
Diffstat (limited to 'clang/docs/LibTooling.rst')
-rw-r--r-- | clang/docs/LibTooling.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/docs/LibTooling.rst b/clang/docs/LibTooling.rst index 2aaa508a136..202afc0887e 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(new clang::SyntaxOnlyAction, "class X {};")); + EXPECT_TRUE(runToolOnCode(std::make_unique<clang::SyntaxOnlyAction>(), "class X {};")); } Writing a standalone tool |