Refactoring: Remove unused parameter for AnalyzerInfo::reportErr

This commit is contained in:
Daniel Marjamäki 2022-12-11 21:27:16 +01:00
parent ac525531d9
commit 7aae78fed3
3 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,7 @@ bool AnalyzerInformation::analyzeFile(const std::string &buildDir, const std::st
return true;
}
void AnalyzerInformation::reportErr(const ErrorMessage &msg, bool /*verbose*/)
void AnalyzerInformation::reportErr(const ErrorMessage &msg)
{
if (mOutputStream.is_open())
mOutputStream << msg.toXML() << '\n';

View File

@ -56,7 +56,7 @@ public:
/** Close current TU.analyzerinfo file */
void close();
bool analyzeFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfg, std::size_t hash, std::list<ErrorMessage> *errors);
void reportErr(const ErrorMessage &msg, bool verbose);
void reportErr(const ErrorMessage &msg);
void setFileInfo(const std::string &check, const std::string &fileInfo);
static std::string getAnalyzerInfoFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfg);
protected:

View File

@ -1577,7 +1577,7 @@ void CppCheck::reportErr(const ErrorMessage &msg)
return;
if (!mSettings.buildDir.empty())
mAnalyzerInformation.reportErr(msg, mSettings.verbose);
mAnalyzerInformation.reportErr(msg);
const Suppressions::ErrorMessage errorMessage = msg.toSuppressionsErrorMessage();