UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
uLang::SGlitch Struct Reference

#include <Glitch.h>

+ Inheritance diagram for uLang::SGlitch:

Public Member Functions

ULANG_FORCEINLINE SGlitch (SGlitchResult &&Result, SGlitchLocus &&Locus)
 
ULANG_FORCEINLINE CUTF8String AsFormattedString () const
 
- Public Member Functions inherited from uLang::CSharedMix
 CSharedMix ()
 
virtual UE_API ~CSharedMix ()
 
 CSharedMix (const CSharedMix &Other)=delete
 
CSharedMixoperator= (const CSharedMix &Other)=delete
 
uint32_t GetRefCount () const
 

Static Public Member Functions

static VERSECOMPILER_API CUTF8String FormattedString (const char *Message, const char *Path, const STextRange &Range, EDiagnosticSeverity Severity=EDiagnosticSeverity::Error, EDiagnostic Diagnostic=EDiagnostic::Ok)
 

Public Attributes

SGlitchResult _Result
 
SGlitchLocus _Locus
 

Additional Inherited Members

- Static Protected Member Functions inherited from uLang::CSharedMix
template<class ObjectType >
static TSPtrG< ObjectType, false, CHeapRawAllocatorSharedThis (ObjectType *This)
 
template<class ObjectType >
static TSPtrG< const ObjectType, false, CHeapRawAllocatorSharedThis (const ObjectType *This)
 

Detailed Description

Info describing a syntax error/warning that was encountered during parse.

Constructor & Destructor Documentation

◆ SGlitch()

ULANG_FORCEINLINE uLang::SGlitch::SGlitch ( SGlitchResult &&  Result,
SGlitchLocus &&  Locus 
)
inline

Member Function Documentation

◆ AsFormattedString()

ULANG_FORCEINLINE CUTF8String uLang::SGlitch::AsFormattedString ( ) const
inline

Returns a human-readable message describing a Glitch formatted for Visual Studio that will jump to the file and the specified lines/columns when double-clicked in the VS Output log. See https://docs.microsoft.com/en-us/cpp/build/formatting-the-output-of-a-custom-build-step-or-build-event

{filename(line#,column#, line#,column#]) | toolname} : [ any text ] {error | warning} code+number:localizable string [ any text ]

Example: C:\sourcefile.Verse(134,10, 134,16): Verse compile error V3510: The return value of SomeClass.some_function is of type int which is incompatible with the expected type string.

◆ FormattedString()

CUTF8String uLang::SGlitch::FormattedString ( const char Message,
const char Path,
const STextRange Range,
EDiagnosticSeverity  Severity = EDiagnosticSeverity::Error,
EDiagnostic  Diagnostic = EDiagnostic::Ok 
)
static

Member Data Documentation

◆ _Locus

SGlitchLocus uLang::SGlitch::_Locus

◆ _Result

SGlitchResult uLang::SGlitch::_Result

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