diff options
Diffstat (limited to 'clang/docs')
-rw-r--r-- | clang/docs/LibTooling.rst | 2 | ||||
-rw-r--r-- | clang/docs/RAVFrontendAction.rst | 2 |
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]); } } |