[all-commits] [llvm/llvm-project] 0e4c5c: [clang][DeclPrinter] Fix AST print of curly constr...

Timo Stripf via All-commits all-commits at lists.llvm.org
Thu Jul 27 08:44:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e4c5cc56c1407c9b82311f38b21bca9d64f818a
      https://github.com/llvm/llvm-project/commit/0e4c5cc56c1407c9b82311f38b21bca9d64f818a
  Author: Timo Stripf <timo.stripf at emmtrix.com>
  Date:   2023-07-27 (Thu, 27 Jul 2023)

  Changed paths:
    M clang/lib/AST/DeclPrinter.cpp
    M clang/test/AST/ast-print-method-decl.cpp

  Log Message:
  -----------
  [clang][DeclPrinter] Fix AST print of curly constructor initializers

DeclPrinter::PrintConstructorInitializers did not consider curly constructor initializers. Any curly constructor initializers (e.g. `A() : Field{}`) was printed with round brackets (e.g. `A() : Field({})`).

https://github.com/llvm/llvm-project/issues/64061

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D156307




More information about the All-commits mailing list