File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,10 @@ json_objectt json(const source_locationt &location)
84
84
{
85
85
json_objectt result;
86
86
87
+ if (!location.get_working_directory ().empty ())
88
+ result[" workingDirectory" ]=
89
+ json_stringt (id2string (location.get_working_directory ()));
90
+
87
91
if (!location.get_file ().empty ())
88
92
result[" file" ]=json_stringt (id2string (location.get_file ()));
89
93
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ xmlt xml(const source_locationt &location)
28
28
29
29
result.name =" location" ;
30
30
31
+ if (!location.get_working_directory ().empty ())
32
+ result.set_attribute (
33
+ " working-directory" , id2string (location.get_working_directory ()));
34
+
31
35
if (!location.get_file ().empty ())
32
36
result.set_attribute (" file" , id2string (location.get_file ()));
33
37
You can’t perform that action at this time.
0 commit comments