[all-commits] [llvm/llvm-project] a8105b: [clang-format] Add case aware include sorting.

Marek Kurdej via All-commits all-commits at lists.llvm.org
Tue Feb 2 06:13:05 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8105b3766e4195ca2390cd0714e07406bc8a4a5
      https://github.com/llvm/llvm-project/commit/a8105b3766e4195ca2390cd0714e07406bc8a4a5
  Author: Kent Sommer <work at kentsommer.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/Format.cpp
    M clang/tools/clang-format/ClangFormat.cpp
    M clang/unittests/Format/FormatTest.cpp
    M clang/unittests/Format/SortImportsTestJava.cpp
    M clang/unittests/Format/SortIncludesTest.cpp

  Log Message:
  -----------
  [clang-format] Add case aware include sorting.

Adds an option to [clang-format] which sorts headers in an alphabetical manner using case only for tie-breakers. The options is off by default in favor of the current ASCIIbetical sorting style.

Reviewed By: MyDeveloperDay, curdeius, HazardyKnusperkeks

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




More information about the All-commits mailing list