Home
last modified time | relevance | path

Searched refs:CondVar (Results 1 – 9 of 9) sorted by relevance

/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DRedundantBranchConditionCheck.cpp76 const auto *CondVar = Result.Nodes.getNodeAs<VarDecl>(CondVarStr); in check() local
90 if (isChangedBefore(OuterIf->getThen(), InnerIfVar, OuterIfVar, CondVar, in check()
94 if (isChangedBefore(OuterIf->getCond(), InnerIfVar, OuterIfVar, CondVar, in check()
102 if (hasPtrOrReferenceInFunc(Func, CondVar)) in check()
105 auto Diag = diag(InnerIf->getBeginLoc(), "redundant condition %0") << CondVar; in check()
120 if (LeftDRE && LeftDRE->getDecl() == CondVar) in check()
162 if (LeftDRE && LeftDRE->getDecl() == CondVar) { in check()
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dinfinite-loop.cpp545 void evaluatable(bool CondVar) { in evaluatable() argument
546 for (; false && CondVar;) { in evaluatable()
548 while (false && CondVar) { in evaluatable()
551 } while (false && CondVar); in evaluatable()
/llvm-project/libcxxabi/src/
H A Dcxa_guard_impl.h315 template <class Mutex, class CondVar, Mutex& global_mutex, CondVar& global_cond,
621 template <class Mutex, class CondVar, Mutex& global_mutex, CondVar& global_cond,
623 using GlobalMutexGuard = GuardObject<InitByteGlobalMutex<Mutex, CondVar, global_mutex, global_cond, GetThreadID>>;
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DBracesAroundStatementsCheck.cpp121 if (const DeclStmt *CondVar = S->getConditionVariableDeclStmt()) in findRParenLoc() local
122 CondEndLoc = CondVar->getEndLoc(); in findRParenLoc()
H A DElseAfterReturnCheck.cpp100 if (const VarDecl *CondVar = If->getConditionVariable()) in checkConditionVarUsageInElse() local
101 return findUsage(If->getElse(), CondVar->getID()); in checkConditionVarUsageInElse()
/llvm-project/clang/include/clang/AST/
H A DStmt.h2310 void setConditionVariableDeclStmt(DeclStmt *CondVar) {
2312 getTrailingObjects<Stmt *>()[varOffset()] = CondVar;
2547 void setConditionVariableDeclStmt(DeclStmt *CondVar) {
2549 getTrailingObjects<Stmt *>()[varOffset()] = CondVar;
2715 void setConditionVariableDeclStmt(DeclStmt *CondVar) {
2717 getTrailingObjects<Stmt *>()[varOffset()] = CondVar;
2846 void setConditionVariableDeclStmt(DeclStmt *CondVar) {
2847 SubExprs[CONDVAR] = CondVar;
/llvm-project/clang/docs/
H A DLibASTMatchersTutorial.rst511 const VarDecl *CondVar = Result.Nodes.getNodeAs<VarDecl>("condVarName");
514 if (!areSameVariable(IncVar, CondVar) || !areSameVariable(IncVar, InitVar))
/llvm-project/clang/lib/AST/Interp/
H A DCompiler.cpp
/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp2138 if (const Stmt *CondVar = S->getConditionVariableDeclStmt()) in CheckForRedundantIteration()
2139 Visit(CondVar); in CheckForRedundantIteration()
2047 if (const Stmt *CondVar = S->getConditionVariableDeclStmt()) VisitSwitchStmt() local