@@ -838,7 +838,7 @@ unsigned int CppCheck::check(const FileSettings &fs)
838838 }
839839 // need to pass the externally provided ErrorLogger instead of our internal wrapper
840840 CppCheck temp (tempSettings, mSuppressions , mErrorLoggerDirect , mUseGlobalSuppressions , mExecuteCommand );
841- const unsigned int returnValue = temp.checkFile (fs.file , fs.cfg , fs.fsFileId );
841+ const unsigned int returnValue = temp.checkFile (fs.file , fs.cfg , fs.file . fsFileId () );
842842 if (mUnusedFunctionsCheck )
843843 mUnusedFunctionsCheck ->updateFunctionData (*temp.mUnusedFunctionsCheck );
844844 while (!temp.mFileInfo .empty ()) {
@@ -1645,8 +1645,8 @@ void CppCheck::executeAddonsWholeProgram(const std::list<FileWithDetails> &files
16451645 ctuInfoFiles.push_back (getCtuInfoFileName (dumpFileName));
16461646 }
16471647
1648- for (const auto &f : fileSettings) {
1649- const std::string &dumpFileName = getDumpFileName (mSettings , f .filename (), f. fsFileId );
1648+ for (const auto &fs : fileSettings) {
1649+ const std::string &dumpFileName = getDumpFileName (mSettings , fs .filename (), fs. file . fsFileId () );
16501650 ctuInfoFiles.push_back (getCtuInfoFileName (dumpFileName));
16511651 }
16521652
@@ -1758,7 +1758,7 @@ void CppCheck::analyseClangTidy(const FileSettings &fileSettings)
17581758 std::string line;
17591759
17601760 if (!mSettings .buildDir .empty ()) {
1761- const std::string analyzerInfoFile = AnalyzerInformation::getAnalyzerInfoFile (mSettings .buildDir , fileSettings.filename (), " " , fileSettings.fsFileId );
1761+ const std::string analyzerInfoFile = AnalyzerInformation::getAnalyzerInfoFile (mSettings .buildDir , fileSettings.filename (), " " , fileSettings.file . fsFileId () );
17621762 std::ofstream fcmd (analyzerInfoFile + " .clang-tidy-cmd" );
17631763 fcmd << istr.str ();
17641764 }
0 commit comments