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.cpp78 const auto *ParentS = Parents[0].get<Stmt>(); in isInCondition() local
79 if (!ParentS || isa<CallExpr>(ParentS)) in isInCondition()
81 switch (ParentS->getStmtClass()) { in isInCondition()
83 CondFound = (S == cast<IfStmt>(ParentS)->getCond()); in isInCondition()
86 CondFound = (S == cast<ForStmt>(ParentS)->getCond()); in isInCondition()
89 CondFound = (S == cast<DoStmt>(ParentS)->getCond()); in isInCondition()
92 CondFound = (S == cast<WhileStmt>(ParentS)->getCond()); in isInCondition()
95 CondFound = (S == cast<SwitchStmt>(ParentS)->getCond()); in isInCondition()
98 CondFound = (S == cast<ConditionalOperator>(ParentS)->getCond()); in isInCondition()
101 CondFound = (S == cast<BinaryConditionalOperator>(ParentS)->getCommon()); in isInCondition()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenMP.cpp11140 Scope *ParentS = S->getParent(); in ActOnOpenMPScanDirective() local
11141 if (!ParentS || ParentS->getParent() != ParentS->getBreakParent() || in ActOnOpenMPScanDirective()
11142 !ParentS->getBreakParent()->isOpenMPLoopScope()) in ActOnOpenMPScanDirective()