Bug 1436354 - Enable modernize-use-bool-literals at review phase r?ehsan draft
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 07 Feb 2018 15:14:32 +0100
changeset 752062 72066778b21f481f2490c5aea33ee9cda826d44b
parent 752061 109a3298f9d3e116359b34a436fc167cba74c929
push id98158
push userbmo:sledru@mozilla.com
push dateWed, 07 Feb 2018 14:32:12 +0000
reviewersehsan
bugs1436354
milestone60.0a1
Bug 1436354 - Enable modernize-use-bool-literals at review phase r?ehsan This won't warn about existing defects. MozReview-Commit-ID: Fra6TmTREf2
tools/clang-tidy/config.yaml
--- a/tools/clang-tidy/config.yaml
+++ b/tools/clang-tidy/config.yaml
@@ -74,13 +74,12 @@ clang_checkers:
  - name: readability-static-accessed-through-instance
    publish: !!bool yes
  - name: readability-uniqueptr-delete-release
    publish: !!bool yes
  - name: modernize-use-auto
    # Controversial, see bug 1371052.
    publish: !!bool no
  - name: modernize-use-bool-literals
-   # Too noisy because of `while (0)` in many macros.
-   publish: !!bool no
+   publish: !!bool yes
 
 # Third party files from mozilla-central
 third_party: tools/rewriting/ThirdPartyPaths.txt