From e903cc86d6defb5a56710cec92a599a3e8ba8466 Mon Sep 17 00:00:00 2001 From: Kaartic Sivaraam Date: Sat, 6 May 2017 20:44:48 +0530 Subject: [PATCH 1/8] Formatted the JSON to make it more readable * Indentation is now 2 spaces instead of 4 spaces to make the formatting look more appealing --- README.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 576c203ae..c770ef1bc 100644 --- a/README.md +++ b/README.md @@ -91,10 +91,22 @@ If JSON is present in the request's `Accept` header, the compilation results are ``` { - code: 0 if successful, else compiler return code, - stdout: [ { text: "Output", - (optional) tag: {line: source line, text: "parsed error for that line"} } ], - stderr: (as above), - asm: [ { text: "assembly text", source: source line number or null if none } ] + code: 0 if successful, else compiler return code, + stdout: [ + { + text: "Output", + (optional) tag: { + line: source line, + text: "parsed error for that line" + } + } + ], + stderr: (as above), + asm: [ + { + text: "assembly text", + source: source line number or null if none + } + ] } ``` From 9961adb49ba077c265781cf35130b600e84b9c5b Mon Sep 17 00:00:00 2001 From: Kaartic Sivaraam Date: Wed, 10 May 2017 15:29:35 +0530 Subject: [PATCH 2/8] Made the array explicit The multiplicity of values of JSON arrays was made explicit. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c770ef1bc..803ff02ff 100644 --- a/README.md +++ b/README.md @@ -99,14 +99,16 @@ If JSON is present in the request's `Accept` header, the compilation results are line: source line, text: "parsed error for that line" } - } + }, + ... ], - stderr: (as above), + stderr: (format is similar to that of stdout), asm: [ { text: "assembly text", source: source line number or null if none - } + }, + ... ] } ``` From 756ce68318b81dd9bfbd7b0a00e92b756a20cbcf Mon Sep 17 00:00:00 2001 From: Kaartic Sivaraam Date: Thu, 11 May 2017 08:22:20 +0530 Subject: [PATCH 3/8] Quoted the JSON property names The JSON property names are strings and are always quoted so the format must also display them quoted which has been done --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 803ff02ff..5cf519173 100644 --- a/README.md +++ b/README.md @@ -91,8 +91,8 @@ If JSON is present in the request's `Accept` header, the compilation results are ``` { - code: 0 if successful, else compiler return code, - stdout: [ + "code": 0 if successful, else compiler return code, + "stdout": [ { text: "Output", (optional) tag: { @@ -102,8 +102,8 @@ If JSON is present in the request's `Accept` header, the compilation results are }, ... ], - stderr: (format is similar to that of stdout), - asm: [ + "stderr": (format is similar to that of stdout), + "asm": [ { text: "assembly text", source: source line number or null if none From 01d873e7b0312cd60051c268d30d70d45d3cd180 Mon Sep 17 00:00:00 2001 From: Kaartic Sivaraam Date: Thu, 11 May 2017 15:16:42 +0530 Subject: [PATCH 4/8] Few changes to README file * Quoted the strings that were missed previously * Modified the text descriptions to be more consistent * Displayed optional values using ** --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5cf519173..360d6958b 100644 --- a/README.md +++ b/README.md @@ -89,24 +89,26 @@ foo(): If JSON is present in the request's `Accept` header, the compilation results are of the form: +Optional values are marked with a '**' + ``` { "code": 0 if successful, else compiler return code, "stdout": [ { - text: "Output", - (optional) tag: { - line: source line, - text: "parsed error for that line" - } + "text": Output, + ** "tag": { + "line": Source line, + "text": Parsed error for that line + } }, ... ], "stderr": (format is similar to that of stdout), "asm": [ { - text: "assembly text", - source: source line number or null if none + "text": Assembly text, + "source": Source line number or null if none }, ... ] From 50b6141b01cd31edaf2cc9b5ea1dcad2aeabe001 Mon Sep 17 00:00:00 2001 From: Kaartic Sivaraam Date: Thu, 11 May 2017 15:17:48 +0530 Subject: [PATCH 5/8] Added information about optOutput to README Info about optOutput that gets generated by optimiser was displayed --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 360d6958b..088b450bb 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,21 @@ Optional values are marked with a '**' "source": Source line number or null if none }, ... - ] + ], + ** "optOutput" : { + "optType": [ Missed | Passed | Analysis ] (Specifies the type of optimisation output) + "displayString" : String displayed in output + + (LLVM specific) + "Pass" : What pass of the optimiser generated this output, + "Name" : Name of the output (mostly represents the reason for the output), + "DebugLoc" : { + "File": Name of file, + "Line": Line number, + "Column": Column number in line + }, + "Function": Name of function for which optimisation output is provided + "Args": Array of objects representing the arguments that the optimser used when trying to optimise. + } } ``` From 969c64416dcf4413388281acc09f99ae95441ace Mon Sep 17 00:00:00 2001 From: Kaartic Sivaraam Date: Thu, 11 May 2017 16:40:48 +0530 Subject: [PATCH 6/8] README: Removed optType and modified Pass As requested by @jaredwy --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 088b450bb..0f84bb158 100644 --- a/README.md +++ b/README.md @@ -113,11 +113,8 @@ Optional values are marked with a '**' ... ], ** "optOutput" : { - "optType": [ Missed | Passed | Analysis ] (Specifies the type of optimisation output) "displayString" : String displayed in output - - (LLVM specific) - "Pass" : What pass of the optimiser generated this output, + "Pass" : [ Missed | Passed | Analysis ] (Specifies the type of optimisation output) "Name" : Name of the output (mostly represents the reason for the output), "DebugLoc" : { "File": Name of file, From bd70615032cbcac0f2d7ad62b83c29868a74b92b Mon Sep 17 00:00:00 2001 From: Kaartic Sivaraam Date: Thu, 11 May 2017 19:08:12 +0530 Subject: [PATCH 7/8] README: Corrected typos --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0f84bb158..b12c63b15 100644 --- a/README.md +++ b/README.md @@ -113,16 +113,16 @@ Optional values are marked with a '**' ... ], ** "optOutput" : { - "displayString" : String displayed in output - "Pass" : [ Missed | Passed | Analysis ] (Specifies the type of optimisation output) + "displayString" : String displayed in output, + "Pass" : [ Missed | Passed | Analysis ] (Specifies the type of optimisation output), "Name" : Name of the output (mostly represents the reason for the output), "DebugLoc" : { "File": Name of file, "Line": Line number, "Column": Column number in line }, - "Function": Name of function for which optimisation output is provided - "Args": Array of objects representing the arguments that the optimser used when trying to optimise. + "Function": Name of function for which optimisation output is provided, + "Args": Array of objects representing the arguments that the optimiser used when trying to optimise } } ``` From eacd8380bc76b0d7c056092c96589a25ac55176d Mon Sep 17 00:00:00 2001 From: Kaartic Sivaraam Date: Thu, 11 May 2017 19:08:35 +0530 Subject: [PATCH 8/8] README: Added info about the okToCache field --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b12c63b15..166054f8e 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ Optional values are marked with a '**' }, ... ], + "okToCache": true if output could be locally cached else false, ** "optOutput" : { "displayString" : String displayed in output, "Pass" : [ Missed | Passed | Analysis ] (Specifies the type of optimisation output),