HomePhabricator

[docs] Use make_unique in FrontendAction example

Authored by nicolas17 on Apr 20 2021, 10:47 AM.

Description

[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

Details

Committed
thakisApr 20 2021, 10:47 AM
Differential Revision
D93185: [docs] Use make_unique in FrontendAction example
Parents
rG683dc41695fd: Update tests checks, NFC.
Branches
Unknown
Tags
Unknown