When generating .di file it's useful to benefit from backreferences to the source code (fully commented, with unittests nearby, source available etc).
Comment #1 by razvan.nitu1305 — 2022-10-10T05:32:57Z
I don't think .di files are meant for that purpose. Header files should generally be used by the compiler to speed up the build process. As a consequence I don't see any reason why comments or line directives should be included.
Even if we were to implement this enhancement request, we would probably need to another cli switch (like -Hv) and in my opinion that is not worth it.
Another reason to close this is the fact that nobody else has requested this feature in the last 7 years.
I am going to close this as WONTFIX, however, feel free to reopen if you disagree with my assessment.