clang API Documentation

Public Member Functions
clang::Sema::DelayedDiagnostics Class Reference

#include <Sema.h>

List of all members.

Public Member Functions

 DelayedDiagnostics ()
void add (const sema::DelayedDiagnostic &diag)
 Adds a delayed diagnostic.
bool shouldDelayDiagnostics ()
 Determines whether diagnostics should be delayed.
sema::DelayedDiagnosticPoolgetCurrentPool () const
 Returns the current delayed-diagnostics pool.
DelayedDiagnosticsState push (sema::DelayedDiagnosticPool &pool)
void popWithoutEmitting (DelayedDiagnosticsState state)
DelayedDiagnosticsState pushUndelayed ()
void popUndelayed (DelayedDiagnosticsState state)
 Undo a previous pushUndelayed().

Detailed Description

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

Definition at line 508 of file Sema.h.


Constructor & Destructor Documentation

Definition at line 514 of file Sema.h.


Member Function Documentation

Returns the current delayed-diagnostics pool.

Definition at line 523 of file Sema.h.

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

Undo a previous pushUndelayed().

Definition at line 553 of file Sema.h.

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

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 539 of file Sema.h.

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

Enter a new scope. Access and deprecation diagnostics will be collected in this pool.

Definition at line 529 of file Sema.h.

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

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

Definition at line 545 of file Sema.h.

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

Determines whether diagnostics should be delayed.

Definition at line 520 of file Sema.h.

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


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