LogicPrecedenceCheck

Checks for code with confusing && and || operator precedence

if (a && b || c) // bad
if (a && (b || c)) // good
class LogicPrecedenceCheck : BaseAnalyzer {
enum string KEY;
}

Inherited Members

From BaseAnalyzer

visit
void visit(const Unittest unittest_)

Visits a unittest.

fileName
string fileName;

The file name

Meta