You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing in all c# generated classes the comment // Generated from [FULLPATH] near the top of each file.
This is bad from at least two angles:
I don't want to show my local directory structure to everybody
it causes source control to think that file has been modified even if it has been only generated on a different computer (other content is the same)
And I'm not seeing an option to disable this auto generated part of comment (or is there?).
Hence, please avoid generating that line all together or add an option for disabling it.
Of course, assuming this comment comes from the tool, not ANTL4 c# generator. But even in the later case I assume there is an option to avoid it.
The text was updated successfully, but these errors were encountered:
Looking at ANTLR4 tool C# template it seems that the comments are hardcoded. I'll keep this issue open for a little bit longer and if I can't find an option to disable comments, I'll close it.
Would it be possible to set directory to project directory (or to directory where .g4 file is) and use relative path to .g4 file(s)? This way the //generated from... would contain relative path that doesn't change and also doesn't expose one's directory structure.
I'm seeing in all c# generated classes the comment
// Generated from [FULLPATH]
near the top of each file.This is bad from at least two angles:
And I'm not seeing an option to disable this auto generated part of comment (or is there?).
Hence, please avoid generating that line all together or add an option for disabling it.
Of course, assuming this comment comes from the tool, not ANTL4 c# generator. But even in the later case I assume there is an option to avoid it.
The text was updated successfully, but these errors were encountered: