diff options
Diffstat (limited to 'clang/docs/RAVFrontendAction.rst')
-rw-r--r-- | clang/docs/RAVFrontendAction.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/docs/RAVFrontendAction.rst b/clang/docs/RAVFrontendAction.rst index dea23733bc4..2c168a0577e 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(new FindNamedClassAction, argv[1]); + clang::tooling::runToolOnCode(std::make_unique<FindNamedClassAction>(), argv[1]); } } |