This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Extend SimplifyBooleanExpr demorgan support.
ClosedPublic

Authored by njames93 on May 22 2022, 3:23 AM.

Details

Summary

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

Diff Detail

Event Timeline

njames93 created this revision.May 22 2022, 3:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2022, 3:23 AM
njames93 requested review of this revision.May 22 2022, 3:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2022, 3:23 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
xgupta added a subscriber: xgupta.May 22 2022, 3:50 AM
This revision is now accepted and ready to land.May 23 2022, 7:50 AM
njames93 updated this revision to Diff 431945.May 25 2022, 5:08 AM

Add note to docs that this new option has no effect if SimplifyDeMorgan is false.

This revision was landed with ongoing or failed builds.May 25 2022, 5:09 AM
This revision was automatically updated to reflect the committed changes.