summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/compiler-core/slang-downstream-compiler.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/compiler-core/slang-downstream-compiler.h b/source/compiler-core/slang-downstream-compiler.h
index ed932a5c9..1e6571e0f 100644
--- a/source/compiler-core/slang-downstream-compiler.h
+++ b/source/compiler-core/slang-downstream-compiler.h
@@ -67,12 +67,12 @@ struct DownstreamDiagnostic
/// Given diagnostics in inText that are colon delimited, use lineParser to do per line parsing.
static SlangResult parseColonDelimitedDiagnostics(const UnownedStringSlice& inText, Int pathIndex, LineParser lineParser, List<DownstreamDiagnostic>& outDiagnostics);
- Severity severity; ///< The severity of error
- Stage stage; ///< The stage the error came from
- String text; ///< The text of the error
- String code; ///< The compiler specific error code
- String filePath; ///< The path the error originated from
- Int fileLine; ///< The line number the error came from
+ Severity severity = Severity::Unknown; ///< The severity of error
+ Stage stage = Stage::Compile; ///< The stage the error came from
+ String text; ///< The text of the error
+ String code; ///< The compiler specific error code
+ String filePath; ///< The path the error originated from
+ Int fileLine = 0; ///< The line number the error came from
};
struct DownstreamDiagnostics