HomePhabricator

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

Authored by njames93 on Aug 22 2020, 5:57 AM.

Description

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

Adds support for detecting cases like if (!true) ....
Addresses readability-simplify-boolean-expr not detected for negated boolean literals.

Reviewed By: aaron.ballman

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

Details

Committed
njames93Aug 22 2020, 5:57 AM
Reviewer
aaron.ballman
Differential Revision
D86176: [clang-tidy] readability-simplify-boolean-expr detects negated literals
Parents
rGcfc76d2bce43: [gn build] Port fba06e3c85a
Branches
Unknown
Tags
Unknown