Lines Matching refs:Reasons
245 CognitiveComplexity::Criteria Reasons; in TraverseIfStmt() local
247 Reasons = CognitiveComplexity::Criteria::None; in TraverseIfStmt()
250 Reasons |= CognitiveComplexity::Criteria::Increment; in TraverseIfStmt()
252 Reasons |= CognitiveComplexity::Criteria::IncrementNesting; in TraverseIfStmt()
257 Reasons |= CognitiveComplexity::Criteria::PenalizeNesting; in TraverseIfStmt()
260 CC.account(Node->getIfLoc(), CurrentNestingLevel, Reasons); in TraverseIfStmt()
293 CognitiveComplexity::Criteria Reasons; in TraverseIfStmt() local
295 Reasons = CognitiveComplexity::Criteria::None; in TraverseIfStmt()
298 Reasons |= CognitiveComplexity::Criteria::Increment; in TraverseIfStmt()
300 Reasons |= CognitiveComplexity::Criteria::IncrementNesting; in TraverseIfStmt()
304 CC.account(Node->getElseLoc(), CurrentNestingLevel, Reasons); in TraverseIfStmt()
370 CognitiveComplexity::Criteria Reasons = CognitiveComplexity::Criteria::None; in TraverseStmt() local
387 Reasons |= CognitiveComplexity::Criteria::Increment; in TraverseStmt()
410 Reasons |= CognitiveComplexity::Criteria::IncrementNesting; in TraverseStmt()
428 Reasons |= CognitiveComplexity::Criteria::PenalizeNesting; in TraverseStmt()
443 if (Reasons & CognitiveComplexity::Criteria::All) in TraverseStmt()
444 CC.account(Location, CurrentNestingLevel, Reasons); in TraverseStmt()
447 if (!(Reasons & CognitiveComplexity::Criteria::IncrementNesting)) in TraverseStmt()