clang-tidy cleanups. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-08-16 14:55:46 -04:00
parent d75a8624c1
commit 6013b54f7b
40 changed files with 100 additions and 90 deletions
+4 -2
View File
@@ -421,16 +421,18 @@ void V3PreProcImp::comment(const string& text) {
bool vlcomment = false;
if ((cp[0] == 'v' || cp[0] == 'V') && 0 == (strncmp(cp + 1, "erilator", 8))) {
cp += strlen("verilator");
if (*cp == '_')
if (*cp == '_') {
fileline()->v3error("Extra underscore in meta-comment;"
" use /*verilator {...}*/ not /*verilator_{...}*/");
}
vlcomment = true;
} else if (0 == (strncmp(cp, "synopsys", strlen("synopsys")))) {
cp += strlen("synopsys");
synth = true;
if (*cp == '_')
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;