clang 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::ento::APSIntPtr Class Reference

A safe wrapper around APSInt objects allocated and owned by BasicValueFactory. More...

#include "clang/StaticAnalyzer/Core/PathSensitive/APSIntPtr.h"

Public Member Functions

 APSIntPtr ()=delete
 
 APSIntPtr (const APSIntPtr &)=default
 
APSIntPtroperator= (const APSIntPtr &) &=default
 
 ~APSIntPtr ()=default
 
LLVM_ATTRIBUTE_RETURNS_NONNULL const APSInt * get () const
 
 operator const APSInt & () const
 
APSInt operator- () const
 
APSInt operator~ () const
 
const APSInt & operator* () const
 
const APSInt * operator-> () const
 

Static Public Member Functions

static APSIntPtr unsafeConstructor (const APSInt *Ptr)
 You should not use this API.
 

Detailed Description

A safe wrapper around APSInt objects allocated and owned by BasicValueFactory.

This just wraps a common llvm::APSInt.

Definition at line 19 of file APSIntPtr.h.

Constructor & Destructor Documentation

◆ APSIntPtr() [1/2]

clang::ento::APSIntPtr::APSIntPtr ( )
delete

Referenced by unsafeConstructor().

◆ APSIntPtr() [2/2]

clang::ento::APSIntPtr::APSIntPtr ( const APSIntPtr )
default

◆ ~APSIntPtr()

clang::ento::APSIntPtr::~APSIntPtr ( )
default

Member Function Documentation

◆ get()

LLVM_ATTRIBUTE_RETURNS_NONNULL const APSInt * clang::ento::APSIntPtr::get ( ) const
inline

◆ operator const APSInt &()

clang::ento::APSIntPtr::operator const APSInt & ( ) const
inline

Definition at line 37 of file APSIntPtr.h.

References get().

◆ operator*()

const APSInt & clang::ento::APSIntPtr::operator* ( ) const
inline

Definition at line 52 of file APSIntPtr.h.

◆ operator-()

APSInt clang::ento::APSIntPtr::operator- ( ) const
inline

Definition at line 39 of file APSIntPtr.h.

◆ operator->()

const APSInt * clang::ento::APSIntPtr::operator-> ( ) const
inline

Definition at line 53 of file APSIntPtr.h.

◆ operator=()

APSIntPtr & clang::ento::APSIntPtr::operator= ( const APSIntPtr ) &
default

◆ operator~()

APSInt clang::ento::APSIntPtr::operator~ ( ) const
inline

Definition at line 40 of file APSIntPtr.h.

◆ unsafeConstructor()

static APSIntPtr clang::ento::APSIntPtr::unsafeConstructor ( const APSInt *  Ptr)
inlinestatic

You should not use this API.

If do, ensure that the Ptr not going to dangle. Prefer using BasicValueFactory::getValue() to get an APSIntPtr object.

Definition at line 31 of file APSIntPtr.h.

References APSIntPtr().

Referenced by clang::ento::nonloc::ConcreteInt::getValue(), clang::ento::loc::ConcreteInt::getValue(), and clang::ento::BasicValueFactory::getValue().


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