diff --git a/.clang-format b/.clang-format index fc747132..c51dfbed 100644 --- a/.clang-format +++ b/.clang-format @@ -14,6 +14,7 @@ BraceWrapping: BeforeLambdaBody: true BreakConstructorInitializers: AfterColon BreakStringLiterals: false +ColumnLimit: 120 FixNamespaceComments: false IndentCaseBlocks: true IndentCaseLabels: true diff --git a/.clang-tidy b/.clang-tidy index aec2e2db..a21a5be1 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -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 } diff --git a/.clangd b/.clangd new file mode 100644 index 00000000..d36ad368 --- /dev/null +++ b/.clangd @@ -0,0 +1,2 @@ +CompileFlags: + CompilationDatabase: .build \ No newline at end of file