HomeFreeBSD

clang-format: adjust to sort C++ headers per style(9)

Description

clang-format: adjust to sort C++ headers per style(9)

Many standard C++ headers do not have the .h file extension: some, such as
iostream, lack it; others have a .hpp file extension. Moreover, some
projects (like ATF/Kyua) also contain .ipp files, which are C++ "interface"
files.

Relax the regular expression to ensure that non-traditional C "system"
headers, C++ headers, etc, with angle brackets are sorted before
"local" headers.

MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D54401

(cherry picked from commit ab9b04736945537743eb0624ead7a4fa4b960783)

Details

Provenance
ngieAuthored on Jan 31 2026, 4:14 AM
Reviewer
markj
Differential Revision
D54401: clang-format: adjust to sort C++ headers per style(9)
Parents
rG2033efe8bd02: usr.bin/factor: remove tests when MK_GAMES=no
Branches
Unknown
Tags
Unknown