[Issue 15460] Ddoc: merge the opening comment "<!-- Generated by Ddoc from filename.dd -->" into the default definition of DDOC
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Dec 18 18:38:03 PST 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15460
--- Comment #13 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Andrei Alexandrescu from comment #2)
> (In reply to Adam D. Ruppe from comment #1)
> > This is the code that does it:
> > 
> >     buf.printf("$(DDOC_COMMENT Generated by Ddoc from %s)\n", m.srcfile.
> > toChars());
> > 
> > 
> > You could just define `DDOC_COMMENT=` to strip all comments from the
> > generated code, since plain text doesn't have a comment facility anyway...
> 
> Just do it!
What does that mean?
Anyway, another option would be to move it its own separate macro, so that it
can be disabled explicitly without affecting anything else.
--
    
    
More information about the Digitalmars-d-bugs
mailing list