Skip to content

ludus::tooling::shader_language::Diagnostic

Ludus Wiki · API overview · Browse API

Struct

One reported problem.
A diagnostic about a token produced by macro expansion carries two locations: Location is where the token is spelled (inside the macro definition) and ExpansionLocation is the outermost macro use that produced it.

Declared in modules/tooling/shader_language/include/ludus/tooling/shader_language/diagnostic.hpp

#include <ludus/tooling/shader_language/diagnostic.hpp>
struct ludus::tooling::shader_language::Diagnostic final

Fields

Code

DiagnosticCode ludus::tooling::shader_language::Diagnostic::Code = DiagnosticCode::InvalidRequest
Stable code; see DiagnosticCode.

Related types: DiagnosticCode

Declared in modules/tooling/shader_language/include/ludus/tooling/shader_language/diagnostic.hpp

Level

Severity ludus::tooling::shader_language::Diagnostic::Level = Severity::Error
Whether the diagnostic fails the request.

Related types: Severity

Declared in modules/tooling/shader_language/include/ludus/tooling/shader_language/diagnostic.hpp

Location

SourceLocation ludus::tooling::shader_language::Diagnostic::Location
Where the problem is spelled; invalid for request-level problems.

Related types: SourceLocation

Declared in modules/tooling/shader_language/include/ludus/tooling/shader_language/diagnostic.hpp

ExpansionLocation

SourceLocation ludus::tooling::shader_language::Diagnostic::ExpansionLocation
Outermost macro use that produced the spelled tokens; invalid when not from an expansion.

Related types: SourceLocation

Declared in modules/tooling/shader_language/include/ludus/tooling/shader_language/diagnostic.hpp

Message

DiagnosticMessage ludus::tooling::shader_language::Diagnostic::Message
Human-readable explanation, clipped to its capacity.

Related types: DiagnosticMessage

Declared in modules/tooling/shader_language/include/ludus/tooling/shader_language/diagnostic.hpp