[PATCH] D124806: [clang-tidy] add support for Demorgan conversions to readability-simplify-bool-expr

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 9 06:49:49 PDT 2022


njames93 updated this revision to Diff 428069.
njames93 added a comment.

Tweak fix to not remove parens if it will result in a LogicalOpParentheses warning.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124806/new/

https://reviews.llvm.org/D124806

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124806.428069.patch
Type: text/x-patch
Size: 17082 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220509/b6a3ad03/attachment-0001.bin>


More information about the cfe-commits mailing list