Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,16 @@ BasedOnStyle: Google
# (mostly) been using "int& foo", but clang-format(1) sometimes guesses wrong,
# so to enforce the consistency:
PointerAlignment: Left

# These will need to be enabled after we commit the style guide:
# IncludeCategories:
# - Regex: '^\"'
# Priority: 1000
# - Regex: '^<grpc/'
# Priority: 2000
# - Regex: '^<google/*'
# Priority: 3000
# - Regex: '^<.*/.*'
# Priority: 4000
# - Regex: '^<[^/]*>'
# Priority: 5000
19 changes: 10 additions & 9 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ Checks: google-readability-*,modernize-*,readability-*,-google-readability-names
WarningsAsErrors: clang-*,google-*,modernize-*,readability-*,-readability-identifier-naming

CheckOptions:
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.FunctionCase, value: CamelCase }
- { key: readability-identifier-naming.VariableCase, value: lower_case }
- { key: readability-identifier-naming.PrivateMemberSuffix, value: _ }
- { key: readability-identifier-naming.ProtectedMemberSuffix, value: _ }
- { key: readability-identifier-naming.MacroDefinition, value: UPPER_CASE }
- { key: readability-identifier-naming.TemplateParameter, value: CamelCase }
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.FunctionCase, value: CamelCase }
- { key: readability-identifier-naming.VariableCase, value: lower_case }
- { key: readability-identifier-naming.PrivateMemberSuffix, value: _ }
- { key: readability-identifier-naming.ProtectedMemberSuffix, value: _ }
- { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
- { key: readability-identifier-naming.EnumConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase }
Loading