Project

General

Profile

Feature #17933

Have fhicl-expand print markings for start and end of inclusion

Added by Gianluca Petrillo almost 2 years ago. Updated almost 2 years ago.

Status:
Accepted
Priority:
Low
Assignee:
-
Target version:
-
Start date:
10/17/2017
Due date:
% Done:

0%

Estimated time:
16.00 h
Duration:

Description

The fhicl-expand utility expands inline the #include directives, but it does not say it's doing it.
When debugging some problem, that information might be useful. For example, in the case illustrated in issue #17893, it would allow to quickly know what file included the FHiCL file in the error message.
This is a request for an option --annotate-include (better name welcome) which would have fhicl-expand insert in the expansion annotations like:

### fhicl-expand: including "/path/to/include1.fcl" from "master.fcl" line 2

and
### fhicl-expand: end of included "/path/to/include1.fcl"

Note that in the use case in issue #17893, fhicl-dump would not help since it fails parsing and just prints an error message.

History

#1 Updated by Kyle Knoepfel almost 2 years ago

  • Status changed from New to Accepted
  • Estimated time set to 16.00 h


Also available in: Atom PDF