Skip to content
Snippets Groups Projects

clang-format: Fix header ordering.

Merged Felix Weiglhofer requested to merge fweig/cbmroot:clang-format-header-ordering-fix into master

Fix a bug in clang-format that causes STL headers that start with a 't' being grouped with Root headers. (Affects for example <type_traits>.) This is caused by regex matching in clang-format being case insensitve by default. The option for case sensitive matching is only introduced with clang-format 12. So as a workaround for clang-format 11 also match a '.h'-suffix for the filenames in these categories. This ensures seperation between Root headers and STL headers.

Merge request reports

Merge request pipeline #17861 passed

Merge request pipeline passed for 4b6042e1

Merged by Florian UhligFlorian Uhlig 2 years ago (Jul 14, 2022 7:28am UTC)

Loading

Pipeline #17864 passed

Pipeline passed for 4b6042e1 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading