From 7eaf077f1f75194e15968e239ff69892e5e1b648 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 25 Feb 2022 18:03:49 +0100 Subject: style: improve clang-format & clang-tidy configs --- .clang-format | 2 ++ .clang-tidy | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index a795a13..4147c1f 100644 --- a/.clang-format +++ b/.clang-format @@ -5,7 +5,9 @@ TabWidth: 4 BreakBeforeBraces: Allman AllowShortIfStatementsOnASingleLine: false AllowShortFunctionsOnASingleLine: Empty +AllowShortLambdasOnASingleLine: None IndentCaseLabels: false ColumnLimit: 90 AccessModifierOffset: -4 AlwaysBreakTemplateDeclarations: Yes +ConstructorInitializerAllOnOneLineOrOnePerLine: Yes diff --git a/.clang-tidy b/.clang-tidy index c31d884..6fffdc8 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -12,7 +12,8 @@ Checks: ' -bugprone-reserved-identifier, -google-readability-braces-around-statements, -modernize-return-braced-init-list, - -modernize-use-trailing-return-type' + -modernize-use-trailing-return-type, + -misc-non-private-member-variables-in-classes' WarningsAsErrors: '*' HeaderFilterRegex: '\/src\/' AnalyzeTemporaryDtors: false -- cgit v1.2.3-18-g5258