summaryrefslogtreecommitdiffstats
path: root/third_party/jpeg-xl/.clang-tidy
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /third_party/jpeg-xl/.clang-tidy
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/jpeg-xl/.clang-tidy')
-rw-r--r--third_party/jpeg-xl/.clang-tidy67
1 files changed, 67 insertions, 0 deletions
diff --git a/third_party/jpeg-xl/.clang-tidy b/third_party/jpeg-xl/.clang-tidy
new file mode 100644
index 0000000000..06c9875624
--- /dev/null
+++ b/third_party/jpeg-xl/.clang-tidy
@@ -0,0 +1,67 @@
+# Disabled checks:
+# - modernize-deprecated-headers: We don't use std:: versions of the standard
+# types and functions like size_t or printf, so we should include <stdio.h>
+# instead <cstdio>.
+# - modernize-return-braced-init-list: this often doesn't improve readability.
+# - modernize-use-auto: is too aggressive towards using auto.
+# - modernize-use-default-member-init: with a mix of constructors and default
+# member initialization this can be confusing if enforced.
+# - modernize-use-trailing-return-type: does not improve readability when used
+# systematically.
+# - modernize-use-using: typedefs are ok.
+#
+# - readability-else-after-return: It doesn't always improve readability.
+# - readability-static-accessed-through-instance
+# It is often more useful and readable to access a constant of a passed
+# variable (like d.N) instead of using the type of the variable that could be
+# long and complex.
+# - readability-uppercase-literal-suffix: we write 1.0f, not 1.0F.
+
+Checks: >-
+ bugprone-*,
+ clang-*,
+ -clang-diagnostic-unused-command-line-argument,
+ google-*,
+ modernize-*,
+ performance-*,
+ readability-*,
+ -modernize-deprecated-headers,
+ -modernize-return-braced-init-list,
+ -modernize-use-auto,
+ -modernize-use-default-member-init,
+ -modernize-use-trailing-return-type,
+ -modernize-use-using,
+ -readability-else-after-return,
+ -readability-function-cognitive-complexity,
+ -readability-static-accessed-through-instance,
+ -readability-uppercase-literal-suffix,
+
+
+WarningsAsErrors: >-
+ bugprone-argument-comment,
+ bugprone-macro-parentheses,
+ bugprone-suspicious-string-compare,
+ bugprone-use-after-move,
+ clang-*,
+ clang-analyzer-*,
+ -clang-diagnostic-unused-command-line-argument,
+ google-build-using-namespace,
+ google-explicit-constructor,
+ google-readability-braces-around-statements,
+ google-readability-namespace-comments,
+ modernize-use-override,
+ readability-inconsistent-declaration-parameter-name
+
+# We are only interested in the headers from this projects, excluding
+# third_party/ and build/.
+HeaderFilterRegex: '^.*/(lib|tools)/.*\.h$'
+
+CheckOptions:
+ - key: readability-braces-around-statements.ShortStatementLines
+ value: '2'
+ - key: google-readability-braces-around-statements.ShortStatementLines
+ value: '2'
+ - key: readability-implicit-bool-conversion.AllowPointerConditions
+ value: '1'
+ - key: readability-implicit-bool-conversion.AllowIntegerConditions
+ value: '1'