[all-commits] [llvm/llvm-project] 2da4ce: [docs] Use make_unique in FrontendAction example

Nicolás Alvarez via All-commits all-commits at lists.llvm.org
Tue Apr 20 10:48:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2da4ceec936e0e3ddb3028c35e97e99ab1de7484
      https://github.com/llvm/llvm-project/commit/2da4ceec936e0e3ddb3028c35e97e99ab1de7484
  Author: Nicolás Alvarez <nicolas.alvarez at gmail.com>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    M clang/docs/RAVFrontendAction.rst

  Log Message:
  -----------
  [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




More information about the All-commits mailing list