gecko-dev/tools/clang-tidy/test
Jeff Gilbert 85bbcbfa5e Bug 1602143 - Use ShortStatementLines=1 for readability-braces-around-statements. r=andi
This will reduce the false-positive rate that sometimes causes devs to
ignore other important warnings because they expect to see these
warnings because of module/legacy code styles.

```
if (foo) return; // no longer warns
if (bar)
  return; // still warns
```
clang-format will sometimes turn long-line versions of the former into
the latter, and this warning will pick those as readability warnings.
NB: This is Chromium style for same-line conditional statements.

Another test result json has its EOL-newline removed too, since that's
what the script does and I'm just committing its results.

Differential Revision: https://phabricator.services.mozilla.com/D105497
2021-02-18 08:26:11 +00:00
..
bugprone-argument-comment.cpp
bugprone-argument-comment.json
bugprone-assert-side-effect.cpp
bugprone-assert-side-effect.json
bugprone-bool-pointer-implicit-conversion.cpp
bugprone-bool-pointer-implicit-conversion.json
bugprone-forward-declaration-namespace.cpp
bugprone-forward-declaration-namespace.json
bugprone-incorrect-roundings.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
bugprone-incorrect-roundings.json
bugprone-integer-division.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
bugprone-integer-division.json
bugprone-macro-parentheses.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
bugprone-macro-parentheses.json
bugprone-macro-repeated-side-effects.cpp
bugprone-macro-repeated-side-effects.json
bugprone-misplaced-widening-cast.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
bugprone-misplaced-widening-cast.json
bugprone-move-forwarding-reference.cpp Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham 2020-12-15 10:34:54 +00:00
bugprone-move-forwarding-reference.json
bugprone-multiple-statement-macro.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
bugprone-multiple-statement-macro.json
bugprone-sizeof-expression.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
bugprone-sizeof-expression.json
bugprone-string-constructor.cpp
bugprone-string-constructor.json
bugprone-string-integer-assignment.cpp
bugprone-string-integer-assignment.json
bugprone-suspicious-memset-usage.cpp
bugprone-suspicious-memset-usage.json
bugprone-suspicious-missing-comma.cpp
bugprone-suspicious-missing-comma.json
bugprone-suspicious-semicolon.cpp
bugprone-suspicious-semicolon.json
bugprone-suspicious-string-compare.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
bugprone-suspicious-string-compare.json
bugprone-swapped-arguments.cpp
bugprone-swapped-arguments.json
bugprone-too-small-loop-variable.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
bugprone-too-small-loop-variable.json
bugprone-unused-raii.cpp
bugprone-unused-raii.json
bugprone-use-after-move.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
bugprone-use-after-move.json
clang-analyzer-core.CallAndMessage.cpp
clang-analyzer-core.CallAndMessage.json
clang-analyzer-core.DivideZero.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
clang-analyzer-core.DivideZero.json
clang-analyzer-core.NonNullParamChecker.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
clang-analyzer-core.NonNullParamChecker.json Bug 1625884 - move `clang-tidy` and `clang-format` to `clang-10`. r=nalexander 2020-04-09 14:16:44 +00:00
clang-analyzer-core.NullDereference.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
clang-analyzer-core.NullDereference.json
clang-analyzer-core.UndefinedBinaryOperatorResult.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
clang-analyzer-core.UndefinedBinaryOperatorResult.json
clang-analyzer-core.uninitialized.Assign.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
clang-analyzer-core.uninitialized.Assign.json
clang-analyzer-core.uninitialized.Branch.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
clang-analyzer-core.uninitialized.Branch.json
clang-analyzer-cplusplus.Move.cpp
clang-analyzer-cplusplus.Move.json
clang-analyzer-cplusplus.NewDelete.cpp
clang-analyzer-cplusplus.NewDelete.json
clang-analyzer-cplusplus.NewDeleteLeaks.cpp
clang-analyzer-cplusplus.NewDeleteLeaks.json
clang-analyzer-deadcode.DeadStores.cpp Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham 2020-12-15 10:34:54 +00:00
clang-analyzer-deadcode.DeadStores.json
clang-analyzer-security.FloatLoopCounter.cpp
clang-analyzer-security.FloatLoopCounter.json
clang-analyzer-security.insecureAPI.UncheckedReturn.cpp
clang-analyzer-security.insecureAPI.UncheckedReturn.json
clang-analyzer-security.insecureAPI.bcmp.cpp
clang-analyzer-security.insecureAPI.bcmp.json
clang-analyzer-security.insecureAPI.bcopy.cpp
clang-analyzer-security.insecureAPI.bcopy.json
clang-analyzer-security.insecureAPI.bzero.cpp Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham 2020-12-15 10:34:54 +00:00
clang-analyzer-security.insecureAPI.bzero.json
clang-analyzer-security.insecureAPI.getpw.cpp
clang-analyzer-security.insecureAPI.getpw.json
clang-analyzer-security.insecureAPI.gets.cpp
clang-analyzer-security.insecureAPI.gets.json
clang-analyzer-security.insecureAPI.mkstemp.cpp
clang-analyzer-security.insecureAPI.mkstemp.json
clang-analyzer-security.insecureAPI.mktemp.cpp
clang-analyzer-security.insecureAPI.mktemp.json
clang-analyzer-security.insecureAPI.rand.cpp
clang-analyzer-security.insecureAPI.rand.json
clang-analyzer-security.insecureAPI.strcpy.cpp
clang-analyzer-security.insecureAPI.strcpy.json
clang-analyzer-security.insecureAPI.vfork.cpp
clang-analyzer-security.insecureAPI.vfork.json
clang-analyzer-unix.Malloc.cpp
clang-analyzer-unix.Malloc.json
clang-analyzer-unix.cstring.BadSizeArg.cpp
clang-analyzer-unix.cstring.BadSizeArg.json
clang-analyzer-unix.cstring.NullArg.cpp
clang-analyzer-unix.cstring.NullArg.json Bug 1625884 - move `clang-tidy` and `clang-format` to `clang-10`. r=nalexander 2020-04-09 14:16:44 +00:00
cppcoreguidelines-narrowing-conversions.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
cppcoreguidelines-narrowing-conversions.json
cppcoreguidelines-pro-type-member-init.cpp
cppcoreguidelines-pro-type-member-init.json
misc-non-copyable-objects.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
misc-non-copyable-objects.json
misc-redundant-expression.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
misc-redundant-expression.json
misc-unused-alias-decls.cpp
misc-unused-alias-decls.json
misc-unused-using-decls.cpp
misc-unused-using-decls.json
modernize-avoid-bind.cpp
modernize-avoid-bind.json
modernize-concat-nested-namespaces.cpp
modernize-concat-nested-namespaces.json Bug 1602143 - Use ShortStatementLines=1 for readability-braces-around-statements. r=andi 2021-02-18 08:26:11 +00:00
modernize-deprecated-ios-base-aliases.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
modernize-deprecated-ios-base-aliases.json
modernize-loop-convert.cpp
modernize-loop-convert.json
modernize-raw-string-literal.cpp
modernize-raw-string-literal.json
modernize-redundant-void-arg.cpp
modernize-redundant-void-arg.json
modernize-shrink-to-fit.cpp
modernize-shrink-to-fit.json
modernize-use-auto.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
modernize-use-auto.json
modernize-use-bool-literals.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
modernize-use-bool-literals.json
modernize-use-equals-default.cpp
modernize-use-equals-default.json
modernize-use-equals-delete.cpp
modernize-use-equals-delete.json
modernize-use-nullptr.cpp
modernize-use-nullptr.json
modernize-use-override.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
modernize-use-override.json
modernize-use-using.cpp Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham 2020-12-15 10:34:54 +00:00
modernize-use-using.json
performance-faster-string-find.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
performance-faster-string-find.json
performance-for-range-copy.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
performance-for-range-copy.json
performance-implicit-conversion-in-loop.cpp
performance-implicit-conversion-in-loop.json
performance-inefficient-algorithm.cpp
performance-inefficient-algorithm.json
performance-inefficient-string-concatenation.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
performance-inefficient-string-concatenation.json
performance-inefficient-vector-operation.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
performance-inefficient-vector-operation.json Bug 1625884 - move `clang-tidy` and `clang-format` to `clang-10`. r=nalexander 2020-04-09 14:16:44 +00:00
performance-move-const-arg.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
performance-move-const-arg.json
performance-move-constructor-init.cpp
performance-move-constructor-init.json
performance-noexcept-move-constructor.cpp
performance-noexcept-move-constructor.json
performance-type-promotion-in-math-fn.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
performance-type-promotion-in-math-fn.json
performance-unnecessary-copy-initialization.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
performance-unnecessary-copy-initialization.json
performance-unnecessary-value-param.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
performance-unnecessary-value-param.json
readability-braces-around-statements.cpp Bug 1602143 - Use ShortStatementLines=1 for readability-braces-around-statements. r=andi 2021-02-18 08:26:11 +00:00
readability-braces-around-statements.json Bug 1602143 - Use ShortStatementLines=1 for readability-braces-around-statements. r=andi 2021-02-18 08:26:11 +00:00
readability-const-return-type.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-const-return-type.json
readability-container-size-empty.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-container-size-empty.json
readability-delete-null-pointer.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-delete-null-pointer.json
readability-else-after-return.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-else-after-return.json
readability-implicit-bool-conversion.cpp
readability-implicit-bool-conversion.json
readability-inconsistent-declaration-parameter-name.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-inconsistent-declaration-parameter-name.json
readability-isolate-declaration.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-isolate-declaration.json
readability-magic-numbers.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-magic-numbers.json
readability-misleading-indentation.cpp
readability-misleading-indentation.json
readability-non-const-parameter.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-non-const-parameter.json
readability-qualified-auto.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-qualified-auto.json Bug 1612274 - Add checker `readability-qualified-auto` for `clang-tidy` static-analysis. r=sylvestre 2020-04-10 07:06:09 +00:00
readability-redundant-control-flow.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-redundant-control-flow.json
readability-redundant-preprocessor.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-redundant-preprocessor.json
readability-redundant-smartptr-get.cpp Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham 2020-12-15 10:34:54 +00:00
readability-redundant-smartptr-get.json
readability-redundant-string-cstr.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-redundant-string-cstr.json
readability-redundant-string-init.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-redundant-string-init.json
readability-simplify-boolean-expr.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-simplify-boolean-expr.json
readability-static-accessed-through-instance.cpp
readability-static-accessed-through-instance.json
readability-uniqueptr-delete-release.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
readability-uniqueptr-delete-release.json
structures.h