[all-commits] [llvm/llvm-project] a77c67: [clang-format] Fix formatting of the array form of...

Marek Kurdej via All-commits all-commits at lists.llvm.org
Wed Feb 9 13:36:27 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a77c67f93917596f9eded9edaced4a9d355a4e1c
  Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
  Date:   2022-02-09 (Wed, 09 Feb 2022)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTest.cpp
    M clang/unittests/Format/TokenAnnotatorTest.cpp

  Log Message:
  [clang-format] Fix formatting of the array form of delete.

Fixes https://github.com/llvm/llvm-project/issues/53576.

There was an inconsistency in formatting of delete expressions.

delete (void*)a;
delete[](void*) a;

After this patch:
delete (void*)a;
delete[] (void*)a;

Reviewed By: HazardyKnusperkeks, owenpan

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

More information about the All-commits mailing list