mirror of
https://github.com/grpc/grpc.git
synced 2026-01-24 10:53:30 +08:00
gRPC is currently getting formatted with two different clang-format implementations, and due to some weirdness they have different include file orderings. This change introduces clang-format configuration to ensure that the two systems align - it's *highly* expected that this will need some maintenance going forward as the two systems evolve. Closes #40905 PiperOrigin-RevId: 819606209
37 lines
706 B
YAML
37 lines
706 B
YAML
---
|
|
Language: Cpp
|
|
BasedOnStyle: Google
|
|
DerivePointerAlignment: false
|
|
PointerAlignment: Left
|
|
IncludeBlocks: Regroup
|
|
IncludeCategories:
|
|
# ruby.h is even more first if it's included
|
|
- Regex: '^<ruby/ruby.h>'
|
|
Priority: -200
|
|
- Regex: '^("absl/)'
|
|
Priority: 400
|
|
SortPriority: 500
|
|
- Regex: '^"gmock/gmock.h"'
|
|
Priority: 400
|
|
SortPriority: 450
|
|
- Regex: '^"gtest/gtest.h"'
|
|
Priority: 400
|
|
SortPriority: 450
|
|
- Regex: '^<.*\.h>'
|
|
Priority: 200
|
|
- Regex: '^<.*'
|
|
Priority: 300
|
|
- Regex: '.*'
|
|
Priority: 400
|
|
SortPriority: 400
|
|
---
|
|
Language: ObjC
|
|
BasedOnStyle: Google
|
|
ColumnLimit: 100
|
|
ObjCBlockIndentWidth: 2
|
|
---
|
|
Language: Proto
|
|
BasedOnStyle: Google
|
|
ColumnLimit: 100
|
|
...
|