|
18 | 18 | #include "clang/Lex/CodeCompletionHandler.h"
|
19 | 19 | #include "clang/Lex/Preprocessor.h"
|
20 | 20 | #include "clang/Sema/Sema.h"
|
| 21 | +#include "clang/Sema/SemaOpenMP.h" |
21 | 22 | #include "llvm/ADT/SmallVector.h"
|
22 | 23 | #include "llvm/Frontend/OpenMP/OMPContext.h"
|
23 | 24 | #include "llvm/Support/SaveAndRestore.h"
|
@@ -2537,7 +2538,7 @@ class Parser : public CodeCompletionHandler {
|
2537 | 2538 | /// Returns true for declaration, false for expression.
|
2538 | 2539 | bool isForInitDeclaration() {
|
2539 | 2540 | if (getLangOpts().OpenMP)
|
2540 |
| - Actions.startOpenMPLoop(); |
| 2541 | + Actions.OpenMP().startOpenMPLoop(); |
2541 | 2542 | if (getLangOpts().CPlusPlus)
|
2542 | 2543 | return Tok.is(tok::kw_using) ||
|
2543 | 2544 | isCXXSimpleDeclaration(/*AllowForRangeDecl=*/true);
|
@@ -3396,7 +3397,7 @@ class Parser : public CodeCompletionHandler {
|
3396 | 3397 | SourceLocation Loc);
|
3397 | 3398 |
|
3398 | 3399 | /// Parse clauses for '#pragma omp [begin] declare target'.
|
3399 |
| - void ParseOMPDeclareTargetClauses(Sema::DeclareTargetContextInfo &DTCI); |
| 3400 | + void ParseOMPDeclareTargetClauses(SemaOpenMP::DeclareTargetContextInfo &DTCI); |
3400 | 3401 |
|
3401 | 3402 | /// Parse '#pragma omp end declare target'.
|
3402 | 3403 | void ParseOMPEndDeclareTargetDirective(OpenMPDirectiveKind BeginDKind,
|
@@ -3486,7 +3487,7 @@ class Parser : public CodeCompletionHandler {
|
3486 | 3487 | /// Parses indirect clause
|
3487 | 3488 | /// \param ParseOnly true to skip the clause's semantic actions and return
|
3488 | 3489 | // false;
|
3489 |
| - bool ParseOpenMPIndirectClause(Sema::DeclareTargetContextInfo &DTCI, |
| 3490 | + bool ParseOpenMPIndirectClause(SemaOpenMP::DeclareTargetContextInfo &DTCI, |
3490 | 3491 | bool ParseOnly);
|
3491 | 3492 | /// Parses clause with a single expression and an additional argument
|
3492 | 3493 | /// of a kind \a Kind.
|
@@ -3556,24 +3557,24 @@ class Parser : public CodeCompletionHandler {
|
3556 | 3557 |
|
3557 | 3558 | /// Parses a reserved locator like 'omp_all_memory'.
|
3558 | 3559 | bool ParseOpenMPReservedLocator(OpenMPClauseKind Kind,
|
3559 |
| - Sema::OpenMPVarListDataTy &Data, |
| 3560 | + SemaOpenMP::OpenMPVarListDataTy &Data, |
3560 | 3561 | const LangOptions &LangOpts);
|
3561 | 3562 | /// Parses clauses with list.
|
3562 | 3563 | bool ParseOpenMPVarList(OpenMPDirectiveKind DKind, OpenMPClauseKind Kind,
|
3563 | 3564 | SmallVectorImpl<Expr *> &Vars,
|
3564 |
| - Sema::OpenMPVarListDataTy &Data); |
| 3565 | + SemaOpenMP::OpenMPVarListDataTy &Data); |
3565 | 3566 | bool ParseUnqualifiedId(CXXScopeSpec &SS, ParsedType ObjectType,
|
3566 | 3567 | bool ObjectHadErrors, bool EnteringContext,
|
3567 | 3568 | bool AllowDestructorName, bool AllowConstructorName,
|
3568 | 3569 | bool AllowDeductionGuide,
|
3569 | 3570 | SourceLocation *TemplateKWLoc, UnqualifiedId &Result);
|
3570 | 3571 |
|
3571 | 3572 | /// Parses the mapper modifier in map, to, and from clauses.
|
3572 |
| - bool parseMapperModifier(Sema::OpenMPVarListDataTy &Data); |
| 3573 | + bool parseMapperModifier(SemaOpenMP::OpenMPVarListDataTy &Data); |
3573 | 3574 | /// Parses map-type-modifiers in map clause.
|
3574 | 3575 | /// map([ [map-type-modifier[,] [map-type-modifier[,] ...] map-type : ] list)
|
3575 | 3576 | /// where, map-type-modifier ::= always | close | mapper(mapper-identifier)
|
3576 |
| - bool parseMapTypeModifiers(Sema::OpenMPVarListDataTy &Data); |
| 3577 | + bool parseMapTypeModifiers(SemaOpenMP::OpenMPVarListDataTy &Data); |
3577 | 3578 |
|
3578 | 3579 | //===--------------------------------------------------------------------===//
|
3579 | 3580 | // OpenACC Parsing.
|
|
0 commit comments