Skip to content
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/main' into sema-refactoring
  • Loading branch information
Endilll committed Mar 5, 2024
commit 8546774336cbaceb8da0a49e5af1edb4d744d000
24 changes: 24 additions & 0 deletions clang/include/clang/Sema/Sema.h
Original file line number Diff line number Diff line change
Expand Up @@ -2150,6 +2150,12 @@ class Sema final {
VariadicDoesNotApply
};

/// Determine if type T is a valid subject for a nonnull and similar
/// attributes. By default, we look through references (the behavior used by
/// nonnull), but if the second parameter is true, then we treat a reference
/// type as valid.
bool isValidPointerAttrType(QualType T, bool RefOkay = false);

private:
void CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr,
const ArraySubscriptExpr *ASE = nullptr,
Expand Down Expand Up @@ -12988,6 +12994,24 @@ class Sema final {
//
//

/// \name API Notes
/// Implementations are in SemaAPINotes.cpp
///@{

public:
/// Map any API notes provided for this declaration to attributes on the
/// declaration.
///
/// Triggered by declaration-attribute processing.
void ProcessAPINotes(Decl *D);

///@}
//
//
// -------------------------------------------------------------------------
//
//

/// \name Name Lookup for RISC-V Vector Intrinsic
/// Implementations are in SemaRISCVVectorLookup.cpp
///@{
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.