Skip to content

Commit

Permalink
chore: update clang-tidy and clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
roflmuffin committed Oct 11, 2023
1 parent 82793c7 commit 71b0961
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 19 deletions.
19 changes: 17 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
---
Language: Cpp
BasedOnStyle: Microsoft
ColumnLimit: 120
BasedOnStyle: Google
AccessModifierOffset: -4
Standard: c++11
IndentWidth: 4
TabWidth: 4
UseTab: Never
ColumnLimit: 100
AlignAfterOpenBracket: Align
BinPackParameters: false
AlignEscapedNewlines: Left
AlwaysBreakTemplateDeclarations: Yes
PackConstructorInitializers: Never
BreakConstructorInitializersBeforeComma: false
IndentPPDirectives: BeforeHash
SortIncludes: Never
...

39 changes: 22 additions & 17 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,26 @@ Checks: >
# Turn all the warnings from the checks above into errors.
WarningsAsErrors: "*"

HeaderFilterRegex: "(google/cloud/|generator/).*\\.h$"

CheckOptions:
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.FunctionCase
value: CamelCase
- key: readability-identifier-naming.MemberCase
value: CamelCase
- key: readability-identifier-naming.ParameterCase
value: camelBack
- key: readability-identifier-naming.UnionCase
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: camelBack
...
- key: google-readability-braces-around-statements.ShortStatementLines
value: '1'
- key: google-readability-function-size.StatementThreshold
value: '800'
- key: google-readability-namespace-comments.ShortNamespaceLines
value: '10'
- key: google-readability-namespace-comments.SpacesBeforeComments
value: '2'
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.MemberCase
value: camelBack
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.FunctionCase
value: CamelCase
- key: readability-identifier-naming.ParameterCase
value: camelBack
- key: readability-identifier-naming.UnionCase
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: camelBack

0 comments on commit 71b0961

Please sign in to comment.