[Issue 21597] Compiler flag should output a "normalized" file without unittests and comments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 31 00:59:05 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21597

--- Comment #4 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to moonlightsentinel from comment #3)
> Why should this be included in the compiler instead of being a seperate
> project using libdparse?
> 
> See e.g. the test extractor used by the `publictests` target for
> druntime/phobos.

A syntactic tool would be incomplete but probably still useful. It won't be
able to do much with mixin-generated code.

As with other tools (dependency detection/management) the conclusion is that
only the compiler has access to all information needed.

--


More information about the Digitalmars-d-bugs mailing list