Refactoring: Remove unused parameter for AnalyzerInfo::reportErr
This commit is contained in:
parent
ac525531d9
commit
7aae78fed3
|
@ -149,7 +149,7 @@ bool AnalyzerInformation::analyzeFile(const std::string &buildDir, const std::st
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnalyzerInformation::reportErr(const ErrorMessage &msg, bool /*verbose*/)
|
void AnalyzerInformation::reportErr(const ErrorMessage &msg)
|
||||||
{
|
{
|
||||||
if (mOutputStream.is_open())
|
if (mOutputStream.is_open())
|
||||||
mOutputStream << msg.toXML() << '\n';
|
mOutputStream << msg.toXML() << '\n';
|
||||||
|
|
|
@ -56,7 +56,7 @@ public:
|
||||||
/** Close current TU.analyzerinfo file */
|
/** Close current TU.analyzerinfo file */
|
||||||
void close();
|
void close();
|
||||||
bool analyzeFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfg, std::size_t hash, std::list<ErrorMessage> *errors);
|
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);
|
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);
|
static std::string getAnalyzerInfoFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfg);
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -1577,7 +1577,7 @@ void CppCheck::reportErr(const ErrorMessage &msg)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!mSettings.buildDir.empty())
|
if (!mSettings.buildDir.empty())
|
||||||
mAnalyzerInformation.reportErr(msg, mSettings.verbose);
|
mAnalyzerInformation.reportErr(msg);
|
||||||
|
|
||||||
const Suppressions::ErrorMessage errorMessage = msg.toSuppressionsErrorMessage();
|
const Suppressions::ErrorMessage errorMessage = msg.toSuppressionsErrorMessage();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue