297e66afc1
Use clang-format to correct formatting to be in agreement with the [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html). Doing this simplifies the process of accepting changes. Also fixed a few warnings flagged by clang-tidy. PiperOrigin-RevId: 246350737
19 lines
696 B
YAML
19 lines
696 B
YAML
# Run manually to reformat a file:
|
|
# clang-format -i --style=file <file>
|
|
# find . -iname '*.cc' -o -iname '*.h' -o -iname '*.h.in' | xargs clang-format -i --style=file
|
|
BasedOnStyle: Google
|
|
DerivePointerAlignment: false
|
|
|
|
# Public headers are in a different location in the internal Google repository.
|
|
# Order them so that when imported to the authoritative repository they will be
|
|
# in correct alphabetical order.
|
|
IncludeCategories:
|
|
- Regex: '^(<|"(db|helpers)/)'
|
|
Priority: 1
|
|
- Regex: '^"(leveldb)/'
|
|
Priority: 2
|
|
- Regex: '^(<|"(issues|port|table|third_party|util)/)'
|
|
Priority: 3
|
|
- Regex: '.*'
|
|
Priority: 4
|