Home
last modified time | relevance | path

Searched refs:Statement (Results 1 – 25 of 100) sorted by relevance

1234

/llvm-project-15.0.7/clang/include/clang/Tooling/Syntax/
H A DNodes.h91 Statement, enumerator
209 class Statement : public Tree {
211 Statement(NodeKind K) : Tree(K) {} in Statement() function
243 Statement *getBody();
253 Statement *getBody();
262 Statement *getBody();
272 Statement *getThenStatement();
274 Statement *getElseStatement();
283 Statement *getBody();
292 Statement *getBody();
[all …]
H A DNodes.td221 def Statement : External<Tree> {}
222 def UnknownStatement : External<Statement> {}
224 def EmptyStatement : External<Statement> {}
225 def SwitchStatement : External<Statement> {}
226 def CaseStatement : External<Statement> {}
227 def DefaultStatement : External<Statement> {}
228 def IfStatement : External<Statement> {}
229 def ForStatement : External<Statement> {}
230 def WhileStatement : External<Statement> {}
232 def BreakStatement : External<Statement> {}
[all …]
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dcanonicalize-do.cpp34 std::get<Statement<EndAssociateStmt>>( in Post()
39 std::get<Statement<EndBlockStmt>>( in Post()
44 std::get<Statement<EndChangeTeamStmt>>( in Post()
61 std::get<Statement<EndSelectStmt>>( in Post()
78 std::get<Statement<EndWhereStmt>>(where.value().t)); in Post()
87 [&](Statement<ActionStmt> &actionStmt) { in Post()
99 Block::iterator &i, Statement<T> &statement) { in CanonicalizeIfMatch()
104 std::get<ExecutableConstruct>(i->u).u = Statement<ActionStmt>{ in CanonicalizeIfMatch()
112 std::get<Statement<common::Indirection<LabelDoStmt>>>( in CanonicalizeIfMatch()
121 Statement<NonLabelDoStmt> nonLabelDoStmt{std::move(labelDo.label), in CanonicalizeIfMatch()
[all …]
H A Dprogram-tree.cpp21 parser::Statement<common::Indirection<parser::EntryStmt>>>( in GetEntryStmts()
29 parser::Statement<common::Indirection<parser::EntryStmt>>>( in GetEntryStmts()
40 parser::Statement<common::Indirection<parser::EntryStmt>>>( in GetEntryStmts()
223 [](const parser::Statement<parser::FunctionStmt> *x) { in HasModulePrefix()
226 [](const parser::Statement<parser::SubroutineStmt> *x) { in HasModulePrefix()
245 [](const parser::Statement<parser::ProgramStmt> *) { in GetKind()
248 [](const parser::Statement<parser::FunctionStmt> *) { in GetKind()
251 [](const parser::Statement<parser::SubroutineStmt> *) { in GetKind()
257 [](const parser::Statement<parser::ModuleStmt> *) { in GetKind()
260 [](const parser::Statement<parser::SubmoduleStmt> *) { in GetKind()
[all …]
H A Dprogram-tree.h50 const parser::Statement<parser::ProgramStmt> *,
51 const parser::Statement<parser::FunctionStmt> *,
52 const parser::Statement<parser::SubroutineStmt> *,
53 const parser::Statement<parser::MpSubprogramStmt> *,
54 const parser::Statement<parser::ModuleStmt> *,
55 const parser::Statement<parser::SubmoduleStmt> *,
56 const parser::Statement<parser::BlockDataStmt> *>;
96 ProgramTree &set_stmt(const parser::Statement<T> &stmt) { in set_stmt()
101 ProgramTree &set_endStmt(const parser::Statement<T> &stmt) { in set_endStmt()
109 static_cast<const parser::Statement<parser::ProgramStmt> *>(nullptr)};
H A Dresolve-labels.cpp61 constexpr Legality IsLegalDoTerm(const parser::Statement<A> &) { in IsLegalDoTerm()
77 const parser::Statement<parser::ActionStmt> &actionStmt) { in IsLegalDoTerm()
106 constexpr Legality IsLegalBranchTarget(const parser::Statement<A> &) { in IsLegalBranchTarget()
138 const parser::Statement<A> &statement) { in ConstructBranchTargetFlags()
356 const parser::Statement<STMT> &stmt) { in CheckOptionalName()
386 std::get<parser::Statement<parser::EndFunctionStmt>>( in Post()
393 std::get<parser::Statement<parser::EndInterfaceStmt>>( in Post()
451 std::get<parser::Statement<parser::EndMpSubprogramStmt>>( in Post()
490 std::get<parser::Statement<parser::EndSubroutineStmt>>( in Post()
665 const auto &endStmt{std::get<parser::Statement<END>>(a.t)}; in CheckEndName()
[all …]
H A Dcheck-select-type.cpp36 const auto &stmt{std::get<parser::Statement<parser::TypeGuardStmt>>(c.t)}; in AddTypeCase()
74 bool PassesChecksOnGuard(const parser::Statement<parser::TypeGuardStmt> &stmt, in PassesChecksOnGuard()
154 explicit TypeCase(const parser::Statement<parser::TypeGuardStmt> &s, in TypeCase()
185 const parser::Statement<parser::TypeGuardStmt> &stmt) const { in GetGuardFromStmt()
204 const parser::Statement<parser::TypeGuardStmt> &stmt;
253 std::get<parser::Statement<parser::SelectTypeStmt>>(construct.t)}; in Enter()
H A Dcheck-purity.cpp21 const auto &stmt{std::get<parser::Statement<parser::SubroutineStmt>>(subr.t)}; in Enter()
29 const auto &stmt{std::get<parser::Statement<parser::FunctionStmt>>(func.t)}; in Enter()
H A Dcheck-case.cpp43 const auto &stmt{std::get<parser::Statement<parser::CaseStmt>>(c.t)}; in AddCase()
144 explicit Case(const parser::Statement<parser::CaseStmt> &s) : stmt{s} {} in Case()
167 const parser::Statement<parser::CaseStmt> &stmt;
240 std::get<parser::Statement<parser::SelectCaseStmt>>(construct.t)}; in Enter()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DUnrollLoopsCheck.cpp113 bool UnrollLoopsCheck::hasKnownBounds(const Stmt *Statement, in hasKnownBounds() argument
116 if (isa<CXXForRangeStmt>(Statement)) in hasKnownBounds()
120 if (isa<WhileStmt, DoStmt>(Statement)) in hasKnownBounds()
123 const auto *ForLoop = cast<ForStmt>(Statement); in hasKnownBounds()
152 const Expr *UnrollLoopsCheck::getCondExpr(const Stmt *Statement) { in getCondExpr() argument
153 if (const auto *ForLoop = dyn_cast<ForStmt>(Statement)) in getCondExpr()
155 if (const auto *WhileLoop = dyn_cast<WhileStmt>(Statement)) in getCondExpr()
157 if (const auto *DoWhileLoop = dyn_cast<DoStmt>(Statement)) in getCondExpr()
164 bool UnrollLoopsCheck::hasLargeNumIterations(const Stmt *Statement, in hasLargeNumIterations() argument
169 if (isa<CXXForRangeStmt>(Statement)) { in hasLargeNumIterations()
[all …]
H A DUnrollLoopsCheck.h54 bool hasLargeNumIterations(const Stmt *Statement,
64 enum UnrollType unrollType(const Stmt *Statement, ASTContext *Context);
67 const Expr *getCondExpr(const Stmt *Statement);
69 bool hasKnownBounds(const Stmt *Statement, const IntegerLiteral *CXXLoopBound,
H A DIdDependentBackwardBranchCheck.cpp115 void IdDependentBackwardBranchCheck::saveIdDepVar(const Stmt *Statement, in saveIdDepVar() argument
124 void IdDependentBackwardBranchCheck::saveIdDepField(const Stmt *Statement, in saveIdDepField() argument
128 Field, Statement->getBeginLoc(), in saveIdDepField()
203 const auto *Statement = Result.Nodes.getNodeAs<Stmt>("straight_assignment"); in check() local
211 if (Statement && (Variable || Field)) { in check()
213 saveIdDepVar(Statement, Variable); in check()
215 saveIdDepField(Statement, Field); in check()
H A DIdDependentBackwardBranchCheck.h55 void saveIdDepVar(const Stmt *Statement, const VarDecl *Variable);
58 void saveIdDepField(const Stmt *Statement, const FieldDecl *Field);
/llvm-project-15.0.7/clang/lib/Tooling/Syntax/
H A DNodes.cpp69 case syntax::NodeRole::Statement: in operator <<()
227 return cast_or_null<syntax::Statement>( in getBody()
242 return cast_or_null<syntax::Statement>( in getBody()
252 return cast_or_null<syntax::Statement>( in getBody()
262 return cast_or_null<syntax::Statement>( in getThenStatement()
271 return cast_or_null<syntax::Statement>( in getElseStatement()
281 return cast_or_null<syntax::Statement>( in getBody()
291 return cast_or_null<syntax::Statement>( in getBody()
321 return cast_or_null<syntax::Statement>( in getBody()
335 std::vector<syntax::Statement *> Children; in getStatements()
[all …]
/llvm-project-15.0.7/flang/include/flang/Parser/
H A Dparse-tree.h1141 std::tuple<Statement<ContainsStmt>, std::optional<Statement<PrivateStmt>>,
1155 std::tuple<Statement<DerivedTypeStmt>, std::list<Statement<TypeParamDefStmt>>,
1199 std::tuple<Statement<EnumDefStmt>, std::list<Statement<EnumeratorDefStmt>>,
2001 std::variant<Statement<AssignmentStmt>, Statement<WhereStmt>,
2065 std::variant<Statement<ForallAssignmentStmt>, Statement<WhereStmt>,
2067 Statement<ForallStmt>>
2111 std::tuple<Statement<AssociateStmt>, Block, Statement<EndAssociateStmt>> t;
2164 std::tuple<Statement<ChangeTeamStmt>, Block, Statement<EndChangeTeamStmt>> t;
2180 std::tuple<Statement<CriticalStmt>, Block, Statement<EndCriticalStmt>> t;
2259 std::tuple<Statement<NonLabelDoStmt>, Block, Statement<EndDoStmt>> t;
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DUsingInserter.cpp33 ASTContext &Context, const Stmt &Statement, StringRef QualifiedName) { in createUsingDeclaration() argument
35 const FunctionDecl *Function = getSurroundingFunction(Context, Statement); in createUsingDeclaration()
54 Statement, Context) in createUsingDeclaration()
78 const Stmt &Statement, in getShortName() argument
80 const FunctionDecl *Function = getSurroundingFunction(Context, Statement); in getShortName()
H A DNamespaceAliaser.cpp30 NamespaceAliaser::createAlias(ASTContext &Context, const Stmt &Statement, in createAlias() argument
33 const FunctionDecl *Function = getSurroundingFunction(Context, Statement); in createAlias()
82 const Stmt &Statement, in getNamespaceName() argument
84 const auto *Function = getSurroundingFunction(Context, Statement); in getNamespaceName()
H A DUsingInserter.h32 createUsingDeclaration(ASTContext &Context, const Stmt &Statement,
37 llvm::StringRef getShortName(ASTContext &Context, const Stmt &Statement,
H A DNamespaceAliaser.h32 createAlias(ASTContext &Context, const Stmt &Statement,
38 std::string getNamespaceName(ASTContext &Context, const Stmt &Statement,
H A DASTUtils.cpp21 const Stmt &Statement) { in getSurroundingFunction() argument
24 Statement, Context)); in getSurroundingFunction()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DImplicitBoolConversionCheck.cpp30 bool isNULLMacroExpansion(const Stmt *Statement, ASTContext &Context) { in isNULLMacroExpansion() argument
33 SourceLocation Loc = Statement->getBeginLoc(); in isNULLMacroExpansion()
61 bool isUnaryLogicalNotOperator(const Stmt *Statement) { in isUnaryLogicalNotOperator() argument
62 const auto *UnaryOperatorExpr = dyn_cast<UnaryOperator>(Statement); in isUnaryLogicalNotOperator()
83 bool areParensNeededForStatement(const Stmt *Statement) { in areParensNeededForStatement() argument
84 if (const auto *OperatorCall = dyn_cast<CXXOperatorCallExpr>(Statement)) { in areParensNeededForStatement()
88 return isa<BinaryOperator>(Statement) || isa<UnaryOperator>(Statement); in areParensNeededForStatement()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/DIA/
H A DDIALineNumber.cpp73 BOOL Statement = 0; in isStatement() local
74 return (S_OK == LineNumber->get_statement(&Statement)) ? Statement : false; in isStatement()
/llvm-project-15.0.7/flang/include/flang/Lower/
H A DPFTBuilder.h64 return std::get<Ref<parser::Statement<B>>>(u).get().statement; in getStatement()
576 ReferenceVariant<parser::Statement<parser::ProgramStmt>,
577 parser::Statement<parser::EndProgramStmt>,
578 parser::Statement<parser::FunctionStmt>,
579 parser::Statement<parser::EndFunctionStmt>,
580 parser::Statement<parser::SubroutineStmt>,
581 parser::Statement<parser::EndSubroutineStmt>,
582 parser::Statement<parser::MpSubprogramStmt>,
684 ReferenceVariant<parser::Statement<parser::ModuleStmt>,
685 parser::Statement<parser::EndModuleStmt>,
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousSemicolonCheck.cpp48 const auto *Statement = Result.Nodes.getNodeAs<Stmt>("stmt"); in check() local
49 const bool IsIfStmt = isa<IfStmt>(Statement); in check()
64 unsigned BaseIndent = SM.getSpellingColumnNumber(Statement->getBeginLoc()); in check()
/llvm-project-15.0.7/flang/lib/Lower/
H A DPFTBuilder.cpp59 struct UnwrapStmt<parser::Statement<A>> {
62 constexpr UnwrapStmt(const parser::Statement<A> &a) in UnwrapStmt()
144 parser::Statement<parser::IfThenStmt>{ in convertIfStmt()
153 parser::Statement<parser::EndIfStmt>{std::nullopt, in convertIfStmt()
1210 std::get<parser::Statement<A>>(func.t)}; in getFunctionStmt()
1217 std::get<parser::Statement<A>>(mod.t)}; in getModuleStmt()
1224 [](const parser::Statement<parser::ProgramStmt> &stmt) in getSymbol()
1226 [](const parser::Statement<parser::FunctionStmt> &stmt) in getSymbol()
1230 [](const parser::Statement<parser::SubroutineStmt> &stmt) in getSymbol()
1236 [](const parser::Statement<parser::ModuleStmt> &stmt) in getSymbol()
[all …]

1234