/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | Stmt.cpp | 1 //===- Stmt.cpp - Statement AST Node Implementation -----------------------===// 9 // This file implements the Stmt class and statement subclasses. 13 #include "clang/AST/Stmt.h" 53 } StmtClassInfo[Stmt::lastStmtConstant+1]; 55 static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) { 64 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Name = #CLASS; \ 65 StmtClassInfo[(unsigned)Stmt::CLASS##Class].Size = sizeof(CLASS); 71 void *Stmt::operator new(size_t bytes, const ASTContext& C, 76 const char *Stmt::getStmtClassName() const { 98 void Stmt 185 implements_children(children_t Stmt::*) argument 194 implements_getBeginLoc(getBeginLoc_t Stmt::*) argument 201 implements_getEndLoc(getLocEnd_t Stmt::*) argument [all...] |
H A D | StmtCXX.cpp | 9 // This file implements the subclesses of Stmt class declared in StmtCXX.h 26 Stmt *tryBlock, ArrayRef<Stmt *> handlers) { 27 const size_t Size = totalSizeToAlloc<Stmt *>(handlers.size() + 1); 34 const size_t Size = totalSizeToAlloc<Stmt *>(numHandlers + 1); 39 CXXTryStmt::CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, 40 ArrayRef<Stmt *> handlers) 41 : Stmt(CXXTryStmtClass), TryLoc(tryLoc), NumHandlers(handlers.size()) { 42 Stmt **Stmts = getStmts(); 47 CXXForRangeStmt::CXXForRangeStmt(Stmt *Ini [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | VarBypassDetector.cpp | 13 #include "clang/AST/Stmt.h" 20 void VarBypassDetector::Init(const Stmt *Body) { 53 bool VarBypassDetector::BuildScopeInformation(const Stmt *S, 66 case Stmt::IndirectGotoStmtClass: 69 case Stmt::SwitchStmtClass: 70 if (const Stmt *Init = cast<SwitchStmt>(S)->getInit()) { 82 case Stmt::GotoStmtClass: 86 case Stmt::DeclStmtClass: { 94 case Stmt::CaseStmtClass: 95 case Stmt [all...] |
H A D | CodeGenPGO.h | 36 std::unique_ptr<llvm::DenseMap<const Stmt *, unsigned>> RegionCounterMap; 37 std::unique_ptr<llvm::DenseMap<const Stmt *, uint64_t>> StmtCountMap; 62 Optional<uint64_t> getStmtCount(const Stmt *S) { 73 void setCurrentStmt(const Stmt *S) { 103 void emitCounterIncrement(CGBuilderTy &Builder, const Stmt *S, 107 uint64_t getRegionCount(const Stmt *S) {
|
H A D | CGStmt.cpp | 9 // This contains code to emit Stmt nodes as LLVM code. 38 void CodeGenFunction::EmitStopPoint(const Stmt *S) { 48 void CodeGenFunction::EmitStmt(const Stmt *S, ArrayRef<const Attr *> Attrs) { 87 case Stmt::NoStmtClass: 88 case Stmt::CXXCatchStmtClass: 89 case Stmt::SEHExceptStmtClass: 90 case Stmt::SEHFinallyStmtClass: 91 case Stmt::MSDependentExistsStmtClass: 93 case Stmt::NullStmtClass: 94 case Stmt 1831 AddVariableConstraints(const std::string &Constraint, const Expr &AsmExpr, const TargetInfo &Target, CodeGenModule &CGM, const AsmStmt &Stmt, const bool EarlyClobber) argument [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExceptionSpec.cpp | 990 static CanThrowResult canSubStmtsThrow(Sema &Self, const Stmt *S) { 992 for (const Stmt *SubStmt : S->children()) { 1119 CanThrowResult Sema::canThrow(const Stmt *S) { 1410 case Stmt::AttributedStmtClass: 1411 case Stmt::BreakStmtClass: 1412 case Stmt::CapturedStmtClass: 1413 case Stmt::CaseStmtClass: 1414 case Stmt::CompoundStmtClass: 1415 case Stmt::ContinueStmtClass: 1416 case Stmt [all...] |
H A D | CoroutineStmtBuilder.h | 30 SmallVector<Stmt *, 4> ParamMovesVector; 38 Stmt *Body);
|
H A D | JumpDiagnostics.cpp | 65 llvm::DenseMap<Stmt*, unsigned> LabelAndGotoScopes; 66 SmallVector<Stmt*, 16> Jumps; 68 SmallVector<Stmt*, 4> IndirectJumps; 69 SmallVector<Stmt*, 4> AsmJumps; 73 JumpScopeChecker(Stmt *Body, Sema &S); 79 void BuildScopeInformation(Stmt *S, unsigned &origParentScope); 84 void DiagnoseIndirectOrAsmJump(Stmt *IG, unsigned IGScope, LabelDecl *Target, 86 void CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, 97 JumpScopeChecker::JumpScopeChecker(Stmt *Bod [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/ASTMatchers/ |
H A D | ASTMatchersInternal.cpp | 702 const internal::VariadicDynCastAllOfMatcher<Stmt, ObjCAutoreleasePoolStmt> 745 const internal::VariadicDynCastAllOfMatcher<Stmt, UnaryExprOrTypeTraitExpr> 767 const internal::VariadicAllOfMatcher<Stmt> stmt; 768 const internal::VariadicDynCastAllOfMatcher<Stmt, DeclStmt> declStmt; 769 const internal::VariadicDynCastAllOfMatcher<Stmt, MemberExpr> memberExpr; 770 const internal::VariadicDynCastAllOfMatcher<Stmt, UnresolvedMemberExpr> 772 const internal::VariadicDynCastAllOfMatcher<Stmt, CXXDependentScopeMemberExpr> 774 const internal::VariadicDynCastAllOfMatcher<Stmt, CallExpr> callExpr; 775 const internal::VariadicDynCastAllOfMatcher<Stmt, LambdaExpr> lambdaExpr; 776 const internal::VariadicDynCastAllOfMatcher<Stmt, CXXMemberCallExp [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CheckSizeofPointer.cpp | 33 void VisitStmt(Stmt *S) { VisitChildren(S); } 34 void VisitChildren(Stmt *S); 38 void WalkAST::VisitChildren(Stmt *S) { 39 for (Stmt *Child : S->children())
|
H A D | IdenticalExprChecker.cpp | 28 static bool isIdenticalStmt(const ASTContext &Ctx, const Stmt *Stmt1, 29 const Stmt *Stmt2, bool IgnoreSideEffects = false); 107 const Stmt *Stmt1 = I->getThen(); 108 const Stmt *Stmt2 = I->getElse(); 137 const Stmt *Else = Stmt2; 306 static bool isIdenticalStmt(const ASTContext &Ctx, const Stmt *Stmt1, 307 const Stmt *Stmt2, bool IgnoreSideEffects) { 351 case Stmt::CallExprClass: 352 case Stmt::ArraySubscriptExprClass: 353 case Stmt [all...] |
H A D | DereferenceChecker.cpp | 36 void reportBug(ProgramStateRef State, const Stmt *S, CheckerContext &C) const; 39 void checkLocation(SVal location, bool isLoad, const Stmt* S, 41 void checkBind(SVal L, SVal V, const Stmt *S, CheckerContext &C) const; 62 case Stmt::DeclRefExprClass: { 71 case Stmt::MemberExprClass: { 79 case Stmt::ObjCIvarRefExprClass: { 90 static const Expr *getDereferenceExpr(const Stmt *S, bool IsBind=false){ 119 void DereferenceChecker::reportBug(ProgramStateRef State, const Stmt *S, 137 case Stmt::ArraySubscriptExprClass: { 145 case Stmt [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | LoopWidening.cpp | 27 /// Return the loops condition Stmt or NULL if LoopStmt is not a loop 28 static const Expr *getLoopCondition(const Stmt *LoopStmt) { 32 case Stmt::ForStmtClass: 34 case Stmt::WhileStmtClass: 36 case Stmt::DoStmtClass: 46 unsigned BlockCount, const Stmt *LoopStmt) {
|
H A D | LoopUnrolling.cpp | 30 const Stmt *LoopStmt; 33 LoopState(Kind InK, const Stmt *S, const LocationContext *L, unsigned N) 37 static LoopState getNormal(const Stmt *S, const LocationContext *L, 41 static LoopState getUnrolled(const Stmt *S, const LocationContext *L, 47 const Stmt *getLoopStmt() const { return LoopStmt; } 71 static bool isLoopStmt(const Stmt *S) { 75 ProgramStateRef processLoopEnd(const Stmt *LoopStmt, ProgramStateRef State) { 82 static internal::Matcher<Stmt> simpleCondition(StringRef BindName) { 93 static internal::Matcher<Stmt> 104 static internal::Matcher<Stmt> [all...] |
H A D | ExprEngine.cpp | 27 #include "clang/AST/Stmt.h" 127 if (const Stmt *S = getItem().getStmtOrNull()) 147 const Stmt *S = getItem().getStmtOrNull(); 664 const Stmt *S, 690 const Stmt *ReferenceStmt, 692 const Stmt *DiagnosticStmt, 769 void ExprEngine::ProcessStmt(const Stmt *currStmt, ExplodedNode *Pred) { 799 void ExprEngine::ProcessLoopExit(const Stmt* S, ExplodedNode *Pred) { 991 const Stmt *Arg = DE->getArgument(); 1202 void ExprEngine::Visit(const Stmt * [all...] |
H A D | CheckerHelpers.cpp | 23 bool containsMacro(const Stmt *S) { 30 for (const Stmt *Child : S->children()) 38 bool containsEnum(const Stmt *S) { 44 for (const Stmt *Child : S->children()) 52 bool containsStaticLocal(const Stmt *S) { 60 for (const Stmt *Child : S->children()) 68 bool containsBuiltinOffsetOf(const Stmt *S) { 72 for (const Stmt *Child : S->children()) 81 parseAssignment(const Stmt *S) {
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/ |
H A D | CFGStmtMap.cpp | 1 //===--- CFGStmtMap.h - Map from Stmt* to CFGBlock* -----------*- C++ -*-===// 10 // Stmt* to CFGBlock* 21 typedef llvm::DenseMap<const Stmt*, CFGBlock*> SMap; 26 CFGBlock *CFGStmtMap::getBlock(Stmt *S) { 28 Stmt *X = S; 67 if (Stmt *Label = B->getLabel()) 73 if (Stmt *Term = B->getTerminatorStmt())
|
H A D | LiveVariables.cpp | 14 #include "clang/AST/Stmt.h" 30 llvm::ImmutableSet<const Stmt *>::Factory SSetFact; 35 llvm::DenseMap<const Stmt *, LiveVariables::LivenessValues> stmtsToLiveness; 67 bool LiveVariables::LivenessValues::isLive(const Stmt *S) const { 100 llvm::ImmutableSetRef<const Stmt *> 140 bool LiveVariables::isLive(const Stmt *S, const VarDecl *D) { 144 bool LiveVariables::isLive(const Stmt *Loc, const Stmt *S) { 172 void Visit(Stmt *S); 189 static const Stmt *LookThroughStm [all...] |
H A D | ReachableCode.cpp | 49 static bool isTrivialDoWhile(const CFGBlock *B, const Stmt *S) { 52 if (const Stmt *Term = B->getTerminatorStmt()) { 61 static bool isBuiltinUnreachable(const Stmt *S) { 69 static bool isBuiltinAssumeFalse(const CFGBlock *B, const Stmt *S, 84 static bool isDeadReturn(const CFGBlock *B, const Stmt *S) { 149 static bool isExpandedFromConfigurationMacro(const Stmt *S, 188 static bool isConfigurationValue(const Stmt *S, 214 case Stmt::CallExprClass: { 219 case Stmt::DeclRefExprClass: 221 case Stmt [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/ |
H A D | CloneDetection.h | 23 class Stmt; 31 /// Can either identify a single arbitrary Stmt object, a continuous sequence of 36 /// Stmt, then S is a pointer to this Stmt. 37 const Stmt *S; 56 /// \param Stmt A CompoundStmt that contains all statements in its body. 57 /// \param D The Decl containing this Stmt. 59 /// \p Stmt 60 /// \param EndIndex The exclusive end index in the children array of \p Stmt. 61 StmtSequence(const CompoundStmt *Stmt, cons [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Source.cpp | 18 if (const Stmt *S = asStmt()) 26 if (auto *S = Source.dyn_cast<const Stmt *>())
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTFwd.h | 22 class Stmt;
|
H A D | LexicallyOrderedRecursiveASTVisitor.h | 113 Stmt::child_range getStmtChildren(Stmt *S) { return S->children(); } 115 SmallVector<Stmt *, 8> getStmtChildren(CXXOperatorCallExpr *CE) { 116 SmallVector<Stmt *, 8> Children(CE->children());
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/ |
H A D | FrontendActions.cpp | 20 ParseModelFileAction::ParseModelFileAction(llvm::StringMap<Stmt *> &Bodies)
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchers.h | 64 #include "clang/AST/Stmt.h" 142 using StatementMatcher = internal::Matcher<Stmt>; 239 /// Usable as: Matcher<Decl>, Matcher<Stmt>, Matcher<TypeLoc> 241 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { 260 /// Usable as: Matcher<Decl>, Matcher<Stmt>, Matcher<TypeLoc> 262 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc)) { 285 /// Usable as: Matcher<Decl>, Matcher<Stmt>, Matcher<TypeLoc> 287 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, 311 /// node. There's nothing `Stmt`-specific about it. 312 AST_MATCHER_P(Stmt, isExpandedFromMacr 6560 AST_MATCHER_P_OVERLOAD(Stmt, equalsNode, const Stmt*, Other, 1) argument [all...] |