[all-commits] [llvm/llvm-project] df5335: [clang-tidy] readability-simplify-boolean-expr det...

Nathan James via All-commits all-commits at lists.llvm.org
Sat Aug 22 05:57:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: df5335a36d3d70927d1834f31c705e31b4b3701f
      https://github.com/llvm/llvm-project/commit/df5335a36d3d70927d1834f31c705e31b4b3701f
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2020-08-22 (Sat, 22 Aug 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
    M clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.h
    M clang-tools-extra/test/clang-tidy/checkers/readability-simplify-bool-expr.cpp

  Log Message:
  -----------
  [clang-tidy] readability-simplify-boolean-expr detects negated literals

Adds support for detecting cases like `if (!true) ...`.
Addresses [[ https://bugs.llvm.org/show_bug.cgi?id=47166 | readability-simplify-boolean-expr not detected for negated boolean literals. ]]

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D86176




More information about the All-commits mailing list