p4lang / p4analyzer

A Language Server Protocol (LSP) compliant analyzer for the P4 language
Apache License 2.0
20 stars 3 forks source link

Allow Analyzer to reference included files in preprocessor #15

Closed timjroberts closed 1 year ago

timjroberts commented 1 year ago

While preprocessing a file that makes use of '#include' directives, the Analyzer will currently raise a 'not found' error instead of resolving the included file (via its path), from its environment.

The WorkspaceManager that is part of the 'analyzer-host' crate can be used to perform this resolution.

timjroberts commented 1 year ago

Future work has been identified in #31.