Backed out 3 changesets (bug 1790375) for causing wd failures on fetch_error.py....
[gecko.git] / third_party / jpeg-xl / .clang-tidy
blob06c98756243f9c09da480a50e05e0b1b0ab09088
1 # Disabled checks:
2 # - modernize-deprecated-headers: We don't use std:: versions of the standard
3 #   types and functions like size_t or printf, so we should include <stdio.h>
4 #   instead <cstdio>.
5 # - modernize-return-braced-init-list: this often doesn't improve readability.
6 # - modernize-use-auto: is too aggressive towards using auto.
7 # - modernize-use-default-member-init: with a mix of constructors and default
8 #   member initialization this can be confusing if enforced.
9 # - modernize-use-trailing-return-type: does not improve readability when used
10 #   systematically.
11 # - modernize-use-using: typedefs are ok.
13 # - readability-else-after-return: It doesn't always improve readability.
14 # - readability-static-accessed-through-instance
15 #   It is often more useful and readable to access a constant of a passed
16 #   variable (like d.N) instead of using the type of the variable that could be
17 #   long and complex.
18 # - readability-uppercase-literal-suffix: we write 1.0f, not 1.0F.
20 Checks: >-
21   bugprone-*,
22   clang-*,
23   -clang-diagnostic-unused-command-line-argument,
24   google-*,
25   modernize-*,
26   performance-*,
27   readability-*,
28   -modernize-deprecated-headers,
29   -modernize-return-braced-init-list,
30   -modernize-use-auto,
31   -modernize-use-default-member-init,
32   -modernize-use-trailing-return-type,
33   -modernize-use-using,
34   -readability-else-after-return,
35   -readability-function-cognitive-complexity,
36   -readability-static-accessed-through-instance,
37   -readability-uppercase-literal-suffix,
40 WarningsAsErrors: >-
41   bugprone-argument-comment,
42   bugprone-macro-parentheses,
43   bugprone-suspicious-string-compare,
44   bugprone-use-after-move,
45   clang-*,
46   clang-analyzer-*,
47   -clang-diagnostic-unused-command-line-argument,
48   google-build-using-namespace,
49   google-explicit-constructor,
50   google-readability-braces-around-statements,
51   google-readability-namespace-comments,
52   modernize-use-override,
53   readability-inconsistent-declaration-parameter-name
55 # We are only interested in the headers from this projects, excluding
56 # third_party/ and build/.
57 HeaderFilterRegex: '^.*/(lib|tools)/.*\.h$'
59 CheckOptions:
60   - key:             readability-braces-around-statements.ShortStatementLines
61     value:           '2'
62   - key:             google-readability-braces-around-statements.ShortStatementLines
63     value:           '2'
64   - key:             readability-implicit-bool-conversion.AllowPointerConditions
65     value:           '1'
66   - key:             readability-implicit-bool-conversion.AllowIntegerConditions
67     value:           '1'