diff --git a/.clang-format b/.clang-format index fe28965..fea7e32 100644 --- a/.clang-format +++ b/.clang-format @@ -18,6 +18,7 @@ BreakAdjacentStringLiterals: true BreakAfterAttributes: Leave BreakBeforeBinaryOperators: All BreakBeforeInlineASMColon: OnlyMultiline +BreakTemplateDeclarations: Yes BinPackArguments: false BinPackParameters: false ColumnLimit: 120 @@ -44,6 +45,10 @@ IntegerLiteralSeparator: IndentRequiresClause: true IndentPPDirectives: AfterHash InsertNewlineAtEOF: false +KeepEmptyLines: + AtEndOfFile: false + AtStartOfBlock: false + AtStartOfFile: false LineEnding: LF NamespaceIndentation: Inner PackConstructorInitializers: NextLine diff --git a/.clang-tidy b/.clang-tidy index 1686353..05f3bec 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -5,6 +5,7 @@ Checks: > *, -abseil*, -altera*, + -boost-use-ranges, -cert-dcl21-cpp, -fuchsia*, -llvmlib*, @@ -16,12 +17,13 @@ Checks: > -readability-qualified-auto, -readability-static-accessed-through-instance, CheckOptions: - readability-identifier-length.IgnoredVariableNames: n|ch|_|id|to|t|u|i|j|k - readability-identifier-length.IgnoredParameterNames: n|ch|_|id|to|t|u|i|j|k + modernize-use-ranges.UseReversePip: true + readability-identifier-length.IgnoredVariableNames: n|ch|_|id|to|t|u|i|j|k|op + readability-identifier-length.IgnoredParameterNames: n|ch|_|id|to|t|u|i|j|k|op # Force identifier naming: See https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-naming.html # readability-identifier-naming.AbstractClassCase: Leading_upper_snake_case # readability-identifier-naming.AggressiveDependentMemberLookup: false - # readability-identifier-naming.CheckAnonFieldInParent: True + # readability-identifier-naming.CheckAnonFieldInParent: true # readability-identifier-naming.ClassCase: Leading_upper_snake_case # readability-identifier-naming.ClassConstantCase: lower_case # readability-identifier-naming.ClassMemberCase: lower_case diff --git a/.clangd b/.clangd index ea8b9fc..02daa87 100644 --- a/.clangd +++ b/.clangd @@ -1,14 +1,16 @@ CompileFlags: Remove: # Remove false positive errors when using g++-14 with c++20 or above standard - - '-fmodule*' - - '-fdeps-format*' + - "-fmodule*" + - "-fdeps-format*" Diagnostics: Suppress: - - 'type_unsupported' + - "type_unsupported" ClangTidy: # ClangTidy: See checks in file `.clang-tidy` FastCheckFilter: Strict # Run only checks measured to be fast, https://clangd.llvm.org/config#fastcheckfilter UnusedIncludes: Strict + Includes: + AnalyzeAngledIncludes: Yes # Enables detection of unused angled includes that are not from the standard library # MissingIncludes: Strict # Uncomment it if required; might be too annoying Index: Background: Build @@ -27,11 +29,11 @@ Hover: # --- # If: # PathMatch: -# - 'test_98/.*' -# - 'test_14/.*' +# - "test_98/.*" +# - "test_14/.*" # Diagnostics: # ClangTidy: -# Remove: -# - '*-owning-memory' -# - '*-special-member-functions' -# - 'modernize*' +# Remove: +# - "*-owning-memory" +# - "*-special-member-functions" +# - "modernize*"