llvm/llvm-project

Readability check for position of constant operand in binary operators

Open

#31,860 创建于 2017年4月3日

在 GitHub 查看
 (13 评论) (0 反应) (1 负责人)C++ (10,782 fork)batch import
bugzillacheck-requestclang-tidygood first issue

仓库指标

Star
 (26,378 star)
PR 合并指标
 (平均合并 1天 2小时) (30 天内合并 1,000 个 PR)

描述

Bugzilla Link 32513
Version unspecified
OS All

Extended Description

Will be good idea to have readability check for position of constant operand in binary operators.

For example:

if (nullptr == Pointer)

should be fixed as

if (Pointer == nullptr)

or

if (0 < Value)

to

if (Value > 0)

贡献者指南