Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Commit ddeeb4f

Browse files
authored
fix: copy .clang-format from -spanner (#267)
Part of googleapis/google-cloud-cpp#3596
1 parent d785659 commit ddeeb4f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.clang-format

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ PointerAlignment: Left
99

1010
IncludeBlocks: Merge
1111
IncludeCategories:
12-
- Regex: '^\"google/cloud/'
12+
# Matches common headers first, but sorts them after project includes
13+
- Regex: '^\"google/cloud/(internal/|grpc_utils/|testing_util/|[^/]+\.h)'
1314
Priority: 1500
15+
- Regex: '^\"google/cloud/' # project includes should sort first
16+
Priority: 500
1417
- Regex: '^\"'
1518
Priority: 1000
1619
- Regex: '^<grpc/'
@@ -21,3 +24,13 @@ IncludeCategories:
2124
Priority: 4000
2225
- Regex: '^<[^/]*>'
2326
Priority: 5000
27+
28+
# Format raw string literals with a `pb` or `proto` tag as proto.
29+
RawStringFormats:
30+
- Language: TextProto
31+
Delimiters:
32+
- 'pb'
33+
- 'proto'
34+
BasedOnStyle: Google
35+
36+
CommentPragmas: '(@copydoc)'

0 commit comments

Comments
 (0)