clang 19.0.0git
Public Member Functions | Public Attributes | List of all members
clang::RopeRefCountString Struct Reference

RopeRefCountString - This struct is allocated with 'new char[]' from the heap, and represents a reference counted chunk of string data. More...

#include "clang/Rewrite/Core/RewriteRope.h"

Public Member Functions

void Retain ()
 
void Release ()
 

Public Attributes

unsigned RefCount
 
char Data [1]
 

Detailed Description

RopeRefCountString - This struct is allocated with 'new char[]' from the heap, and represents a reference counted chunk of string data.

When its ref count drops to zero, it is delete[]'d. This is primarily managed through the RopePiece class below.

Definition at line 33 of file RewriteRope.h.

Member Function Documentation

◆ Release()

void clang::RopeRefCountString::Release ( )
inline

Definition at line 39 of file RewriteRope.h.

References RefCount.

◆ Retain()

void clang::RopeRefCountString::Retain ( )
inline

Definition at line 37 of file RewriteRope.h.

References RefCount.

Member Data Documentation

◆ Data

char clang::RopeRefCountString::Data[1]

Definition at line 35 of file RewriteRope.h.

◆ RefCount

unsigned clang::RopeRefCountString::RefCount

Definition at line 34 of file RewriteRope.h.

Referenced by Release(), and Retain().


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