clang 22.0.0git
SemaBoundsSafety.cpp File Reference

This file declares semantic analysis functions specific to -fbounds-safety (Bounds Safety) and also its attributes when used without -fbounds-safety (e.g. More...

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.

Enumerations

enum class  clang::CountedByInvalidPointeeTypeKind {
  clang::INCOMPLETE , clang::SIZELESS , clang::FUNCTION , clang::FLEXIBLE_ARRAY_MEMBER ,
  clang::VALID
}

Functions

static CountAttributedType::DynamicCountPointerKind clang::getCountAttrKind (bool CountInBytes, bool OrNull)
static const RecordDeclclang::GetEnclosingNamedOrTopAnonRecord (const FieldDecl *FD)
static void clang::EmitIncompleteCountedByPointeeNotes (Sema &S, const CountAttributedType *CATy, NamedDecl *IncompleteTyDecl)
static std::tuple< const CountAttributedType *, QualTypeclang::GetCountedByAttrOnIncompletePointee (QualType Ty, NamedDecl **ND)
static bool clang::CheckAssignmentToCountAttrPtrWithIncompletePointeeTy (Sema &S, QualType LHSTy, Expr *RHSExpr, AssignmentAction Action, SourceLocation Loc, const ValueDecl *Assignee, bool ShowFullyQualifiedAssigneeName)
 Perform Checks for assigning to a __counted_by or __counted_by_or_null pointer type.

Detailed Description

This file declares semantic analysis functions specific to -fbounds-safety (Bounds Safety) and also its attributes when used without -fbounds-safety (e.g.

counted_by)

Definition in file SemaBoundsSafety.cpp.