clang 24.0.0git
RawPtrRefSafetyModel.h File Reference
#include "PtrTypesSemantics.h"
#include <memory>
#include <optional>
#include <string>

Go to the source code of this file.

Classes

class  clang::PtrRefSafetyModel
 Models one WebKit pointer-safety policy: ref-counted (RefPtr), checked (CheckedPtr), or retainable (RetainPtr/OSPtr). More...

Namespaces

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

Functions

std::optional< boolclang::isUnsafePtrForStorage (const PtrRefSafetyModel &Model, QualType T, bool IgnoreARC=false)
 Applies the memory-management exemptions that hold for a variable, member, or lambda capture (but not for a call argument) before consulting Model: a __strong / __weak Objective-C storage location is memory managed and thus safe.
std::unique_ptr< PtrRefSafetyModelclang::makeRefPtrSafetyModel ()
std::unique_ptr< PtrRefSafetyModelclang::makeCheckedPtrSafetyModel ()
std::unique_ptr< PtrRefSafetyModelclang::makeRetainPtrSafetyModel ()