2017-09-30 14:54:58 +03:00
|
|
|
---
|
|
|
|
target: obj-x86_64-pc-linux-gnu
|
|
|
|
# It is used by 'mach static-analysis' and 'mozreview static-analysis bot'
|
|
|
|
# in order to have consistency across the used checkers.
|
|
|
|
# All the clang checks used by the static-analysis tools.
|
2018-05-03 20:06:16 +03:00
|
|
|
platforms:
|
|
|
|
- linux64
|
2018-09-04 14:55:19 +03:00
|
|
|
- macosx64
|
2018-05-03 20:06:16 +03:00
|
|
|
- win32
|
2018-09-04 14:55:19 +03:00
|
|
|
- win64
|
2018-09-25 10:51:39 +03:00
|
|
|
# Minimum clang-tidy version that is required for all the following checkers
|
|
|
|
# to work properly.
|
|
|
|
min_clang_tidy: "7.0.0"
|
2017-09-30 14:54:58 +03:00
|
|
|
clang_checkers:
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: -*
|
|
|
|
publish: !!bool no
|
2018-08-24 15:39:58 +03:00
|
|
|
- name: bugprone-argument-comment
|
|
|
|
- name: bugprone-assert-side-effect
|
|
|
|
- name: bugprone-bool-pointer-implicit-conversion
|
|
|
|
- name: bugprone-forward-declaration-namespace
|
|
|
|
- name: bugprone-macro-repeated-side-effects
|
|
|
|
- name: bugprone-string-constructor
|
|
|
|
- name: bugprone-string-integer-assignment
|
2018-07-09 09:54:13 +03:00
|
|
|
- name: bugprone-suspicious-memset-usage
|
2018-08-24 15:39:58 +03:00
|
|
|
- name: bugprone-suspicious-missing-comma
|
|
|
|
- name: bugprone-suspicious-semicolon
|
|
|
|
- name: bugprone-swapped-arguments
|
|
|
|
- name: bugprone-unused-raii
|
2018-07-15 09:07:40 +03:00
|
|
|
- name: clang-analyzer-cplusplus.NewDelete
|
2018-07-15 09:10:39 +03:00
|
|
|
- name: clang-analyzer-cplusplus.NewDeleteLeaks
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: clang-analyzer-deadcode.DeadStores
|
|
|
|
- name: clang-analyzer-security.FloatLoopCounter
|
2018-09-04 14:55:19 +03:00
|
|
|
- name: clang-analyzer-security.insecureAPI.bcmp
|
|
|
|
- name: clang-analyzer-security.insecureAPI.bcopy
|
|
|
|
- name: clang-analyzer-security.insecureAPI.bzero
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: clang-analyzer-security.insecureAPI.getpw
|
2018-06-19 08:08:00 +03:00
|
|
|
# We don't add clang-analyzer-security.insecureAPI.gets here; it's deprecated.
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: clang-analyzer-security.insecureAPI.mkstemp
|
|
|
|
- name: clang-analyzer-security.insecureAPI.mktemp
|
|
|
|
- name: clang-analyzer-security.insecureAPI.rand
|
|
|
|
publish: !!bool no
|
|
|
|
- name: clang-analyzer-security.insecureAPI.strcpy
|
|
|
|
publish: !!bool no
|
2018-06-19 08:06:00 +03:00
|
|
|
- name: clang-analyzer-security.insecureAPI.UncheckedReturn
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: clang-analyzer-security.insecureAPI.vfork
|
2018-07-15 09:28:26 +03:00
|
|
|
- name: clang-analyzer-unix.Malloc
|
2018-07-15 09:15:37 +03:00
|
|
|
- name: clang-analyzer-unix.cstring.BadSizeArg
|
2018-07-15 08:07:12 +03:00
|
|
|
- name: clang-analyzer-unix.cstring.NullArg
|
2018-07-09 21:04:31 +03:00
|
|
|
- name: misc-unused-alias-decls
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: misc-unused-using-decls
|
|
|
|
- name: modernize-avoid-bind
|
|
|
|
restricted-platforms:
|
|
|
|
- win32
|
|
|
|
- win64
|
|
|
|
- name: modernize-loop-convert
|
|
|
|
- name: modernize-raw-string-literal
|
|
|
|
- name: modernize-redundant-void-arg
|
|
|
|
publish: !!bool no
|
|
|
|
- name: modernize-shrink-to-fit
|
2018-06-19 08:06:00 +03:00
|
|
|
- name: modernize-use-auto
|
|
|
|
# Controversial, see bug 1371052.
|
|
|
|
publish: !!bool no
|
|
|
|
- name: modernize-use-bool-literals
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: modernize-use-equals-default
|
|
|
|
- name: modernize-use-equals-delete
|
|
|
|
- name: modernize-use-nullptr
|
|
|
|
- name: modernize-use-override
|
|
|
|
# Too noisy because of the way how we implement NS_IMETHOD. See Bug 1420366.
|
|
|
|
publish: !!bool no
|
|
|
|
- name: mozilla-*
|
2018-06-19 08:08:00 +03:00
|
|
|
- name: performance-faster-string-find
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: performance-for-range-copy
|
2018-09-04 14:55:19 +03:00
|
|
|
- name: performance-implicit-conversion-in-loop
|
|
|
|
- name: performance-inefficient-algorithm
|
|
|
|
restricted-platforms:
|
|
|
|
- linux64
|
|
|
|
- macosx64
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: performance-inefficient-string-concatenation
|
|
|
|
- name: performance-inefficient-vector-operation
|
2018-09-04 14:55:19 +03:00
|
|
|
- name: performance-move-const-arg
|
|
|
|
- name: performance-move-constructor-init
|
|
|
|
- name: performance-noexcept-move-constructor
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: performance-type-promotion-in-math-fn
|
|
|
|
- name: performance-unnecessary-copy-initialization
|
|
|
|
- name: performance-unnecessary-value-param
|
2018-09-05 17:07:58 +03:00
|
|
|
- name: readability-braces-around-statements
|
|
|
|
# Note: this can be loosened up by using the ShortStatementLines option
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: readability-container-size-empty
|
|
|
|
- name: readability-else-after-return
|
|
|
|
- name: readability-misleading-indentation
|
|
|
|
- name: readability-redundant-control-flow
|
|
|
|
- name: readability-redundant-smartptr-get
|
|
|
|
publish: !!bool no
|
|
|
|
- name: readability-redundant-string-cstr
|
|
|
|
- name: readability-redundant-string-init
|
2018-09-04 14:55:19 +03:00
|
|
|
- name: readability-static-accessed-through-instance
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: readability-uniqueptr-delete-release
|
2018-09-20 18:29:32 +03:00
|
|
|
# We don't publish the google checkers since we are interested in only having
|
|
|
|
# a general idea how our code complies with the rules added by these checkers.
|
|
|
|
- name: google-build-explicit-make-pair
|
|
|
|
publish: !!bool no
|
|
|
|
- name: google-build-namespaces
|
|
|
|
publish: !!bool no
|
|
|
|
- name: google-build-using-namespace
|
|
|
|
publish: !!bool no
|
|
|
|
- name: google-default-arguments
|
|
|
|
publish: !!bool no
|
|
|
|
- name: google-explicit-constructor
|
|
|
|
publish: !!bool no
|
|
|
|
- name: google-global-names-in-headers
|
|
|
|
publish: !!bool no
|
|
|
|
- name: google-readability-casting
|
|
|
|
publish: !!bool no
|
|
|
|
- name: google-readability-function-size
|
|
|
|
publish: !!bool no
|
|
|
|
- name: google-readability-namespace-comments
|
|
|
|
publish: !!bool no
|
|
|
|
- name: google-readability-todo
|
|
|
|
publish: !!bool no
|
|
|
|
- name: google-runtime-int
|
|
|
|
publish: !!bool no
|
|
|
|
- name: google-runtime-operator
|
|
|
|
publish: !!bool no
|
|
|
|
- name: google-runtime-references
|
|
|
|
publish: !!bool no
|
2017-09-30 14:54:58 +03:00
|
|
|
|
|
|
|
# Third party files from mozilla-central
|
|
|
|
third_party: tools/rewriting/ThirdPartyPaths.txt
|