@@ -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 , mTimerResults , 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 ()) {
@@ -1635,8 +1635,8 @@ void CppCheck::executeAddonsWholeProgram(const std::list<FileWithDetails> &files
16351635 ctuInfoFiles.push_back (getCtuInfoFileName (dumpFileName));
16361636 }
16371637
1638- for (const auto &f : fileSettings) {
1639- const std::string &dumpFileName = getDumpFileName (mSettings , f .filename (), f. fsFileId );
1638+ for (const auto &fs : fileSettings) {
1639+ const std::string &dumpFileName = getDumpFileName (mSettings , fs .filename (), fs. file . fsFileId () );
16401640 ctuInfoFiles.push_back (getCtuInfoFileName (dumpFileName));
16411641 }
16421642
@@ -1748,7 +1748,7 @@ void CppCheck::analyseClangTidy(const FileSettings &fileSettings)
17481748 std::string line;
17491749
17501750 if (!mSettings .buildDir .empty ()) {
1751- const std::string analyzerInfoFile = AnalyzerInformation::getAnalyzerInfoFile (mSettings .buildDir , fileSettings.filename (), " " , fileSettings.fsFileId );
1751+ const std::string analyzerInfoFile = AnalyzerInformation::getAnalyzerInfoFile (mSettings .buildDir , fileSettings.filename (), " " , fileSettings.file . fsFileId () );
17521752 std::ofstream fcmd (analyzerInfoFile + " .clang-tidy-cmd" );
17531753 fcmd << istr.str ();
17541754 }
0 commit comments