From 91a6c5a20aada642a891a61a521f644a140cf79b Mon Sep 17 00:00:00 2001 From: firewave Date: Fri, 6 Oct 2023 06:28:04 +0200 Subject: [PATCH] disabled some clang-tidy checks which only apply to standards newer than C++11 --- .clang-tidy | 2 ++ clang-tidy.md | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index 7617f792e037..7088c1b7a776 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -44,7 +44,9 @@ Checks: > -modernize-raw-string-literal, -modernize-replace-auto-ptr, -modernize-return-braced-init-list, + -modernize-type-traits, -modernize-use-auto, + -modernize-use-nodiscard, -modernize-use-trailing-return-type, -performance-avoid-endl, -performance-inefficient-string-concatenation, diff --git a/clang-tidy.md b/clang-tidy.md index ba7c7d6113d8..4bc5c5954f7f 100644 --- a/clang-tidy.md +++ b/clang-tidy.md @@ -155,6 +155,11 @@ To be evaluated (need to remove exclusion). To be evaluated (need to enable explicitly). +`modernize-type-traits`
+`modernize-use-nodiscard`
+ +These apply to codebases which use later standards then C++11 (C++17 is used when building with Qt6) so we cannot simply apply them. + `portability-std-allocator-const`
Only necessary for code which is exclusively compiled with `libc++`. Also disabled for performance reasons - see https://github.com/llvm/llvm-project/issues/57527#issuecomment-1237935132.