p4lang / p4c

P4_16 reference compiler
https://p4.org/
Apache License 2.0
665 stars 441 forks source link

Preserve source locations of annotations in p4info #2418

Open smolkaj opened 4 years ago

smolkaj commented 4 years ago

P4Runtime recently added support for preserving the source location of annotations in p4info.proto (https://github.com/p4lang/p4runtime/pull/286). The rationale for this is explained in https://github.com/p4lang/p4c/issues/2333 and https://github.com/p4lang/p4runtime/issues/285.

We need to update p4c to populate the new source location fields in p4info.

smolkaj commented 4 years ago

I will prepare a PR for this.