@@ -378,13 +378,17 @@ int get_symbols (const std::string &infile,
378
378
uint32_t last_line;
379
379
uint32_t first_column;
380
380
uint32_t last_column;
381
- lm.pos_to_linecol (a.second ->base .loc .first , first_line, first_column);
382
- lm.pos_to_linecol (a.second ->base .loc .last , last_line, last_column);
381
+ std::string filename;
382
+ lm.pos_to_linecol (a.second ->base .loc .first , first_line,
383
+ first_column, filename);
384
+ lm.pos_to_linecol (a.second ->base .loc .last , last_line,
385
+ last_column, filename);
383
386
loc.first_column = first_column;
384
387
loc.last_column = last_column;
385
388
loc.first_line = first_line-1 ;
386
389
loc.last_line = last_line-1 ;
387
390
loc.symbol_name = symbol_name;
391
+ loc.filename = filename;
388
392
symbol_lists.push_back (loc);
389
393
}
390
394
rapidjson::Document test_output (rapidjson::kArrayType );
@@ -478,12 +482,16 @@ int get_errors (const std::string &infile,
478
482
uint32_t first_column;
479
483
uint32_t last_line;
480
484
uint32_t last_column;
481
- lm.pos_to_linecol (span.loc .first , first_line, first_column);
482
- lm.pos_to_linecol (span.loc .last , last_line, last_column);
485
+ std::string filename;
486
+ lm.pos_to_linecol (span.loc .first , first_line, first_column,
487
+ filename);
488
+ lm.pos_to_linecol (span.loc .last , last_line, last_column,
489
+ filename);
483
490
h.first_column = first_column;
484
491
h.last_column = last_column;
485
492
h.first_line = first_line-1 ;
486
493
h.last_line = last_line-1 ;
494
+ h.filename = filename;
487
495
diag_lists.push_back (h);
488
496
}
489
497
}
0 commit comments