[clang-tidy] add support for Demorgan conversions to readability-simplify-bool-expr
authorNathan James <n.james93@hotmail.co.uk>
Sun, 22 May 2022 08:28:39 +0000 (09:28 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Sun, 22 May 2022 08:28:43 +0000 (09:28 +0100)
commitaf77b1d99016fde66edd9e72d907c03fe4511215
tree73d12953fdaa3ca5da1ab3c5f70959f1fbd09b04
parent09865ae95dbf0322bbf3e7b3847b2b11373a0297
[clang-tidy] add support for Demorgan conversions to readability-simplify-bool-expr

Adds support for recognising and converting boolean expressions that can be simplified using De Morgans Law.

This is a different implementation to D124650.

Fixes https://github.com/llvm/llvm-project/issues/55092

Reviewed By: LegalizeAdulthood

Differential Revision: https://reviews.llvm.org/D124806
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 [new file with mode: 0644]