p4lang / p4c

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

Make isSystemFile() part of the parser options file. #4888

Closed fruffy closed 3 months ago

fruffy commented 3 months ago

This function is static and checks the p4IncludePath which is part of the parser options file. It should be part of this file such that it can be used in other contexts.

Among others, this call can be used by the formatter or to determine whether a particular source info objects comes from a systems file.