diff options
| author | tareksander <57038324+tareksander@users.noreply.github.com> | 2024-11-11 20:32:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-11 11:32:00 -0800 |
| commit | 7e51180ed80ce1c5718b65c6625dc12fe64c8bfa (patch) | |
| tree | 6a6451b388d52ba01e8b4190dc498b435c5ea978 /source/slang/slang-reflection-json.h | |
| parent | 98dab05e80a90ddf64c9d31420a3b49ec49e31d1 (diff) | |
Reflection compiler option (#5507)
* Moved the pretty writer code from slang-reflection-test into core
* Moved reflection test code into the slang codebase and added the compiler option -reflection-json to store the reflection data in a separate file.
* Documented -reflection-json command line option
* moved PrettyWriter from core to compiler-core
* Fixed variable shadowing warning
* Use File::writeAllText instead of OSFilesystem and write to stdout if - is used as the path
* format code
* Fixed linker error
* Fix COM Ptr life time issues.
* Move enum to the end.
* Fix formatting.
---------
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-reflection-json.h')
| -rw-r--r-- | source/slang/slang-reflection-json.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/slang/slang-reflection-json.h b/source/slang/slang-reflection-json.h new file mode 100644 index 000000000..bf62b8744 --- /dev/null +++ b/source/slang/slang-reflection-json.h @@ -0,0 +1,17 @@ +#ifndef SLANG_REFLECTION_JSON_H +#define SLANG_REFLECTION_JSON_H + +#include "../compiler-core/slang-pretty-writer.h" +#include "slang.h" + +namespace Slang +{ + +void emitReflectionJSON( + SlangCompileRequest* request, + SlangReflection* reflection, + PrettyWriter& writer); + +} + +#endif |
