summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2020-06-24 23:22:36 +0000
committerConrad Meyer <cem@FreeBSD.org>2020-06-24 23:22:36 +0000
commita8caa6392e096b30f7b2057f3307a9e1e3e3fbfe (patch)
treea3e8d62b1a5e89f5a1bea9fb688ce3e7546f138a /.clang-format
parent9e8fd9d8c42451157fe33270fd5cd120a452fc38 (diff)
downloadsrc-test2-a8caa6392e096b30f7b2057f3307a9e1e3e3fbfe.tar.gz
src-test2-a8caa6392e096b30f7b2057f3307a9e1e3e3fbfe.zip
Clang-format: Avoid hardcoded LLVM include-order style
Reported by: emaste
Notes
Notes: svn path=/head/; revision=362596
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format6
1 files changed, 6 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
index 6582f69e4a42..c150c4d3b206 100644
--- a/.clang-format
+++ b/.clang-format
@@ -134,6 +134,12 @@ IncludeCategories:
- Regex: '^\".*\.h\"'
Priority: 10
SortPriority: 100
+# LLVM's header include ordering style is almost the exact opposite of ours.
+# Unfortunately, they have hard-coded their preferences into clang-format.
+# Clobbering this regular expression to avoid matching prevents non-system
+# headers from being forcibly moved to the top of the include list.
+# http://llvm.org/docs/CodingStandards.html#include-style
+IncludeIsMainRegex: 'BLAH_DONT_MATCH_ANYTHING'
SortIncludes: true
KeepEmptyLinesAtTheStartOfBlocks: true
TypenameMacros: