@@ -727,7 +727,7 @@ unsigned int CppCheck::checkClang(const FileWithDetails &file, int fileIndex)
727727 mSettings ,
728728 &s_timerResults);
729729 tokenizer.printDebugOutput (std::cout);
730- checkNormalTokens (tokenizer, nullptr ); // TODO: provide analyzer information
730+ checkNormalTokens (tokenizer, nullptr , " " ); // TODO: provide analyzer information
731731
732732 // create dumpfile
733733 std::ofstream fdump;
@@ -1203,7 +1203,7 @@ unsigned int CppCheck::checkFile(const FileWithDetails& file, const std::string
12031203 }
12041204
12051205 // Check normal tokens
1206- checkNormalTokens (tokenizer, analyzerInformation.get ());
1206+ checkNormalTokens (tokenizer, analyzerInformation.get (), currentConfig );
12071207 } catch (const InternalError &e) {
12081208 ErrorMessage errmsg = ErrorMessage::fromInternalError (e, &tokenizer.list , file.spath ());
12091209 mErrorLogger .reportErr (errmsg);
@@ -1327,7 +1327,7 @@ void CppCheck::internalError(const std::string &filename, const std::string &msg
13271327// CppCheck - A function that checks a normal token list
13281328// ---------------------------------------------------------------------------
13291329
1330- void CppCheck::checkNormalTokens (const Tokenizer &tokenizer, AnalyzerInformation* analyzerInformation)
1330+ void CppCheck::checkNormalTokens (const Tokenizer &tokenizer, AnalyzerInformation* analyzerInformation, const std::string& currentConfig )
13311331{
13321332 CheckUnusedFunctions unusedFunctionsChecker;
13331333
@@ -1392,7 +1392,7 @@ void CppCheck::checkNormalTokens(const Tokenizer &tokenizer, AnalyzerInformation
13921392 if (!doUnusedFunctionOnly) {
13931393 // cppcheck-suppress shadowFunction - TODO: fix this
13941394 for (const Check *check : Check::instances ()) {
1395- if (Check::FileInfo * const fi = check->getFileInfo (tokenizer, mSettings )) {
1395+ if (Check::FileInfo * const fi = check->getFileInfo (tokenizer, mSettings , currentConfig )) {
13961396 if (analyzerInformation)
13971397 analyzerInformation->setFileInfo (check->name (), fi->toString ());
13981398 if (mSettings .useSingleJob ())
0 commit comments