From f85d8b0bf91ae557b43f80d16360c0f73b931c18 Mon Sep 17 00:00:00 2001 From: Moritz Gmeiner Date: Mon, 26 Feb 2024 17:07:57 +0100 Subject: [PATCH] updates to .clang-tidy and .clang-format --- .clang-format | 4 ++++ .clang-tidy | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 9bff84c..874e43d 100644 --- a/.clang-format +++ b/.clang-format @@ -6,5 +6,9 @@ ColumnLimit: 100 --- Language: Cpp +AllowShortFunctionsOnASingleLine: Inline + +IndentCaseLabels: false + DerivePointerAlignment: false PointerAlignment: Left \ No newline at end of file diff --git a/.clang-tidy b/.clang-tidy index e7df1db..0908ccb 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -3,20 +3,31 @@ Checks: ' bugprone-*, clang-analyzer-*, clang-diagnostic-*, - cppcoreguidelines-*, + # cppcoreguidelines-*, google-*, llvm-*, misc-*, modernize-*, performance-*, readability-*, + + -bugprone-easily-swappable-parameters, + + -cppcoreguidelines-avoid-magic-numbers, + -cppcoreguidelines-pro-bounds-constant-array-index, + + -google-objc-function-naming, + -google-readability-todo, -misc-no-recursion, -modernize-use-nodiscard, -modernize-use-trailing-return-type, + -performance-avoid-endl, + -readability-else-after-return, -readability-identifier-length, + -readability-magic-numbers, ' WarningsAsErrors: '*'