Skip to content

Commit 6cc8c27

Browse files
Phytolizerfriendlyanon
authored andcommitted
Add underscore to standard library header pattern
Some headers, like string_view and unordered_map, have underscores. This groups them with other standard headers.
1 parent e3d4170 commit 6cc8c27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake-init/templates/common/.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ ForEachMacros:
7373
IncludeBlocks: Regroup
7474
IncludeCategories:{if cpp}
7575
# Standard library headers come before anything else
76-
- Regex: '^<[a-z]+>'
76+
- Regex: '^<[a-z_]+>'
7777
Priority: -1{end}
7878
- Regex: '^<.+\.h{if cpp}(pp)?{end}>'
7979
Priority: 1{if cpp}

0 commit comments

Comments
 (0)