Files
grpc/.clang-format
Craig Tiller 339906443b [clang-format] Match include file ordering to internal clang-format (#40905)
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
2025-10-15 00:24:11 -07:00

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
...