[all-commits] [llvm/llvm-project] de6827: [libc++] Improves clang-format settings.

Mark de Wever via All-commits all-commits at lists.llvm.org
Mon Feb 27 10:24:20 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de6827b530d8b6fd85e6714af80eca3107c91ea2
      https://github.com/llvm/llvm-project/commit/de6827b530d8b6fd85e6714af80eca3107c91ea2
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M libcxx/.clang-format
    M libcxx/include/__chrono/convert_to_tm.h
    M libcxx/include/__chrono/ostream.h
    M libcxx/include/algorithm
    M libcxx/include/functional
    M libcxx/include/utility
    A libcxx/test/.clang-format

  Log Message:
  -----------
  [libc++] Improves clang-format settings.

Add a new test based .clang-format file which inherits from the generic
one. This moves some test specific formatting rules to the test
directory.

The main benefit is that headers are sorted, which makes it more likely
to catch these errors before creating a review instead of spotting the
error in the CI clang-tidy step.

Reviewed By: ldionne, philnik, #libc

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




More information about the All-commits mailing list