clang 22.0.0git
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 APSIntget () const
 operator const APSInt & () const
APSInt operator- () const
APSInt operator~ () const
const APSIntoperator* () const
const APSIntoperator-> () 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

◆ APSIntPtr() [2/2]

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

References APSIntPtr().

◆ ~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

References APSIntPtr().

◆ operator~()

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

Definition at line 40 of file APSIntPtr.h.

◆ unsafeConstructor()

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::BasicValueFactory::getValue(), clang::ento::loc::ConcreteInt::getValue(), and clang::ento::nonloc::ConcreteInt::getValue().


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