Lines Matching refs:Criteria
48 enum Criteria : uint8_t { enum
93 const Criteria C; // The criteria of the increment
95 Detail(SourceLocation SLoc, unsigned short CurrentNesting, Criteria Crit) in Detail()
103 assert(C != Criteria::None && "invalid criteria"); in process()
108 if (C == Criteria::All) { in process()
111 } else if (C == (Criteria::Increment | Criteria::IncrementNesting)) { in process()
114 } else if (C == Criteria::Increment) { in process()
117 } else if (C == Criteria::IncrementNesting) { in process()
148 void account(SourceLocation Loc, unsigned short Nesting, Criteria C);
170 CognitiveComplexity::Criteria operator|(CognitiveComplexity::Criteria LHS, in operator |()
171 CognitiveComplexity::Criteria RHS) { in operator |()
172 return static_cast<CognitiveComplexity::Criteria>( in operator |()
173 static_cast<std::underlying_type<CognitiveComplexity::Criteria>::type>( in operator |()
175 static_cast<std::underlying_type<CognitiveComplexity::Criteria>::type>( in operator |()
178 CognitiveComplexity::Criteria operator&(CognitiveComplexity::Criteria LHS, in operator &()
179 CognitiveComplexity::Criteria RHS) { in operator &()
180 return static_cast<CognitiveComplexity::Criteria>( in operator &()
181 static_cast<std::underlying_type<CognitiveComplexity::Criteria>::type>( in operator &()
183 static_cast<std::underlying_type<CognitiveComplexity::Criteria>::type>( in operator &()
186 CognitiveComplexity::Criteria &operator|=(CognitiveComplexity::Criteria &LHS, in operator |=()
187 CognitiveComplexity::Criteria RHS) { in operator |=()
191 CognitiveComplexity::Criteria &operator&=(CognitiveComplexity::Criteria &LHS, in operator &=()
192 CognitiveComplexity::Criteria RHS) { in operator &=()
198 Criteria C) { in account()
199 C &= Criteria::All; in account()
200 assert(C != Criteria::None && "invalid criteria"); in account()
245 CognitiveComplexity::Criteria Reasons; in TraverseIfStmt()
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()
293 CognitiveComplexity::Criteria Reasons; in TraverseIfStmt()
295 Reasons = CognitiveComplexity::Criteria::None; in TraverseIfStmt()
298 Reasons |= CognitiveComplexity::Criteria::Increment; in TraverseIfStmt()
300 Reasons |= CognitiveComplexity::Criteria::IncrementNesting; in TraverseIfStmt()
328 CognitiveComplexity::Criteria::Increment); in TraverseBinaryOperator()
370 CognitiveComplexity::Criteria Reasons = CognitiveComplexity::Criteria::None; in TraverseStmt()
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()
447 if (!(Reasons & CognitiveComplexity::Criteria::IncrementNesting)) in TraverseStmt()
482 CognitiveComplexity::Criteria::IncrementNesting); in TraverseDecl()