Lines Matching refs:CognitiveComplexity
41 struct CognitiveComplexity final { struct
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 &=()
197 void CognitiveComplexity::account(SourceLocation Loc, unsigned short Nesting, 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()
487 CognitiveComplexity CC;
495 Threshold(Options.get("Threshold", CognitiveComplexity::DefaultLimit)) {} in FunctionCognitiveComplexityCheck()