[docs] Use make_unique in FrontendAction example
authorNicolás Alvarez <nicolas.alvarez@gmail.com>
Tue, 20 Apr 2021 17:47:16 +0000 (13:47 -0400)
committerNico Weber <thakis@chromium.org>
Tue, 20 Apr 2021 17:47:16 +0000 (13:47 -0400)
commit2da4ceec936e0e3ddb3028c35e97e99ab1de7484
tree12b653678c60eb7f3c52ae774863aad20975e016
parent683dc41695fd74b772e3965661b19a4e0472359b
[docs] Use make_unique in FrontendAction example

The code example for "RecursiveASTVisitor based ASTFrontendActions"
was using unique_ptr<X>(new X) when creating the AST consumer; change
it to use make_unique instead. The main function of the same example
already used make_unique.

Differential Revision: https://reviews.llvm.org/D93185
clang/docs/RAVFrontendAction.rst