Fix false DECLFILENAME on recursive modules.

This commit is contained in:
Wilson Snyder 2017-11-21 22:01:28 -05:00
parent 7c443ab108
commit f8ad0a0923
1 changed files with 1 additions and 0 deletions

View File

@ -194,6 +194,7 @@ private:
UINFO(2,"Link Module: "<<nodep<<endl);
if (nodep->fileline()->filebasenameNoExt() != nodep->prettyName()
&& !v3Global.opt.isLibraryFile(nodep->fileline()->filename())
&& !nodep->recursiveClone()
&& !nodep->internal()) {
// We only complain once per file, otherwise library-like files have a huge mess of warnings
if (m_declfnWarned.find(nodep->fileline()->filename()) == m_declfnWarned.end()) {