nixd
Loading...
Searching...
No Matches
nixf::Note Class Reference

#include <Diagnostic.h>

Inheritance diagram for nixf::Note:
[legend]
Collaboration diagram for nixf::Note:
[legend]

Public Types

enum  NoteKind { DIAG_NOTE , DIAG_NOTE }
 Internal kind. More...
 

Public Member Functions

 Note (NoteKind Kind, LexerCursorRange Range)
 
template<class T >
PartialDiagnosticoperator<< (const T &Var)
 
virtual const char * sname () const
 
NoteKind kind () const
 
const char * message () const override
 
- Public Member Functions inherited from nixf::PartialDiagnostic
virtual ~PartialDiagnostic ()=default
 
PartialDiagnosticoperator<< (std::string Var)
 
std::string format () const
 
const std::vector< std::string > & args () const
 
std::vector< std::string > & args ()
 
void tag (DiagnosticTag Tag)
 
const std::vector< DiagnosticTag > & tags () const
 
LexerCursorRange range () const
 

Static Public Member Functions

static const char * sname (NoteKind Kind)
 
static const char * message (NoteKind Kind)
 

Additional Inherited Members

- Protected Member Functions inherited from nixf::PartialDiagnostic
 PartialDiagnostic ()=default
 
 PartialDiagnostic (LexerCursorRange Range)
 

Detailed Description

Definition at line 114 of file Diagnostic.h.

Member Enumeration Documentation

◆ NoteKind

Internal kind.

Enumerator
DIAG_NOTE 

DiagnosticNodes.inc, note declarations.

DIAG_NOTE 

DiagnosticNodes.inc, note declarations.

Definition at line 117 of file Diagnostic.h.

Constructor & Destructor Documentation

◆ Note()

nixf::Note::Note ( NoteKind Kind,
LexerCursorRange Range )
inline

Definition at line 123 of file Diagnostic.h.

Member Function Documentation

◆ kind()

NoteKind nixf::Note::kind ( ) const
inlinenodiscard

Definition at line 135 of file Diagnostic.h.

Referenced by message(), and sname().

◆ message() [1/2]

const char * nixf::Note::message ( ) const
inlinenodiscardoverridevirtual

Implements nixf::PartialDiagnostic.

Definition at line 139 of file Diagnostic.h.

References kind(), and message().

Referenced by message().

◆ message() [2/2]

const char * nixf::Note::message ( NoteKind Kind)
staticnodiscard

DiagnosticNodes.inc, note declarations

Definition at line 39 of file Diagnostic.cpp.

◆ operator<<()

template<class T >
PartialDiagnostic & nixf::Note::operator<< ( const T & Var)
inline

Definition at line 126 of file Diagnostic.h.

References nixf::PartialDiagnostic::args().

◆ sname() [1/2]

virtual const char * nixf::Note::sname ( ) const
inlinenodiscardvirtual

Definition at line 133 of file Diagnostic.h.

References kind(), and sname().

Referenced by sname().

◆ sname() [2/2]

const char * nixf::Note::sname ( NoteKind Kind)
staticnodiscard

DiagnosticNodes.inc, note declarations

Definition at line 27 of file Diagnostic.cpp.


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