class DiagnosticMapping
Declaration
class DiagnosticMapping { /* full declaration omitted */ };
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:101
Member Variables
- private unsigned int Severity
- private unsigned int IsUser
- private unsigned int IsPragma
- private unsigned int HasNoWarningAsError
- private unsigned int HasNoErrorAsFatal
- private unsigned int WasUpgradedFromWarning
Method Overview
- public static clang::DiagnosticMapping Make(diag::Severity Severity, bool IsUser, bool IsPragma)
- public static clang::DiagnosticMapping deserialize(unsigned int Bits)
- public diag::Severity getSeverity() const
- public bool hasNoErrorAsFatal() const
- public bool hasNoWarningAsError() const
- public bool isErrorOrFatal() const
- public bool isPragma() const
- public bool isUser() const
- public unsigned int serialize() const
- public void setNoErrorAsFatal(bool Value)
- public void setNoWarningAsError(bool Value)
- public void setSeverity(diag::Severity Value)
- public void setUpgradedFromWarning(bool Value)
- public bool wasUpgradedFromWarning() const
Methods
¶static clang::DiagnosticMapping Make(
diag::Severity Severity,
bool IsUser,
bool IsPragma)
static clang::DiagnosticMapping Make(
diag::Severity Severity,
bool IsUser,
bool IsPragma)
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:110
Parameters
- diag::Severity Severity
- bool IsUser
- bool IsPragma
¶static clang::DiagnosticMapping deserialize(
unsigned int Bits)
static clang::DiagnosticMapping deserialize(
unsigned int Bits)
Description
Deserialize a mapping.
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:151
Parameters
- unsigned int Bits
¶diag::Severity getSeverity() const
diag::Severity getSeverity() const
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:122
¶bool hasNoErrorAsFatal() const
bool hasNoErrorAsFatal() const
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:136
¶bool hasNoWarningAsError() const
bool hasNoWarningAsError() const
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:133
¶bool isErrorOrFatal() const
bool isErrorOrFatal() const
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:128
¶bool isPragma() const
bool isPragma() const
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:126
¶bool isUser() const
bool isUser() const
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:125
¶unsigned int serialize() const
unsigned int serialize() const
Description
Serialize this mapping as a raw integer.
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:146
¶void setNoErrorAsFatal(bool Value)
void setNoErrorAsFatal(bool Value)
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:137
Parameters
- bool Value
¶void setNoWarningAsError(bool Value)
void setNoWarningAsError(bool Value)
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:134
Parameters
- bool Value
¶void setSeverity(diag::Severity Value)
void setSeverity(diag::Severity Value)
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:123
Parameters
- diag::Severity Value
¶void setUpgradedFromWarning(bool Value)
void setUpgradedFromWarning(bool Value)
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:143
Parameters
- bool Value
¶bool wasUpgradedFromWarning() const
bool wasUpgradedFromWarning() const
Description
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.
Declared at: clang/include/clang/Basic/DiagnosticIDs.h:142