Skip to content

Commit

Permalink
chore: clangd file, linting and styling
Browse files Browse the repository at this point in the history
  • Loading branch information
EduMenges committed May 6, 2024
1 parent 0be60ac commit 1201e52
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 46 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ BraceWrapping:
BeforeLambdaBody: true
BreakConstructorInitializers: AfterColon
BreakStringLiterals: false
ColumnLimit: 120
FixNamespaceComments: false
IndentCaseBlocks: true
IndentCaseLabels: true
Expand Down
94 changes: 48 additions & 46 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,55 +1,57 @@
---
Checks: <
boost-*

bugprone-*
-bugprone-easily-swappable-parameters
-bugprone-reserved-identifier

cert-*

concurrency-*

cppcoreguidelines-*
-cppcoreguidelines-avoid-do-while
-cppcoreguidelines-non-private-member-variables-in-classes
-cppcoreguidelines-pro-bounds-pointer-arithmetic
-cppcoreguidelines-pro-type-reinterpret-cast

google-*
-google-build-using-namespace
-google-readability-namespace-comments

hicpp-*

misc-*
-misc-include-cleaner
-misc-non-private-member-variables-in-classes¶

modernize-*
-modernize-use-trailing-return-type

performance-*

portability-*
Checks: >
boost-*,
readability-*
-readability-identifier-length
bugprone-*,
-bugprone-easily-swappable-parameters,
-bugprone-reserved-identifier,
FormatStyle: file
cert-*,
-cert-dcl51-cpp,
CheckOptions:
performance-unnecessary-value-param.IncludeStyle: google
concurrency-*,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-reinterpret-cast,
google-*,
-google-build-using-namespace,
-google-readability-namespace-comments,
hicpp-multiway-paths-covered,
readability-identifier-naming.EnumCase: CamelCase
readability-identifier-naming.EnumConstantCase: UPPER_CASE
misc-*,
-misc-include-cleaner,
-misc-non-private-member-variables-in-classes,
readability-identifier-naming.TypeAliasCase: CamelCase
readability-identifier-naming.TypeDefCase: CamelCase
modernize-*,
-modernize-use-trailing-return-type,
readability-identifier-naming.ClassMemberPrefix: m_
readability-identifier-naming.ClassMemberCase: CamelCase
performance-*,
readability-identifier-naming.VariableCase: lower_case
portability-*,
misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: true
readability-*,
-readability-identifier-length,
-readability-named-parameter
FormatStyle: file

CheckOptions:
- {
key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic,
value: true,
}

- { key: performance-unnecessary-value-param.IncludeStyle, value: google }

- { key: readability-identifier-naming.EnumCase, value: CamelCase }
- { key: readability-identifier-naming.EnumConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.TypeAliasCase, value: CamelCase }
- { key: readability-identifier-naming.TypeDefCase, value: CamelCase }
- { key: readability-identifier-naming.ClassMemberPrefix, value: m_ }
- { key: readability-identifier-naming.ClassMemberCase, value: lower_case }
- { key: readability-identifier-naming.VariableCase, value: lower_case }
2 changes: 2 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CompileFlags:
CompilationDatabase: .build

0 comments on commit 1201e52

Please sign in to comment.