From 2d395a557f967f8b8cc9b382b5c953c475376a5c Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Sat, 15 Feb 2020 14:59:01 +0100 Subject: [PATCH] Fix clang-tidy config file Now you are able to check with this file Note: better to install and used run-clang-tidy.py from clang git repo: https://github.com/llvm-mirror/clang-tools-extra/blob/master/clang-tidy/tool/run-clang-tidy.py see too https://www.kdab.com/clang-tidy-part-1-modernize-source-code-using-c11c14/ --- .clang-tidy | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index af1db756..e824deb1 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,4 +1,5 @@ -Checks: '\ +--- +Checks: "-*,\ cppcoreguidelines-*,\ performance-*,\ -performance-unnecessary-value-param,\ @@ -10,14 +11,15 @@ misc-*,\ -misc-non-private-member-variables-in-classes,\ cert-*,\ readability-*,\ -clang-analyzer-*' +clang-analyzer-*\ +" WarningsAsErrors: '' HeaderFilterRegex: 'include/spdlog/[^f].*' AnalyzeTemporaryDtors: false FormatStyle: none -CheckOptions: +CheckOptions: - key: google-readability-braces-around-statements.ShortStatementLines value: '1' - key: google-readability-function-size.StatementThreshold