rename function
This commit is contained in:
parent
9c1a08ca84
commit
324f68ca36
|
@ -855,7 +855,7 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.isEnabled("information") || settings.checkConfiguration) {
|
if (settings.isEnabled("information") || settings.checkConfiguration) {
|
||||||
const bool enableUnusedFunctionCheck = cppcheck.unusedFunctionCheckIsEnabled();
|
const bool enableUnusedFunctionCheck = cppcheck.isUnusedFunctionCheckEnabled();
|
||||||
|
|
||||||
if (settings.jointSuppressionReport) {
|
if (settings.jointSuppressionReport) {
|
||||||
for (std::map<std::string, std::size_t>::const_iterator i = _files.begin(); i != _files.end(); ++i) {
|
for (std::map<std::string, std::size_t>::const_iterator i = _files.begin(); i != _files.end(); ++i) {
|
||||||
|
|
|
@ -346,7 +346,7 @@ unsigned int CppCheck::processFile(const std::string& filename, const std::strin
|
||||||
// In jointSuppressionReport mode, unmatched suppressions are
|
// In jointSuppressionReport mode, unmatched suppressions are
|
||||||
// collected after all files are processed
|
// collected after all files are processed
|
||||||
if (!_settings.jointSuppressionReport && (_settings.isEnabled("information") || _settings.checkConfiguration)) {
|
if (!_settings.jointSuppressionReport && (_settings.isEnabled("information") || _settings.checkConfiguration)) {
|
||||||
reportUnmatchedSuppressions(_settings.nomsg.getUnmatchedLocalSuppressions(filename, unusedFunctionCheckIsEnabled()));
|
reportUnmatchedSuppressions(_settings.nomsg.getUnmatchedLocalSuppressions(filename, isUnusedFunctionCheckEnabled()));
|
||||||
}
|
}
|
||||||
|
|
||||||
_errorList.clear();
|
_errorList.clear();
|
||||||
|
@ -698,7 +698,7 @@ void CppCheck::analyseWholeProgram()
|
||||||
(*it)->analyseWholeProgram(fileInfo, _settings, *this);
|
(*it)->analyseWholeProgram(fileInfo, _settings, *this);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CppCheck::unusedFunctionCheckIsEnabled() const
|
bool CppCheck::isUnusedFunctionCheckEnabled() const
|
||||||
{
|
{
|
||||||
return (_settings.jobs == 1 && _settings.isEnabled("unusedFunction"));
|
return (_settings.jobs == 1 && _settings.isEnabled("unusedFunction"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,7 +130,7 @@ public:
|
||||||
|
|
||||||
/** Check if the user wants to check for unused functions
|
/** Check if the user wants to check for unused functions
|
||||||
* and if it's possible at all */
|
* and if it's possible at all */
|
||||||
bool unusedFunctionCheckIsEnabled() const;
|
bool isUnusedFunctionCheckEnabled() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue