Bug 19298 – C preprocessor directive is not supported - confusing warning message

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-10-10T16:15:04Z
Last change time
2024-12-13T19:00:49Z
Keywords
diagnostic
Assigned to
No Owner
Creator
Roman
Moved to GitHub: dmd#19492 →

Comments

Comment #0 by freeslave93 — 2018-10-10T16:15:04Z
Having a file /** * --- # Comment * --- */ void main() { } Trying to get documentation as dmd -o- -w -Dddocs main.d Leads to the warning (1): Warning: C preprocessor directive #Comment is not supported I understand that it's supposed to be a valid D code inside DDoc comment, but dmd should at least report the file name where error happened. Also the meaning of the number in parentheses is not obvious. I found a similar issue https://issues.dlang.org/show_bug.cgi?id=18836 marked as solved but dmd needs improvements on reporting this error: report the file name and position of so-called directive in the code, so users could find the cause of warning.
Comment #1 by robert.schadek — 2024-12-13T19:00:49Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19492 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB