@@ -127,7 +127,7 @@ static void add_to_json(
127
127
128
128
json_objectt entry{{" function" , json_stringt (function_identifier)}};
129
129
if (auto file_name_opt = file_name_string_opt (end_function->source_location ))
130
- entry[" fileName " ] = json_stringt{*file_name_opt};
130
+ entry[" file " ] = json_stringt{*file_name_opt};
131
131
132
132
json_arrayt &dead_ins=entry[" unreachableInstructions" ].make_array ();
133
133
@@ -270,11 +270,11 @@ static void json_output_function(
270
270
{
271
271
json_objectt entry{{" function" , json_stringt (function)}};
272
272
if (auto file_name_opt = file_name_string_opt (first_location))
273
- entry[" file name " ] = json_stringt{*file_name_opt};
273
+ entry[" file" ] = json_stringt{*file_name_opt};
274
274
if (auto line_opt = line_string_opt (first_location))
275
- entry[" first line " ] = json_numbert{*line_opt};
275
+ entry[" firstLine " ] = json_numbert{*line_opt};
276
276
if (auto line_opt = line_string_opt (last_location))
277
- entry[" last line " ] = json_numbert{*line_opt};
277
+ entry[" lastLine " ] = json_numbert{*line_opt};
278
278
279
279
dest.push_back (std::move (entry));
280
280
}
@@ -289,11 +289,11 @@ static void xml_output_function(
289
289
290
290
x.set_attribute (" name" , id2string (function));
291
291
if (auto file_name_opt = file_name_string_opt (first_location))
292
- x.set_attribute (" file name " , *file_name_opt);
292
+ x.set_attribute (" file" , *file_name_opt);
293
293
if (auto line_opt = line_string_opt (first_location))
294
- x.set_attribute (" first line " , *line_opt);
294
+ x.set_attribute (" first_line " , *line_opt);
295
295
if (auto line_opt = line_string_opt (last_location))
296
- x.set_attribute (" last line " , *line_opt);
296
+ x.set_attribute (" last_line " , *line_opt);
297
297
}
298
298
299
299
static void list_functions (
0 commit comments