Home
last modified time | relevance | path

Searched refs:hasCondition (Results 1 – 25 of 30) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DAssignmentInIfConditionCheck.cpp20 Finder->addMatcher(ifStmt(hasCondition(forEachDescendant( in registerMatchers()
24 Finder->addMatcher(ifStmt(hasCondition(forEachDescendant( in registerMatchers()
H A DRedundantBranchConditionCheck.cpp51 hasCondition(anyOf( in registerMatchers()
58 ifStmt(hasCondition(anyOf( in registerMatchers()
H A DTerminatingContinueCheck.cpp23 doStmt(hasCondition(ignoringImpCasts( in registerMatchers()
H A DBoolPointerImplicitConversionCheck.cpp24 hasCondition(findAll(implicitCastExpr( in registerMatchers()
H A DAssertSideEffectCheck.cpp101 auto ConditionWithSideEffect = hasCondition(DescendantWithSideEffect); in registerMatchers()
H A DSuspiciousStringCompareCheck.cpp114 .with(hasCondition(StringCompareCallExpr)), in registerMatchers()
H A DTooSmallLoopVariableCheck.cpp81 hasCondition(anyOf( in registerMatchers()
H A DInfiniteLoopCheck.cpp151 hasCondition( in registerMatchers()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DRefactoringCallbacksTest.cpp71 conditionalOperator(hasCondition(cxxBoolLiteral(equals(false))), in TEST()
82 ifStmt(hasCondition(implicitCastExpr(hasSourceExpression( in TEST()
94 ifStmt(hasCondition(cxxBoolLiteral(equals(false)))).bind("id"), Callback); in TEST()
H A DTransformerTest.cpp831 makeRule(ifStmt(hasCondition(expr().bind(C)), hasThen(stmt().bind(T)), in TEST_F()
856 testRule(makeRule(ifStmt(hasCondition(expr().bind(C)), in TEST_F()
885 ifStmt(hasCondition(expr().bind(C)), hasThen(stmt().bind(T)), in TEST_F()
911 testRule(makeRule(ifStmt(hasCondition(expr().bind(C)), in TEST_F()
1343 hasCondition(binaryOperator(hasOperatorName("!="), in TEST_F()
H A DStencilTest.cpp146 Snippet, ifStmt(hasCondition(expr().bind(Condition)), in TEST_F()
164 auto StmtMatch = matchStmt(Snippet, ifStmt(hasCondition(stmt().bind("a1")), in TEST_F()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DIdDependentBackwardBranchCheck.cpp74 Finder->addMatcher(stmt(anyOf(forStmt(hasCondition(CondExpr)), in registerMatchers()
75 doStmt(hasCondition(CondExpr)), in registerMatchers()
76 whileStmt(hasCondition(CondExpr)))) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DRedundantSmartptrGetCheck.cpp82 Finder->addMatcher(ifStmt(hasCondition(CallToGetAsBool)), Callback); in registerMatchersForGetArrowStart()
85 Finder->addMatcher(conditionalOperator(hasCondition(CallToGetAsBool)), in registerMatchersForGetArrowStart()
H A DDeleteNullPointerCheck.cpp40 ifStmt(hasCondition(anyOf(PointerExpr, BinaryPointerCheckCondition)), in registerMatchers()
H A DContainerSizeEmptyCheck.cpp69 .with(hasCondition(expr(equalsBoundNode(ExprName)))), in AST_MATCHER()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DStaticAssertCheck.cpp63 Finder->addMatcher(conditionalOperator(hasCondition(Condition), in registerMatchers()
69 ifStmt(hasCondition(Condition), unless(isInTemplateInstantiation())) in registerMatchers()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DNumberObjectConversionChecker.cpp274 hasCondition(SuspiciousNumberObjectExprM), in checkASTCodeBody()
302 hasCondition(SuspiciousNumberObjectExprM), in checkASTCodeBody()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/
H A DMultiwayPathsCoveredCheck.cpp28 hasCondition(expr( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DPreferIsaOrDynCastInConditionalsCheck.cpp27 auto Condition = hasCondition(implicitCastExpr(has( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertCheck.cpp115 hasCondition(arrayConditionMatcher(ArrayBoundMatcher)), in makeArrayLoopMatcher()
203 hasCondition(ignoringImplicit(binaryOperation( in makeIteratorLoopMatcher()
292 hasCondition(arrayConditionMatcher(IndexBoundMatcher)), in makePseudoArrayLoopMatcher()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientVectorOperationCheck.cpp133 hasCondition(binaryOperator( in addMatcher()
/llvm-project-15.0.7/clang/docs/
H A DLibASTMatchersTutorial.rst402 hasCondition(binaryOperator(hasOperatorName("<")))
409 hasCondition(binaryOperator(
446 hasCondition(binaryOperator(
494 hasCondition(binaryOperator(
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/
H A DTransformerClangTidyCheckTest.cpp39 ifStmt(hasCondition(expr().bind(C)), hasThen(stmt().bind(T)), in invertIf()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp144 hasCondition(simpleCondition("initVarName", "initVarRef")), in forLoopMatcher()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNodeTest.cpp1078 ifStmt(hasCondition(cxxBoolLiteral(equals(true)))); in TEST_P()
1095 conditionalOperator(hasCondition(cxxBoolLiteral(equals(true))), in TEST_P()
1122 hasCondition(implicitCastExpr(has(opaqueValueExpr( in TEST_P()

12