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