mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Report errors when extra underscores used in meta-comments.
This commit is contained in:
@@ -323,9 +323,11 @@ void V3PreProcImp::comment(const string& text) {
|
||||
if ((cp[0]=='v' || cp[0]=='V')
|
||||
&& 0==(strncmp(cp+1,"erilator",8))) {
|
||||
cp+=strlen("verilator");
|
||||
if (*cp == '_') fileline()->v3error("Extra underscore in meta-comment; use /*verilator {...}*/ not /*verilator_{...}*/");
|
||||
} else if (0==(strncmp(cp,"synopsys",strlen("synopsys")))) {
|
||||
cp+=strlen("synopsys");
|
||||
synth = true;
|
||||
if (*cp == '_') fileline()->v3error("Extra underscore in meta-comment; use /*synopsys {...}*/ not /*synopsys_{...}*/");
|
||||
} else if (0==(strncmp(cp,"cadence",strlen("cadence")))) {
|
||||
cp+=strlen("cadence");
|
||||
synth = true;
|
||||
|
||||
Reference in New Issue
Block a user