diff options
| author | Lauro Oyen <15063951+laurooyen@users.noreply.github.com> | 2024-12-02 20:46:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-02 11:46:43 -0800 |
| commit | eaa8dcfcc9deabb906cc09bf31fc17ab6f343ff4 (patch) | |
| tree | 8e0f4658de3efb5e7696e8588c55471f9d65ba18 /tools/slang-cpp-parser/diagnostics.h | |
| parent | 7aaf7009e2c6055a714ba4a93ab3dd73d2d2cdb7 (diff) | |
Move c++ parsing code from slang-cpp-extractor to static library (#5675)
* Move c++ parsing code from slang-cpp-extractor to static library
* Format code
* Remove relative includes
---------
Co-authored-by: slangbot <ellieh+slangbot@nvidia.com>
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/slang-cpp-parser/diagnostics.h')
| -rw-r--r-- | tools/slang-cpp-parser/diagnostics.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/slang-cpp-parser/diagnostics.h b/tools/slang-cpp-parser/diagnostics.h new file mode 100644 index 000000000..4db70fbca --- /dev/null +++ b/tools/slang-cpp-parser/diagnostics.h @@ -0,0 +1,16 @@ +#pragma once + +#include "slang/slang-diagnostics.h" + +namespace CppParse +{ +using namespace Slang; + +namespace CPPDiagnostics +{ + +#define DIAGNOSTIC(id, severity, name, messageFormat) extern const DiagnosticInfo name; +#include "diagnostic-defs.h" + +} // namespace CPPDiagnostics +} // namespace CppParse |
