Debian Codegraph @

.clang-format

raw
1 ---
2 Language: Cpp
3 BasedOnStyle: Google
4 DerivePointerAlignment: false
5 PointerAlignment: Left
6 IncludeBlocks: Regroup
7 IncludeCategories:
8 # port_platform.h is before almost everything
9 - Regex: '^<grpc/(support|impl/codegen)/port_platform.h>'
10 Priority: -100
11 # ruby.h is even more first if it's included
12 - Regex: '^<ruby/ruby.h>'
13 Priority: -200
14 # Some platforms (namely msys) need wchar to be included BEFORE
15 # anything else, especially strsafe.h.
16 - Regex: '^<wchar.h>'
17 Priority: 5
18 # use priority 100+ for grpc headers so they sort last
19 # 'system' headers - include things that have " in the names to make them
20 # stand out and get fixed
21 - Regex: '^(<|")grpc'
22 Priority: 100
23 # similary using include/ to get system headers should stand out and get
24 # fixed
25 - Regex: '^"include/'
26 Priority: 100
27 # source headers go last
28 - Regex: '^"(src|test)/'
29 Priority: 101
30 # not-grpc headers follow
31 # first, non system headers that are included like <> - these are all
32 # local carveouts, and get sorted below c++ but before non grpc "" files
33 - Regex: '^<(openssl/|uv\.h|ares\.h|address_sorting/|gmock/|gtest/|zlib|zconf|benchmark/|google/)'
34 Priority: 30
35 # first C system headers - they have a . in the filename
36 - Regex: '^<.*\.'
37 Priority: 10
38 # then C++ system headers - no ., the only thing that will match now
39 - Regex: '^<'
40 Priority: 20
41 # finally other "" includes go between system headers and our headers
42 - Regex: '^"'
43 Priority: 40
44 ---
45 Language: ObjC
46 BasedOnStyle: Google
47 ColumnLimit: 100
48 ObjCBlockIndentWidth: 2
49 ...