Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DRedundantBranchConditionCheck.cpp78 const auto *CondVar = Result.Nodes.getNodeAs<VarDecl>(CondVarStr); in check() local
92 if (isChangedBefore(OuterIf->getThen(), InnerIfVar, OuterIfVar, CondVar, in check()
96 if (isChangedBefore(OuterIf->getCond(), InnerIfVar, OuterIfVar, CondVar, in check()
104 if (hasPtrOrReferenceInFunc(Func, CondVar)) in check()
107 auto Diag = diag(InnerIf->getBeginLoc(), "redundant condition %0") << CondVar; in check()
122 if (LeftDRE && LeftDRE->getDecl() == CondVar) in check()
164 if (LeftDRE && LeftDRE->getDecl() == CondVar) { in check()
/llvm-project-15.0.7/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-15.0.7/libcxxabi/src/
H A Dcxa_guard_impl.h308 template <class Mutex, class CondVar, Mutex& global_mutex, CondVar& global_cond,
603 template <class Mutex, class CondVar, Mutex& global_mutex, CondVar& global_cond,
605 using GlobalMutexGuard = GuardObject<InitByteGlobalMutex<Mutex, CondVar, global_mutex, global_cond,…
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DBracesAroundStatementsCheck.cpp163 if (const DeclStmt *CondVar = S->getConditionVariableDeclStmt()) in findRParenLoc() local
164 CondEndLoc = CondVar->getEndLoc(); in findRParenLoc()
H A DElseAfterReturnCheck.cpp102 if (const VarDecl *CondVar = If->getConditionVariable()) in checkConditionVarUsageInElse() local
103 return findUsage(If->getElse(), CondVar->getID()); in checkConditionVarUsageInElse()
/llvm-project-15.0.7/clang/docs/
H A DLibASTMatchersTutorial.rst511 const VarDecl *CondVar = Result.Nodes.getNodeAs<VarDecl>("condVarName");
514 if (!areSameVariable(IncVar, CondVar) || !areSameVariable(IncVar, InitVar))
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp2014 if (const Stmt *CondVar = S->getConditionVariableDeclStmt()) in VisitSwitchStmt() local
2015 Visit(CondVar); in VisitSwitchStmt()