mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 02:41:28 +00:00
Add .clang-format
This commit is contained in:
parent
b981677848
commit
a351ce9618
20
.clang-format
Normal file
20
.clang-format
Normal file
@ -0,0 +1,20 @@
|
||||
BasedOnStyle: Chromium
|
||||
Standard: Cpp11
|
||||
|
||||
AllowShortFunctionsOnASingleLine: false
|
||||
|
||||
ColumnLimit: 100
|
||||
|
||||
# Use 4 space indents
|
||||
IndentWidth: 4
|
||||
ObjCBlockIndentWidth: 4
|
||||
AccessModifierOffset: -2
|
||||
|
||||
# Nested namespaces are C++17, fake them by compacting namespaces for now.
|
||||
CompactNamespaces: true
|
||||
|
||||
# This should result in only one indentation level with compacted namespaces
|
||||
NamespaceIndentation: All
|
||||
|
||||
# Use this option once clang-format 6 is out.
|
||||
IndentPPDirectives: AfterHash
|
Loading…
x
Reference in New Issue
Block a user