reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
  526   if (Result.Nodes.getNodeAs<TranslationUnitDecl>("top"))
  527     Visitor(this, Result).TraverseAST(*Result.Context);
  527     Visitor(this, Result).TraverseAST(*Result.Context);
  529                getBoolLiteral(Result, ConditionThenStmtId))
  530     replaceWithThenStatement(Result, TrueConditionRemoved);
  532                getBoolLiteral(Result, ConditionElseStmtId))
  533     replaceWithElseStatement(Result, FalseConditionRemoved);
  535                Result.Nodes.getNodeAs<ConditionalOperator>(TernaryId))
  536     replaceWithCondition(Result, Ternary);
  538                Result.Nodes.getNodeAs<ConditionalOperator>(TernaryNegatedId))
  539     replaceWithCondition(Result, TernaryNegated, true);
  540   else if (const auto *If = Result.Nodes.getNodeAs<IfStmt>(IfReturnsBoolId))
  541     replaceWithReturnCondition(Result, If);
  543                Result.Nodes.getNodeAs<IfStmt>(IfReturnsNotBoolId))
  544     replaceWithReturnCondition(Result, IfNot, true);
  546                Result.Nodes.getNodeAs<IfStmt>(IfAssignBoolId))
  547     replaceWithAssignment(Result, IfAssign);
  549                Result.Nodes.getNodeAs<IfStmt>(IfAssignNotBoolId))
  550     replaceWithAssignment(Result, IfAssignNot, true);
  552                Result.Nodes.getNodeAs<CompoundStmt>(CompoundBoolId))
  553     replaceCompoundReturnWithCondition(Result, Compound);
  555                Result.Nodes.getNodeAs<CompoundStmt>(CompoundNotBoolId))
  556     replaceCompoundReturnWithCondition(Result, Compound, true);