mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-16 13:08:42 +00:00
parent
a0a5682d00
commit
ce1db6df26
@ -1686,7 +1686,7 @@ private:
|
||||
|
||||
StmtResult ParseStatement(SourceLocation *TrailingElseLoc = nullptr,
|
||||
bool AllowOpenMPStandalone = false);
|
||||
enum AllowedContsructsKind {
|
||||
enum AllowedConstructsKind {
|
||||
/// \brief Allow any declarations, statements, OpenMP directives.
|
||||
ACK_Any,
|
||||
/// \brief Allow only statements and non-standalone OpenMP directives.
|
||||
@ -1695,11 +1695,11 @@ private:
|
||||
ACK_StatementsOpenMPAnyExecutable
|
||||
};
|
||||
StmtResult
|
||||
ParseStatementOrDeclaration(StmtVector &Stmts, AllowedContsructsKind Allowed,
|
||||
ParseStatementOrDeclaration(StmtVector &Stmts, AllowedConstructsKind Allowed,
|
||||
SourceLocation *TrailingElseLoc = nullptr);
|
||||
StmtResult ParseStatementOrDeclarationAfterAttributes(
|
||||
StmtVector &Stmts,
|
||||
AllowedContsructsKind Allowed,
|
||||
AllowedConstructsKind Allowed,
|
||||
SourceLocation *TrailingElseLoc,
|
||||
ParsedAttributesWithRange &Attrs);
|
||||
StmtResult ParseExprStatement();
|
||||
@ -1728,7 +1728,7 @@ private:
|
||||
StmtResult ParseAsmStatement(bool &msAsm);
|
||||
StmtResult ParseMicrosoftAsmStatement(SourceLocation AsmLoc);
|
||||
StmtResult ParsePragmaLoopHint(StmtVector &Stmts,
|
||||
AllowedContsructsKind Allowed,
|
||||
AllowedConstructsKind Allowed,
|
||||
SourceLocation *TrailingElseLoc,
|
||||
ParsedAttributesWithRange &Attrs);
|
||||
|
||||
@ -2587,7 +2587,7 @@ private:
|
||||
/// executable directives are allowed.
|
||||
///
|
||||
StmtResult
|
||||
ParseOpenMPDeclarativeOrExecutableDirective(AllowedContsructsKind Allowed);
|
||||
ParseOpenMPDeclarativeOrExecutableDirective(AllowedConstructsKind Allowed);
|
||||
/// \brief Parses clause of kind \a CKind for directive of a kind \a Kind.
|
||||
///
|
||||
/// \param DKind Kind of current directive.
|
||||
|
@ -806,7 +806,7 @@ Parser::DeclGroupPtrTy Parser::ParseOpenMPDeclarativeDirectiveWithExtDecl(
|
||||
/// annot_pragma_openmp_end
|
||||
///
|
||||
StmtResult Parser::ParseOpenMPDeclarativeOrExecutableDirective(
|
||||
AllowedContsructsKind Allowed) {
|
||||
AllowedConstructsKind Allowed) {
|
||||
assert(Tok.is(tok::annot_pragma_openmp) && "Not an OpenMP directive!");
|
||||
ParenBraceBracketBalancer BalancerRAIIObj(*this);
|
||||
SmallVector<OMPClause *, 5> Clauses;
|
||||
|
@ -97,7 +97,7 @@ StmtResult Parser::ParseStatement(SourceLocation *TrailingElseLoc,
|
||||
///
|
||||
StmtResult
|
||||
Parser::ParseStatementOrDeclaration(StmtVector &Stmts,
|
||||
AllowedContsructsKind Allowed,
|
||||
AllowedConstructsKind Allowed,
|
||||
SourceLocation *TrailingElseLoc) {
|
||||
|
||||
ParenBraceBracketBalancer BalancerRAIIObj(*this);
|
||||
@ -150,7 +150,7 @@ private:
|
||||
|
||||
StmtResult
|
||||
Parser::ParseStatementOrDeclarationAfterAttributes(StmtVector &Stmts,
|
||||
AllowedContsructsKind Allowed, SourceLocation *TrailingElseLoc,
|
||||
AllowedConstructsKind Allowed, SourceLocation *TrailingElseLoc,
|
||||
ParsedAttributesWithRange &Attrs) {
|
||||
const char *SemiError = nullptr;
|
||||
StmtResult Res;
|
||||
@ -1903,7 +1903,7 @@ StmtResult Parser::ParseReturnStatement() {
|
||||
}
|
||||
|
||||
StmtResult Parser::ParsePragmaLoopHint(StmtVector &Stmts,
|
||||
AllowedContsructsKind Allowed,
|
||||
AllowedConstructsKind Allowed,
|
||||
SourceLocation *TrailingElseLoc,
|
||||
ParsedAttributesWithRange &Attrs) {
|
||||
// Create temporary attribute list.
|
||||
|
Loading…
x
Reference in New Issue
Block a user