clean up CppPreprocessor::addDefinesInFile

This commit is contained in:
Roy Qu 2022-10-22 10:19:47 +08:00
parent 51d0f2c2aa
commit 921a6b41c5
1 changed files with 0 additions and 13 deletions

View File

@ -872,19 +872,6 @@ void CppPreprocessor::addDefinesInFile(const QString &fileName)
return; return;
mProcessed.insert(fileName); mProcessed.insert(fileName);
//todo: why test this?
if (!mScannedFiles.contains(fileName))
return;
//May be redefined, so order is important
//first add the defines in the files it included
PFileIncludes fileIncludes = getFileIncludesEntry(fileName);
if (fileIncludes) {
foreach (const QString& s,fileIncludes->includeFiles.keys()) {
addDefinesInFile(s);
}
}
// then add the defines defined in it // then add the defines defined in it
PDefineMap defineList = mFileDefines.value(fileName, PDefineMap()); PDefineMap defineList = mFileDefines.value(fileName, PDefineMap());
if (defineList) { if (defineList) {