-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add file name to CodePosition #134
Comments
Hello, the feature is not completed yet. There is an information about origin of the line in preprocessor |
This may work for your usecase. But will not work in general : The content of an included file may not be legal verilog or systemVerilog source code. Disabling the consideration of include preprocessor directive is not a good idea. |
As @Thomasb81 mentioned content of include file may not be Verilog code. But there is yet an another problem. The actual file name and file name which can be overriden using Do you know if Once I do have answer for this questions the implementation is matter of 1h. |
@Thomasb81 you are completely right. But yes just adding the source file to position would work best. |
Include directive can be almost everywhere that is why the included file can contain only fragment of the code (e.g. an array initialization) which is not a valid verilog because it misses the surrounding code. |
Hi,
I am using HdlConvertor for a project, and I need to be able to know from which file comes which module, but `include directives clearly break this as all the included files are put in the same HdlContext, with no information (as far as I know) of where the module is.
I have an alternative to this (parse includes, use hdlconvertor on the included files, then remove the results from the main HdlContext), but having a way to do it may be useful as a feature of the library.
Thanks.
The text was updated successfully, but these errors were encountered: