clang 20.0.0git
Public Types | Public Member Functions | List of all members
clang::sema::DelayedDiagnosticPool Class Reference

A collection of diagnostics which were delayed. More...

#include "clang/Sema/DelayedDiagnostic.h"

Public Types

using pool_iterator = SmallVectorImpl< DelayedDiagnostic >::const_iterator
 

Public Member Functions

 DelayedDiagnosticPool (const DelayedDiagnosticPool *parent)
 
 DelayedDiagnosticPool (const DelayedDiagnosticPool &)=delete
 
DelayedDiagnosticPooloperator= (const DelayedDiagnosticPool &)=delete
 
 DelayedDiagnosticPool (DelayedDiagnosticPool &&Other)
 
DelayedDiagnosticPooloperator= (DelayedDiagnosticPool &&Other)
 
 ~DelayedDiagnosticPool ()
 
const DelayedDiagnosticPoolgetParent () const
 
bool empty () const
 Does this pool, or any of its ancestors, contain any diagnostics?
 
void add (const DelayedDiagnostic &diag)
 Add a diagnostic to this pool.
 
void steal (DelayedDiagnosticPool &pool)
 Steal the diagnostics from the given pool.
 
pool_iterator pool_begin () const
 
pool_iterator pool_end () const
 
bool pool_empty () const
 

Detailed Description

A collection of diagnostics which were delayed.

Definition at line 265 of file DelayedDiagnostic.h.

Member Typedef Documentation

◆ pool_iterator

Definition at line 317 of file DelayedDiagnostic.h.

Constructor & Destructor Documentation

◆ DelayedDiagnosticPool() [1/3]

clang::sema::DelayedDiagnosticPool::DelayedDiagnosticPool ( const DelayedDiagnosticPool parent)
inline

Definition at line 270 of file DelayedDiagnostic.h.

References Parent.

◆ DelayedDiagnosticPool() [2/3]

clang::sema::DelayedDiagnosticPool::DelayedDiagnosticPool ( const DelayedDiagnosticPool )
delete

◆ DelayedDiagnosticPool() [3/3]

clang::sema::DelayedDiagnosticPool::DelayedDiagnosticPool ( DelayedDiagnosticPool &&  Other)
inline

Definition at line 275 of file DelayedDiagnostic.h.

References clang::Other, and Parent.

◆ ~DelayedDiagnosticPool()

clang::sema::DelayedDiagnosticPool::~DelayedDiagnosticPool ( )
inline

Definition at line 287 of file DelayedDiagnostic.h.

Member Function Documentation

◆ add()

void clang::sema::DelayedDiagnosticPool::add ( const DelayedDiagnostic diag)
inline

Add a diagnostic to this pool.

Definition at line 301 of file DelayedDiagnostic.h.

Referenced by clang::Sema::DelayedDiagnostics::add().

◆ empty()

bool clang::sema::DelayedDiagnosticPool::empty ( ) const
inline

Does this pool, or any of its ancestors, contain any diagnostics?

Definition at line 296 of file DelayedDiagnostic.h.

References Parent.

◆ getParent()

const DelayedDiagnosticPool * clang::sema::DelayedDiagnosticPool::getParent ( ) const
inline

Definition at line 293 of file DelayedDiagnostic.h.

References Parent.

Referenced by clang::Sema::PopParsingDeclaration().

◆ operator=() [1/2]

DelayedDiagnosticPool & clang::sema::DelayedDiagnosticPool::operator= ( const DelayedDiagnosticPool )
delete

◆ operator=() [2/2]

DelayedDiagnosticPool & clang::sema::DelayedDiagnosticPool::operator= ( DelayedDiagnosticPool &&  Other)
inline

Definition at line 280 of file DelayedDiagnostic.h.

References clang::Other, and Parent.

◆ pool_begin()

pool_iterator clang::sema::DelayedDiagnosticPool::pool_begin ( ) const
inline

Definition at line 319 of file DelayedDiagnostic.h.

Referenced by clang::Sema::PopParsingDeclaration(), and steal().

◆ pool_empty()

bool clang::sema::DelayedDiagnosticPool::pool_empty ( ) const
inline

Definition at line 321 of file DelayedDiagnostic.h.

Referenced by clang::SuppressAccessChecks::redelay().

◆ pool_end()

pool_iterator clang::sema::DelayedDiagnosticPool::pool_end ( ) const
inline

Definition at line 320 of file DelayedDiagnostic.h.

Referenced by clang::Sema::PopParsingDeclaration(), and steal().

◆ steal()

void clang::sema::DelayedDiagnosticPool::steal ( DelayedDiagnosticPool pool)
inline

Steal the diagnostics from the given pool.

Definition at line 306 of file DelayedDiagnostic.h.

References pool_begin(), and pool_end().

Referenced by clang::ParsingDeclRAIIObject::ParsingDeclRAIIObject(), and clang::Sema::redelayDiagnostics().


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