diff options
author | Chia-I Wu <[email protected]> | 2019-01-09 14:16:01 -0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-03-11 10:01:41 -0700 |
commit | d30baaaba645dcc1b4b4e16c4914554b896ea54a (patch) | |
tree | faacc671e482deb8614df319722b4eedc8eace50 /src/freedreno/vulkan/.clang-format | |
parent | 6401ad389e9cec6f523e4e4e989c190fb25a8dfc (diff) |
turnip: add .clang-format
Add and apply .clang-format.
Diffstat (limited to 'src/freedreno/vulkan/.clang-format')
-rw-r--r-- | src/freedreno/vulkan/.clang-format | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/.clang-format b/src/freedreno/vulkan/.clang-format new file mode 100644 index 00000000000..7ff44c54085 --- /dev/null +++ b/src/freedreno/vulkan/.clang-format @@ -0,0 +1,31 @@ +BasedOnStyle: LLVM +AlwaysBreakAfterReturnType: TopLevel +BinPackParameters: false +BraceWrapping: + AfterControlStatement: false + AfterEnum: true + AfterFunction: true + AfterStruct: true + BeforeElse: false + SplitEmptyFunction: true +BreakBeforeBraces: Custom +ColumnLimit: 78 +ContinuationIndentWidth: 3 +Cpp11BracedListStyle: false +IncludeBlocks: Regroup +IncludeCategories: + - Regex: '^"tu_private.h"$' + Priority: 0 + - Regex: '^"(drm/|tu_)' + Priority: 4 + - Regex: '^"(c11/|compiler/|main/|nir/|spirv/|util/|vk_)' + Priority: 3 + - Regex: '^<(vulkan/)' + Priority: 2 + - Regex: '.*' + Priority: 1 +IndentWidth: 3 +PenaltyBreakBeforeFirstCallParameter: 1 +PenaltyExcessCharacter: 100 +SpaceAfterCStyleCast: true +SpaceBeforeCpp11BracedList: true |