aboutsummaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-08-17 23:36:53 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-08-17 23:36:53 +0200
commit6c9695d16c157e9119dcf897266e8643e6565213 (patch)
tree6f96470fb1a56234f18c1561f3b96eb301fffe1c /.clang-tidy
parent851d4fb9db087eeb183f1c1cb5d96829a32e690b (diff)
downloadcpp-utils-6c9695d16c157e9119dcf897266e8643e6565213.tar.gz
cpp-utils-6c9695d16c157e9119dcf897266e8643e6565213.zip
enable misc-*,bugprone-* lints
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy22
1 files changed, 19 insertions, 3 deletions
diff --git a/.clang-tidy b/.clang-tidy
index a80c66b..ac2683b 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -4,6 +4,21 @@ WarningsAsErrors: '*'
# Available checks:
# https://clang.llvm.org/extra/clang-tidy/index.html#using-clang-tidy
# https://clang.llvm.org/extra/clang-tidy/checks/list.html
+#
+# List all checks:
+# clang-tidy --checks="*" --list-checks
+#
+# Excuse all lints for a line inside the source code:
+# some code; // NOLINT
+#
+# // NOLINTNEXTLINE
+# some code;
+#
+# Excuse a single lint for a line inside the source code:
+# some code; // NOLINT(bugprone-macro-parentheses)
+#
+# // NOLINTNEXTLINE(bugprone-macro-parentheses)
+# some code;
Checks: >
-*,
clang-analyzer-*,
@@ -16,11 +31,12 @@ Checks: >
-modernize-avoid-c-arrays,
readability-reduntant-*,
readability-identifier-naming,
- #misc-*,
+ misc-*,
+ -misc-non-private-member-variables-in-classes,
#cert-*,
- #bugprone-*,
+ bugprone-*,
+ -bugprone-use-after-move,
#cppcoreguidelines-*,
- #-cppcoreguidelines-avoid-magic-numbers,
# readability-identifier-naming.* options:
# https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-naming.html