IfElseSameCheck

Checks for duplicated code in conditional and logical expressions.

  • If statements whose "then" block is the same as the "else" block
  • || and && expressions where the left and right are the same
  • == expressions where the left and right are the same
class IfElseSameCheck : BaseAnalyzer {}

Inherited Members

From BaseAnalyzer

visit
void visit(const Unittest unittest_)

Visits a unittest.

fileName
string fileName;

The file name

Meta