clang  5.0.0
Public Member Functions | List of all members
clang::Sema::DelayedDiagnostics Class Reference

A class which encapsulates the logic for delaying diagnostics during parsing and other processing. More...

#include "clang/Sema/Sema.h"

Public Member Functions

 DelayedDiagnostics ()
 
void add (const sema::DelayedDiagnostic &diag)
 Adds a delayed diagnostic. More...
 
bool shouldDelayDiagnostics ()
 Determines whether diagnostics should be delayed. More...
 
sema::DelayedDiagnosticPoolgetCurrentPool () const
 Returns the current delayed-diagnostics pool. More...
 
DelayedDiagnosticsState push (sema::DelayedDiagnosticPool &pool)
 Enter a new scope. More...
 
void popWithoutEmitting (DelayedDiagnosticsState state)
 Leave a delayed-diagnostic state that was previously pushed. More...
 
DelayedDiagnosticsState pushUndelayed ()
 Enter a new scope where access and deprecation diagnostics are not delayed. More...
 
void popUndelayed (DelayedDiagnosticsState state)
 Undo a previous pushUndelayed(). More...
 

Detailed Description

A class which encapsulates the logic for delaying diagnostics during parsing and other processing.

Definition at line 632 of file Sema.h.

Constructor & Destructor Documentation

clang::Sema::DelayedDiagnostics::DelayedDiagnostics ( )
inline

Definition at line 638 of file Sema.h.

Member Function Documentation

void clang::Sema::DelayedDiagnostics::add ( const sema::DelayedDiagnostic diag)
inline

Adds a delayed diagnostic.

Add a diagnostic to the current delay pool.

Definition at line 305 of file DelayedDiagnostic.h.

References clang::sema::DelayedDiagnosticPool::add(), and shouldDelayDiagnostics().

Referenced by CheckAccess(), clang::Sema::CheckParameter(), EmitAvailabilityWarning(), handleObjCOwnershipTypeAttr(), and inferARCLifetimeForPointee().

sema::DelayedDiagnosticPool* clang::Sema::DelayedDiagnostics::getCurrentPool ( ) const
inline

Returns the current delayed-diagnostics pool.

Definition at line 647 of file Sema.h.

Referenced by clang::Sema::ActOnEndOfTranslationUnit(), clang::Sema::PopParsingDeclaration(), and clang::Sema::redelayDiagnostics().

void clang::Sema::DelayedDiagnostics::popUndelayed ( DelayedDiagnosticsState  state)
inline

Undo a previous pushUndelayed().

Definition at line 677 of file Sema.h.

Referenced by clang::Sema::ContextRAII::pop(), and clang::Sema::PopParsingClass().

void clang::Sema::DelayedDiagnostics::popWithoutEmitting ( DelayedDiagnosticsState  state)
inline

Leave a delayed-diagnostic state that was previously pushed.

Do not emit any of the diagnostics. This is performed as part of the bookkeeping of popping a pool "properly".

Definition at line 663 of file Sema.h.

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

DelayedDiagnosticsState clang::Sema::DelayedDiagnostics::push ( sema::DelayedDiagnosticPool pool)
inline

Enter a new scope.

Access and deprecation diagnostics will be collected in this pool.

Definition at line 653 of file Sema.h.

References clang::CodeGen::state.

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

DelayedDiagnosticsState clang::Sema::DelayedDiagnostics::pushUndelayed ( )
inline

Enter a new scope where access and deprecation diagnostics are not delayed.

Definition at line 669 of file Sema.h.

References clang::CodeGen::state.

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

bool clang::Sema::DelayedDiagnostics::shouldDelayDiagnostics ( )
inline

Determines whether diagnostics should be delayed.

Definition at line 644 of file Sema.h.

Referenced by add(), CheckAccess(), EmitAvailabilityWarning(), handleObjCOwnershipTypeAttr(), and inferARCLifetimeForPointee().


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