diff options
Diffstat (limited to 'include/clang/Sema/Sema.h')
| -rw-r--r-- | include/clang/Sema/Sema.h | 32 | 
1 files changed, 15 insertions, 17 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 95629a2591cf4..5a708545705c0 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -3881,13 +3881,10 @@ public:    void redelayDiagnostics(sema::DelayedDiagnosticPool &pool); -  void EmitAvailabilityWarning(AvailabilityResult AR, -                               const NamedDecl *ReferringDecl, -                               const NamedDecl *OffendingDecl, -                               StringRef Message, SourceLocation Loc, -                               const ObjCInterfaceDecl *UnknownObjCClass, -                               const ObjCPropertyDecl *ObjCProperty, -                               bool ObjCPropertyAccess); +  void DiagnoseAvailabilityOfDecl(NamedDecl *D, SourceLocation Loc, +                                  const ObjCInterfaceDecl *UnknownObjCClass, +                                  bool ObjCPropertyAccess, +                                  bool AvoidPartialAvailabilityChecks = false);    bool makeUnavailableInSystemHeader(SourceLocation loc,                                       UnavailableAttr::ImplicitReason reason); @@ -8380,6 +8377,8 @@ public:                           unsigned SpellingListIndex, bool isNSConsumed,                           bool isTemplateInstantiation); +  bool checkNSReturnsRetainedReturnType(SourceLocation loc, QualType type); +    //===--------------------------------------------------------------------===//    // C++ Coroutines TS    // @@ -8680,7 +8679,8 @@ public:    StmtResult ActOnOpenMPTaskwaitDirective(SourceLocation StartLoc,                                            SourceLocation EndLoc);    /// \brief Called on well-formed '\#pragma omp taskgroup'. -  StmtResult ActOnOpenMPTaskgroupDirective(Stmt *AStmt, SourceLocation StartLoc, +  StmtResult ActOnOpenMPTaskgroupDirective(ArrayRef<OMPClause *> Clauses, +                                           Stmt *AStmt, SourceLocation StartLoc,                                             SourceLocation EndLoc);    /// \brief Called on well-formed '\#pragma omp flush'.    StmtResult ActOnOpenMPFlushDirective(ArrayRef<OMPClause *> Clauses, @@ -9022,6 +9022,13 @@ public:        CXXScopeSpec &ReductionIdScopeSpec,        const DeclarationNameInfo &ReductionId,        ArrayRef<Expr *> UnresolvedReductions = llvm::None); +  /// Called on well-formed 'task_reduction' clause. +  OMPClause *ActOnOpenMPTaskReductionClause( +      ArrayRef<Expr *> VarList, SourceLocation StartLoc, +      SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc, +      CXXScopeSpec &ReductionIdScopeSpec, +      const DeclarationNameInfo &ReductionId, +      ArrayRef<Expr *> UnresolvedReductions = llvm::None);    /// \brief Called on well-formed 'linear' clause.    OMPClause *    ActOnOpenMPLinearClause(ArrayRef<Expr *> VarList, Expr *Step, @@ -10416,15 +10423,6 @@ public:      return OriginalLexicalContext ? OriginalLexicalContext : CurContext;    } -  /// The diagnostic we should emit for \c D, and the declaration that -  /// originated it, or \c AR_Available. -  /// -  /// \param D The declaration to check. -  /// \param Message If non-null, this will be populated with the message from -  /// the availability attribute that is selected. -  std::pair<AvailabilityResult, const NamedDecl *> -  ShouldDiagnoseAvailabilityOfDecl(const NamedDecl *D, std::string *Message); -    const DeclContext *getCurObjCLexicalContext() const {      const DeclContext *DC = getCurLexicalContext();      // A category implicitly has the attribute of the interface.  | 
