clang 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::DiagnosticMapping Class Reference

#include "clang/Basic/DiagnosticIDs.h"

Public Member Functions

diag::Severity getSeverity () const
 
void setSeverity (diag::Severity Value)
 
bool isUser () const
 
bool isPragma () const
 
bool isErrorOrFatal () const
 
bool hasNoWarningAsError () const
 
void setNoWarningAsError (bool Value)
 
bool hasNoErrorAsFatal () const
 
void setNoErrorAsFatal (bool Value)
 
bool wasUpgradedFromWarning () const
 Whether this mapping attempted to map the diagnostic to a warning, but was overruled because the diagnostic was already mapped to an error or fatal error.
 
void setUpgradedFromWarning (bool Value)
 
unsigned serialize () const
 Serialize this mapping as a raw integer.
 
bool operator== (DiagnosticMapping Other) const
 

Static Public Member Functions

static DiagnosticMapping Make (diag::Severity Severity, bool IsUser, bool IsPragma)
 
static DiagnosticMapping deserialize (unsigned Bits)
 Deserialize a mapping.
 

Detailed Description

Definition at line 104 of file DiagnosticIDs.h.

Member Function Documentation

◆ deserialize()

static DiagnosticMapping clang::DiagnosticMapping::deserialize ( unsigned  Bits)
inlinestatic

Deserialize a mapping.

Definition at line 160 of file DiagnosticIDs.h.

References clang::Result.

Referenced by clang::ASTReader::ReadPragmaDiagnosticMappings().

◆ getSeverity()

diag::Severity clang::DiagnosticMapping::getSeverity ( ) const
inline

◆ hasNoErrorAsFatal()

bool clang::DiagnosticMapping::hasNoErrorAsFatal ( ) const
inline

Definition at line 145 of file DiagnosticIDs.h.

◆ hasNoWarningAsError()

bool clang::DiagnosticMapping::hasNoWarningAsError ( ) const
inline

Definition at line 142 of file DiagnosticIDs.h.

Referenced by clang::DiagnosticsEngine::setSeverity().

◆ isErrorOrFatal()

bool clang::DiagnosticMapping::isErrorOrFatal ( ) const
inline

◆ isPragma()

bool clang::DiagnosticMapping::isPragma ( ) const
inline

Definition at line 135 of file DiagnosticIDs.h.

Referenced by clang::ASTReader::ReadPragmaDiagnosticMappings().

◆ isUser()

bool clang::DiagnosticMapping::isUser ( ) const
inline

Definition at line 134 of file DiagnosticIDs.h.

◆ Make()

static DiagnosticMapping clang::DiagnosticMapping::Make ( diag::Severity  Severity,
bool  IsUser,
bool  IsPragma 
)
inlinestatic

Definition at line 119 of file DiagnosticIDs.h.

References clang::Result.

Referenced by clang::DiagnosticIDs::getDefaultMapping().

◆ operator==()

bool clang::DiagnosticMapping::operator== ( DiagnosticMapping  Other) const
inline

Definition at line 171 of file DiagnosticIDs.h.

References clang::Other, and serialize().

◆ serialize()

unsigned clang::DiagnosticMapping::serialize ( ) const
inline

Serialize this mapping as a raw integer.

Definition at line 155 of file DiagnosticIDs.h.

Referenced by operator==().

◆ setNoErrorAsFatal()

void clang::DiagnosticMapping::setNoErrorAsFatal ( bool  Value)
inline

◆ setNoWarningAsError()

void clang::DiagnosticMapping::setNoWarningAsError ( bool  Value)
inline

◆ setSeverity()

void clang::DiagnosticMapping::setSeverity ( diag::Severity  Value)
inline

◆ setUpgradedFromWarning()

void clang::DiagnosticMapping::setUpgradedFromWarning ( bool  Value)
inline

◆ wasUpgradedFromWarning()

bool clang::DiagnosticMapping::wasUpgradedFromWarning ( ) const
inline

Whether this mapping attempted to map the diagnostic to a warning, but was overruled because the diagnostic was already mapped to an error or fatal error.

Definition at line 151 of file DiagnosticIDs.h.

Referenced by clang::ASTReader::ReadPragmaDiagnosticMappings().


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