clang 22.0.0git
clang::DiagnosticIDs::CustomDiagDesc Class Reference

#include "clang/Basic/DiagnosticIDs.h"

Public Member Functions

 CustomDiagDesc (diag::Severity DefaultSeverity, std::string Description, unsigned Class=CLASS_WARNING, bool ShowInSystemHeader=false, bool ShowInSystemMacro=false, std::optional< diag::Group > Group=std::nullopt)
std::optional< diag::GroupGetGroup () const
diag::Severity GetDefaultSeverity () const
Class GetClass () const
std::string_view GetDescription () const
bool ShouldShowInSystemHeader () const

Friends

bool operator== (const CustomDiagDesc &lhs, const CustomDiagDesc &rhs)
bool operator< (const CustomDiagDesc &lhs, const CustomDiagDesc &rhs)

Detailed Description

Definition at line 202 of file DiagnosticIDs.h.

Constructor & Destructor Documentation

◆ CustomDiagDesc()

clang::DiagnosticIDs::CustomDiagDesc::CustomDiagDesc ( diag::Severity DefaultSeverity,
std::string Description,
unsigned Class = CLASS_WARNING,
bool ShowInSystemHeader = false,
bool ShowInSystemMacro = false,
std::optional< diag::Group > Group = std::nullopt )
inline

Definition at line 223 of file DiagnosticIDs.h.

References clang::DiagnosticIDs::CLASS_WARNING.

Referenced by operator<, and operator==.

Member Function Documentation

◆ GetClass()

Class clang::DiagnosticIDs::CustomDiagDesc::GetClass ( ) const
inline

Definition at line 244 of file DiagnosticIDs.h.

◆ GetDefaultSeverity()

diag::Severity clang::DiagnosticIDs::CustomDiagDesc::GetDefaultSeverity ( ) const
inline

Definition at line 240 of file DiagnosticIDs.h.

◆ GetDescription()

std::string_view clang::DiagnosticIDs::CustomDiagDesc::GetDescription ( ) const
inline

Definition at line 245 of file DiagnosticIDs.h.

◆ GetGroup()

std::optional< diag::Group > clang::DiagnosticIDs::CustomDiagDesc::GetGroup ( ) const
inline

Definition at line 234 of file DiagnosticIDs.h.

Referenced by clang::diag::CustomDiagInfo::getOrCreateDiagID().

◆ ShouldShowInSystemHeader()

bool clang::DiagnosticIDs::CustomDiagDesc::ShouldShowInSystemHeader ( ) const
inline

Definition at line 246 of file DiagnosticIDs.h.

◆ operator<

bool operator< ( const CustomDiagDesc & lhs,
const CustomDiagDesc & rhs )
friend

Definition at line 253 of file DiagnosticIDs.h.

References CustomDiagDesc().

◆ operator==

bool operator== ( const CustomDiagDesc & lhs,
const CustomDiagDesc & rhs )
friend

Definition at line 248 of file DiagnosticIDs.h.

References CustomDiagDesc().


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