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:
|
|
|
|
- macosx64
|
|
|
|
- linux64
|
|
|
|
- win64
|
|
|
|
- win32
|
2017-09-30 14:54:58 +03:00
|
|
|
clang_checkers:
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: -*
|
|
|
|
publish: !!bool no
|
2018-07-09 09:54:13 +03:00
|
|
|
- name: bugprone-suspicious-memset-usage
|
|
|
|
publish: !!bool yes
|
2018-07-15 09:07:40 +03:00
|
|
|
- name: clang-analyzer-cplusplus.NewDelete
|
|
|
|
publish: !!bool yes
|
2018-07-15 09:10:39 +03:00
|
|
|
- name: clang-analyzer-cplusplus.NewDeleteLeaks
|
|
|
|
publish: !!bool yes
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: clang-analyzer-deadcode.DeadStores
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: clang-analyzer-security.FloatLoopCounter
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: clang-analyzer-security.insecureAPI.getpw
|
|
|
|
publish: !!bool yes
|
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
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: clang-analyzer-security.insecureAPI.mktemp
|
|
|
|
publish: !!bool yes
|
|
|
|
- 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
|
|
|
|
publish: !!bool yes
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: clang-analyzer-security.insecureAPI.vfork
|
|
|
|
publish: !!bool yes
|
2018-07-15 09:28:26 +03:00
|
|
|
- name: clang-analyzer-unix.Malloc
|
|
|
|
publish: !!bool yes
|
2018-07-15 09:15:37 +03:00
|
|
|
- name: clang-analyzer-unix.cstring.BadSizeArg
|
|
|
|
publish: !!bool yes
|
2018-07-15 08:07:12 +03:00
|
|
|
- name: clang-analyzer-unix.cstring.NullArg
|
|
|
|
publish: !!bool yes
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: misc-argument-comment
|
2018-07-24 15:15:04 +03:00
|
|
|
# Name with clang tidy 6.0
|
|
|
|
# - name: bugprone-argument-comment
|
2018-05-03 20:06:16 +03:00
|
|
|
publish: !!bool yes
|
|
|
|
- name: misc-assert-side-effect
|
|
|
|
publish: !!bool yes
|
2018-07-05 05:30:33 +03:00
|
|
|
- name: misc-bool-pointer-implicit-conversion
|
|
|
|
publish: !!bool yes
|
2018-06-19 08:06:00 +03:00
|
|
|
- name: misc-forward-declaration-namespace
|
|
|
|
# Name with clang tidy 6.0. We are currently using 5.0
|
|
|
|
# - name: bugprone-forward-declaration-namespace
|
|
|
|
publish: !!bool yes
|
2018-07-09 20:14:40 +03:00
|
|
|
- name: misc-macro-repeated-side-effects
|
|
|
|
publish: !!bool yes
|
2018-07-15 09:41:55 +03:00
|
|
|
- name: misc-string-constructor
|
|
|
|
publish: !!bool yes
|
Bug 1475882 - clang-tidy: Enable misc-string-integer-assignment check. r=andi
The check finds assignments of an integer to std::string:
https://clang.llvm.org/extra/clang-tidy/checks/bugprone-string-integer-assignment.html
There are currently ten misc-string-integer-assignment warnings in mozilla-central, but they are all in third-party Breakpad code:
toolkit/crashreporter/google-breakpad/src/processor/minidump.cc:306:17: warning: an integer is interpreted as a character code when assigning it to a string; if this is intended, cast the integer to the appropriate character type; if you want a string representation, use the appropriate conversion facility
toolkit/crashreporter/google-breakpad/src/processor/minidump.cc:307:17: warning: an integer is interpreted as a character code when assigning it to a string; if this is intended, cast the integer to the appropriate character type; if you want a string representation, use the appropriate conversion facility
toolkit/crashreporter/google-breakpad/src/processor/minidump.cc:309:17: warning: an integer is interpreted as a character code when assigning it to a string; if this is intended, cast the integer to the appropriate character type; if you want a string representation, use the appropriate conversion facility
toolkit/crashreporter/google-breakpad/src/processor/minidump.cc:310:17: warning: an integer is interpreted as a character code when assigning it to a string; if this is intended, cast the integer to the appropriate character type; if you want a string representation, use the appropriate conversion facility
toolkit/crashreporter/google-breakpad/src/processor/minidump.cc:311:17: warning: an integer is interpreted as a character code when assigning it to a string; if this is intended, cast the integer to the appropriate character type; if you want a string representation, use the appropriate conversion facility
toolkit/crashreporter/google-breakpad/src/processor/minidump.cc:313:17: warning: an integer is interpreted as a character code when assigning it to a string; if this is intended, cast the integer to the appropriate character type; if you want a string representation, use the appropriate conversion facility
toolkit/crashreporter/google-breakpad/src/processor/minidump.cc:314:17: warning: an integer is interpreted as a character code when assigning it to a string; if this is intended, cast the integer to the appropriate character type; if you want a string representation, use the appropriate conversion facility
toolkit/crashreporter/google-breakpad/src/processor/minidump.cc:315:17: warning: an integer is interpreted as a character code when assigning it to a string; if this is intended, cast the integer to the appropriate character type; if you want a string representation, use the appropriate conversion facility
toolkit/crashreporter/google-breakpad/src/processor/minidump.cc:316:17: warning: an integer is interpreted as a character code when assigning it to a string; if this is intended, cast the integer to the appropriate character type; if you want a string representation, use the appropriate conversion facility
MozReview-Commit-ID: AUOyOuCzy1R
--HG--
extra : source : 93356b5c58539d19c27dade7b1514bae709bc149
extra : histedit_source : 4bc38ab5a7a50869aaf4fce87aa2f75ce9dd301a
2018-07-15 09:48:40 +03:00
|
|
|
- name: misc-string-integer-assignment
|
|
|
|
publish: !!bool yes
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: misc-suspicious-missing-comma
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: misc-suspicious-semicolon
|
|
|
|
publish: !!bool yes
|
2018-07-09 10:26:58 +03:00
|
|
|
- name: misc-swapped-arguments
|
|
|
|
publish: !!bool yes
|
2018-07-09 21:04:31 +03:00
|
|
|
- name: misc-unused-alias-decls
|
|
|
|
publish: !!bool yes
|
2018-07-02 20:52:35 +03:00
|
|
|
- name: misc-unused-raii
|
|
|
|
publish: !!bool yes
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: misc-unused-using-decls
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: modernize-avoid-bind
|
|
|
|
publish: !!bool yes
|
|
|
|
restricted-platforms:
|
|
|
|
- win32
|
|
|
|
- win64
|
|
|
|
- name: modernize-loop-convert
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: modernize-raw-string-literal
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: modernize-redundant-void-arg
|
|
|
|
publish: !!bool no
|
|
|
|
- name: modernize-shrink-to-fit
|
|
|
|
publish: !!bool yes
|
2018-06-19 08:06:00 +03:00
|
|
|
- name: modernize-use-auto
|
|
|
|
# Controversial, see bug 1371052.
|
|
|
|
publish: !!bool no
|
|
|
|
- name: modernize-use-bool-literals
|
|
|
|
publish: !!bool yes
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: modernize-use-equals-default
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: modernize-use-equals-delete
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: modernize-use-nullptr
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: modernize-use-override
|
|
|
|
# Too noisy because of the way how we implement NS_IMETHOD. See Bug 1420366.
|
|
|
|
publish: !!bool no
|
|
|
|
- name: mozilla-*
|
|
|
|
publish: !!bool yes
|
2018-06-19 08:08:00 +03:00
|
|
|
- name: performance-faster-string-find
|
|
|
|
publish: !!bool yes
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: performance-for-range-copy
|
|
|
|
publish: !!bool yes
|
2018-06-19 08:08:00 +03:00
|
|
|
# Only available from clang tidy 6.0. We are currently using 5.0
|
|
|
|
# - name: performance-implicit-conversion-in-loop
|
|
|
|
# publish: !!bool yes
|
2018-05-03 20:06:16 +03:00
|
|
|
- name: performance-inefficient-string-concatenation
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: performance-inefficient-vector-operation
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: performance-type-promotion-in-math-fn
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: performance-unnecessary-copy-initialization
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: performance-unnecessary-value-param
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: readability-container-size-empty
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: readability-else-after-return
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: readability-misleading-indentation
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: readability-redundant-control-flow
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: readability-redundant-smartptr-get
|
|
|
|
publish: !!bool no
|
|
|
|
- name: readability-redundant-string-cstr
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: readability-redundant-string-init
|
|
|
|
publish: !!bool yes
|
|
|
|
- name: readability-uniqueptr-delete-release
|
|
|
|
publish: !!bool yes
|
2018-04-04 16:42:58 +03:00
|
|
|
# Only available from clang tidy 6.0. We are currently using 5.0
|
|
|
|
# - name: readability-static-accessed-through-instance
|
|
|
|
# publish: !!bool yes
|
2017-09-30 14:54:58 +03:00
|
|
|
|
|
|
|
# Third party files from mozilla-central
|
|
|
|
third_party: tools/rewriting/ThirdPartyPaths.txt
|