diff options
Diffstat (limited to 'include/clang/Parse/Parser.h')
-rw-r--r-- | include/clang/Parse/Parser.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index 5c0a831db6..d80ece998d 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -2834,10 +2834,15 @@ private: DeclGroupPtrTy ParseOMPDeclareSimdClauses(DeclGroupPtrTy Ptr, CachedTokens &Toks, SourceLocation Loc); + /// Parses OpenMP context selectors and calls \p Callback for each + /// successfully parsed context selector. + bool + parseOpenMPContextSelectors(SourceLocation Loc, + llvm::function_ref<void(SourceRange)> Callback); + /// Parse clauses for '#pragma omp declare variant'. - DeclGroupPtrTy ParseOMPDeclareVariantClauses(DeclGroupPtrTy Ptr, - CachedTokens &Toks, - SourceLocation Loc); + void ParseOMPDeclareVariantClauses(DeclGroupPtrTy Ptr, CachedTokens &Toks, + SourceLocation Loc); /// Parse clauses for '#pragma omp declare target'. DeclGroupPtrTy ParseOMPDeclareTargetClauses(); /// Parse '#pragma omp end declare target'. |