From 7a3c87b58de2683c077bd5341052c2e3cebeb048 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 1 Jun 2021 16:58:07 -0400 Subject: JSONValue / Container (#1864) * #include an absolute path didn't work - because paths were taken to always be relative. * WIP JSONWriter/JSONParser. * Checking different Layout styles for JSON. * Add slang-json-parser.h/.cpp * WIP JSONValue. * Added JSONValue::destroy/Recursive. * Improvement to JSONValue. * Improve text double conversion precision. Testing. * Simplify double parsing (just use atof). JSON comparison More testing of conversions and start of JSONValue. * Add for isnan, isinf etc. * Small improvement with object comparison. * Fix typo in getArgsByName. * Removed use of isnan and isinf as includes don't work on linux. * Improve JSON unit test. * Added asInteger/asFloat/asBool to JSONValue. * Change comment to trigger CI build. --- source/compiler-core/slang-command-line-args.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/compiler-core/slang-command-line-args.cpp') diff --git a/source/compiler-core/slang-command-line-args.cpp b/source/compiler-core/slang-command-line-args.cpp index d7a053b00..ec03e3116 100644 --- a/source/compiler-core/slang-command-line-args.cpp +++ b/source/compiler-core/slang-command-line-args.cpp @@ -171,14 +171,14 @@ Index DownstreamArgs::_findOrAddName(SourceLoc loc, const UnownedStringSlice& na return -1; } -CommandLineArgs& DownstreamArgs::getArgsByName(char* name) +CommandLineArgs& DownstreamArgs::getArgsByName(const char* name) { const Index index = findName(name); SLANG_ASSERT(index >= 0); return m_entries[index].args; } -const CommandLineArgs& DownstreamArgs::getArgsByName(char* name) const +const CommandLineArgs& DownstreamArgs::getArgsByName(const char* name) const { const Index index = findName(name); SLANG_ASSERT(index >= 0); -- cgit v1.2.3