Fix false DECLFILENAME on black-boxed modules (#2430).

This commit is contained in:
Wilson Snyder
2020-08-22 16:56:21 -04:00
parent 2abbd5c145
commit 2d7d2c5992
4 changed files with 34 additions and 0 deletions
+1
View File
@@ -201,6 +201,7 @@ private:
UINFO(2, "Link Module: " << nodep << endl);
if (nodep->fileline()->filebasenameNoExt() != nodep->prettyName()
&& !v3Global.opt.isLibraryFile(nodep->fileline()->filename())
&& !VN_IS(nodep, NotFoundModule)
&& !nodep->recursiveClone() && !nodep->internal()) {
// We only complain once per file, otherwise library-like files
// have a huge mess of warnings