summaryrefslogtreecommitdiff
path: root/source/slang/diagnostics.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/diagnostics.h')
-rw-r--r--source/slang/diagnostics.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/source/slang/diagnostics.h b/source/slang/diagnostics.h
index 8e5bbcb64..fed492bc7 100644
--- a/source/slang/diagnostics.h
+++ b/source/slang/diagnostics.h
@@ -141,12 +141,23 @@ namespace Slang
// The source manager to use when mapping source locations to file+line info
SourceManager* sourceManager;
+ struct Flag
+ {
+ enum Enum: uint32_t
+ {
+ VerbosePath = 0x1, ///< Will try and display a
+ };
+ };
+ typedef uint32_t Flags;
+
StringBuilder outputBuffer;
// List<Diagnostic> diagnostics;
int errorCount = 0;
- ISlangWriter* writer = nullptr;
+ ISlangWriter* writer = nullptr;
+ Flags flags = 0;
+
/*
void Error(int id, const String & msg, const SourceLoc & pos)
{
@@ -163,7 +174,7 @@ namespace Slang
void diagnoseDispatch(SourceLoc const& pos, DiagnosticInfo const& info)
{
- diagnoseImpl(pos, info, 0, NULL);
+ diagnoseImpl(pos, info, 0, nullptr);
}
void diagnoseDispatch(SourceLoc const& pos, DiagnosticInfo const& info, DiagnosticArg const& arg0)