summaryrefslogtreecommitdiff
path: root/source/compiler-core/slang-json-diagnostics.h
blob: 88ec0c550a0058618bc9fccc8ec4d91e56afccea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef SLANG_JSON_DIAGNOSTICS_H
#define SLANG_JSON_DIAGNOSTICS_H

#include "../core/slang-basic.h"
#include "../core/slang-writer.h"

#include "slang-source-loc.h"
#include "slang-diagnostic-sink.h"
#include "slang-token.h"

#include "../../slang.h"

namespace Slang
{

DiagnosticsLookup* getJSONDiagnosticsLookup();

namespace JSONDiagnostics
{
#define DIAGNOSTIC(id, severity, name, messageFormat) extern const DiagnosticInfo name;
#include "slang-json-diagnostic-defs.h"
}

}

#endif