aboutsummaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
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