[all-commits] [llvm/llvm-project] f3c1d2: [clang-tidy] Extend SimplifyBooleanExpr demorgan s...

Nathan James via All-commits all-commits at lists.llvm.org
Wed May 25 05:09:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3c1d281767a5849b9f3e712e3c3406bd9410c81
      https://github.com/llvm/llvm-project/commit/f3c1d281767a5849b9f3e712e3c3406bd9410c81
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2022-05-25 (Wed, 25 May 2022)

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

  Log Message:
  -----------
  [clang-tidy] Extend SimplifyBooleanExpr demorgan support.

Adds an option SimplifyDemorganRelaxed which, when enabled, will transform negated conjunctions or disjunctions when neither operand is a negation.
Default value is `false`.

Reviewed By: LegalizeAdulthood

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




More information about the All-commits mailing list