clang 23.0.0git
llvm::yaml::MappingTraits< clang::tooling::Diagnostic >::NormalizedDiagnostic Class Reference

Helper to (de)serialize a Diagnostic since we don't have direct access to its data members. More...

#include "clang/Tooling/DiagnosticsYaml.h"

Public Member Functions

 NormalizedDiagnostic (const IO &)
 NormalizedDiagnostic (const IO &, const clang::tooling::Diagnostic &D)
clang::tooling::Diagnostic denormalize (const IO &)

Public Attributes

std::string DiagnosticName
clang::tooling::DiagnosticMessage Message
SmallVector< clang::tooling::DiagnosticMessage, 1 > Notes
clang::tooling::Diagnostic::Level DiagLevel
std::string BuildDirectory

Detailed Description

Helper to (de)serialize a Diagnostic since we don't have direct access to its data members.

Definition at line 63 of file DiagnosticsYaml.h.

Constructor & Destructor Documentation

◆ NormalizedDiagnostic() [1/2]

llvm::yaml::MappingTraits< clang::tooling::Diagnostic >::NormalizedDiagnostic::NormalizedDiagnostic ( const IO & )
inline

Definition at line 65 of file DiagnosticsYaml.h.

References DiagLevel.

◆ NormalizedDiagnostic() [2/2]

llvm::yaml::MappingTraits< clang::tooling::Diagnostic >::NormalizedDiagnostic::NormalizedDiagnostic ( const IO & ,
const clang::tooling::Diagnostic & D )
inline

Definition at line 68 of file DiagnosticsYaml.h.

References BuildDirectory, DiagLevel, DiagnosticName, Message, and Notes.

Member Function Documentation

◆ denormalize()

clang::tooling::Diagnostic llvm::yaml::MappingTraits< clang::tooling::Diagnostic >::NormalizedDiagnostic::denormalize ( const IO & )
inline

Definition at line 72 of file DiagnosticsYaml.h.

References BuildDirectory, DiagLevel, DiagnosticName, Message, and Notes.

Member Data Documentation

◆ BuildDirectory

std::string llvm::yaml::MappingTraits< clang::tooling::Diagnostic >::NormalizedDiagnostic::BuildDirectory

Definition at line 81 of file DiagnosticsYaml.h.

Referenced by denormalize(), and NormalizedDiagnostic().

◆ DiagLevel

clang::tooling::Diagnostic::Level llvm::yaml::MappingTraits< clang::tooling::Diagnostic >::NormalizedDiagnostic::DiagLevel

Definition at line 80 of file DiagnosticsYaml.h.

Referenced by denormalize(), NormalizedDiagnostic(), and NormalizedDiagnostic().

◆ DiagnosticName

std::string llvm::yaml::MappingTraits< clang::tooling::Diagnostic >::NormalizedDiagnostic::DiagnosticName

Definition at line 77 of file DiagnosticsYaml.h.

Referenced by denormalize(), and NormalizedDiagnostic().

◆ Message

clang::tooling::DiagnosticMessage llvm::yaml::MappingTraits< clang::tooling::Diagnostic >::NormalizedDiagnostic::Message

Definition at line 78 of file DiagnosticsYaml.h.

Referenced by denormalize(), and NormalizedDiagnostic().

◆ Notes

SmallVector<clang::tooling::DiagnosticMessage, 1> llvm::yaml::MappingTraits< clang::tooling::Diagnostic >::NormalizedDiagnostic::Notes

Definition at line 79 of file DiagnosticsYaml.h.

Referenced by denormalize(), and NormalizedDiagnostic().


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