diff options
author | Rechi <Rechi@users.noreply.github.com> | 2019-06-16 10:24:47 +0100 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2019-06-16 10:24:47 +0100 |
commit | 419409a8530f14ee1a2944aec7ec7e41a49f4524 (patch) | |
tree | efed149b9ed972fbef6b8701f9d6e1183df84fe9 /.clang-format | |
parent | 65ccafa5eea761d13ab7760a91c4f47c918b4484 (diff) |
[docs] update header include coding guideline
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.clang-format b/.clang-format index 3105501dd1..c0ec891d43 100644 --- a/.clang-format +++ b/.clang-format @@ -35,11 +35,18 @@ DerivePointerAlignment: false DisableFormat: false ExperimentalAutoDetectBinPacking: false ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] +IncludeBlocks: Regroup IncludeCategories: - - Regex: '^"(llvm|llvm-c|clang|clang-c)/' + - Regex: '(["/]PlatformDefs|"(system|system_gl))\.h"' + Priority: 5 + - Regex: '"platform/[^/]+/' Priority: 2 - - Regex: '^(<|"(gtest|isl|json)/)' + - Regex: '^<[a-z0-9_]+>$' Priority: 3 + - Regex: '^<(assert|complex|ctype|errno|fenv|float|inttypes|iso646|limits|locale|math|setjmp|signal|stdalign|stdarg|stdatomic|stdbool|stddef|stdint|stdio|stdlib|stdnoreturn|string|tgmath|threads|time|uchar|wchar|wctype)\.h>$' + Priority: 3 + - Regex: '^<' + Priority: 4 - Regex: '.*' Priority: 1 IncludeIsMainRegex: '$' |