Add protobuf support to clang-format

This commit is contained in:
Mario Limonciello 2021-08-06 20:48:06 -05:00 committed by Richard Hughes
parent 7020f49aa9
commit ce6da002aa
2 changed files with 6 additions and 4 deletions

View File

@ -21,7 +21,6 @@ IndentCaseLabels: 'false'
IndentWidth: '8'
IncludeBlocks: 'Regroup'
KeepEmptyLinesAtTheStartOfBlocks: 'false'
Language: 'Cpp'
MaxEmptyLinesToKeep: '1'
PointerAlignment: 'Right'
SortIncludes: 'true'
@ -32,10 +31,12 @@ SpaceInEmptyParentheses: 'false'
SpacesInSquareBrackets: 'false'
TabWidth: '8'
UseTab: 'Always'
PenaltyBreakAssignment: '3'
PenaltyBreakBeforeFirstCallParameter: '15'
---
Language: 'Proto'
---
Language: 'Cpp'
IncludeCategories:
- Regex: '^"config.h"$'
Priority: '0'

View File

@ -9,11 +9,12 @@ repos:
- id: check-executables-have-shebangs
- id: forbid-new-submodules
- id: check-yaml
exclude: '.clang-format'
- id: check-json
- id: check-symlinks
- id: check-xml
- id: end-of-file-fixer
types_or: [c, shell, python]
types_or: [c, shell, python, proto]
- id: trailing-whitespace
types_or: [c, shell, python, xml]
- id: check-docstring-first