clang 23.0.0git
clang::api_notes::BoundsSafetyInfo Class Reference

#include "clang/APINotes/Types.h"

Public Types

enum class  BoundsSafetyKind {
  CountedBy , CountedByOrNull , SizedBy , SizedByOrNull ,
  EndedBy
}

Public Member Functions

 BoundsSafetyInfo ()
std::optional< BoundsSafetyKindgetKind () const
void setKindAudited (BoundsSafetyKind kind)
std::optional< unsignedgetLevel () const
void setLevelAudited (unsigned level)
LLVM_DUMP_METHOD void dump (llvm::raw_ostream &OS) const

Public Attributes

std::string ExternalBounds

Friends

bool operator== (const BoundsSafetyInfo &LHS, const BoundsSafetyInfo &RHS)

Detailed Description

Definition at line 341 of file Types.h.

Member Enumeration Documentation

◆ BoundsSafetyKind

Enumerator
CountedBy 
CountedByOrNull 
SizedBy 
SizedByOrNull 
EndedBy 

Definition at line 343 of file Types.h.

Constructor & Destructor Documentation

◆ BoundsSafetyInfo()

clang::api_notes::BoundsSafetyInfo::BoundsSafetyInfo ( )
inline

Definition at line 372 of file Types.h.

References ExternalBounds, and false.

Referenced by operator==.

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void clang::api_notes::BoundsSafetyInfo::dump ( llvm::raw_ostream & OS) const

Definition at line 79 of file APINotesTypes.cpp.

References CountedBy, CountedByOrNull, EndedBy, ExternalBounds, SizedBy, and SizedByOrNull.

◆ getKind()

std::optional< BoundsSafetyKind > clang::api_notes::BoundsSafetyInfo::getKind ( ) const
inline

Definition at line 376 of file Types.h.

◆ getLevel()

std::optional< unsigned > clang::api_notes::BoundsSafetyInfo::getLevel ( ) const
inline

Definition at line 387 of file Types.h.

◆ setKindAudited()

void clang::api_notes::BoundsSafetyInfo::setKindAudited ( BoundsSafetyKind kind)
inline

Definition at line 382 of file Types.h.

References kind.

◆ setLevelAudited()

void clang::api_notes::BoundsSafetyInfo::setLevelAudited ( unsigned level)
inline

Definition at line 391 of file Types.h.

◆ operator==

bool operator== ( const BoundsSafetyInfo & LHS,
const BoundsSafetyInfo & RHS )
friend

Definition at line 401 of file Types.h.

References BoundsSafetyInfo(), and ExternalBounds.

Member Data Documentation

◆ ExternalBounds

std::string clang::api_notes::BoundsSafetyInfo::ExternalBounds

Definition at line 370 of file Types.h.

Referenced by BoundsSafetyInfo(), dump(), and operator==.


The documentation for this class was generated from the following files: