[all-commits] [llvm/llvm-project] 4cb3d7: [libc++] Update clang-format to C++20.

mordante via All-commits all-commits at lists.llvm.org
Sat Oct 30 03:51:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cb3d7d7b4abbd0ad47fc3e590eafa5426726066
      https://github.com/llvm/llvm-project/commit/4cb3d7d7b4abbd0ad47fc3e590eafa5426726066
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2021-10-30 (Sat, 30 Oct 2021)

  Changed paths:
    M libcxx/.clang-format

  Log Message:
  -----------
  [libc++] Update clang-format to C++20.

We now use clang-format-13 which has the option SpacesInAngles. This
allows us to switch the default language version to C++20, which should
avoid breaking code when formatting due to the adding of whitespace.
For example `u8"foo"` no longer is formatted as `u8 "foo"`.

Reviewed By: #libc, ldionne

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




More information about the All-commits mailing list