Home
last modified time | relevance | path

Searched refs:ParentS (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DErrnoChecker.cpp77 const auto *ParentS = Parents[0].get<Stmt>(); in isInCondition() local
78 if (!ParentS || isa<CallExpr>(ParentS)) in isInCondition()
80 switch (ParentS->getStmtClass()) { in isInCondition()
82 CondFound = (S == cast<IfStmt>(ParentS)->getCond()); in isInCondition()
85 CondFound = (S == cast<ForStmt>(ParentS)->getCond()); in isInCondition()
88 CondFound = (S == cast<DoStmt>(ParentS)->getCond()); in isInCondition()
91 CondFound = (S == cast<WhileStmt>(ParentS)->getCond()); in isInCondition()
94 CondFound = (S == cast<SwitchStmt>(ParentS)->getCond()); in isInCondition()
97 CondFound = (S == cast<ConditionalOperator>(ParentS)->getCond()); in isInCondition()
100 CondFound = (S == cast<BinaryConditionalOperator>(ParentS)->getCommon()); in isInCondition()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenMP.cpp11208 Scope *ParentS = S->getParent(); in ActOnOpenMPScanDirective() local
11209 if (!ParentS || ParentS->getParent() != ParentS->getBreakParent() || in ActOnOpenMPScanDirective()
11210 !ParentS->getBreakParent()->isOpenMPLoopScope()) { in ActOnOpenMPScanDirective()