rename function

This commit is contained in:
Daniel Marjamäki 2016-10-28 12:10:19 +02:00
parent 9c1a08ca84
commit 324f68ca36
3 changed files with 4 additions and 4 deletions

View File

@ -855,7 +855,7 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
}
if (settings.isEnabled("information") || settings.checkConfiguration) {
const bool enableUnusedFunctionCheck = cppcheck.unusedFunctionCheckIsEnabled();
const bool enableUnusedFunctionCheck = cppcheck.isUnusedFunctionCheckEnabled();
if (settings.jointSuppressionReport) {
for (std::map<std::string, std::size_t>::const_iterator i = _files.begin(); i != _files.end(); ++i) {

View File

@ -346,7 +346,7 @@ unsigned int CppCheck::processFile(const std::string& filename, const std::strin
// In jointSuppressionReport mode, unmatched suppressions are
// collected after all files are processed
if (!_settings.jointSuppressionReport && (_settings.isEnabled("information") || _settings.checkConfiguration)) {
reportUnmatchedSuppressions(_settings.nomsg.getUnmatchedLocalSuppressions(filename, unusedFunctionCheckIsEnabled()));
reportUnmatchedSuppressions(_settings.nomsg.getUnmatchedLocalSuppressions(filename, isUnusedFunctionCheckEnabled()));
}
_errorList.clear();
@ -698,7 +698,7 @@ void CppCheck::analyseWholeProgram()
(*it)->analyseWholeProgram(fileInfo, _settings, *this);
}
bool CppCheck::unusedFunctionCheckIsEnabled() const
bool CppCheck::isUnusedFunctionCheckEnabled() const
{
return (_settings.jobs == 1 && _settings.isEnabled("unusedFunction"));
}

View File

@ -130,7 +130,7 @@ public:
/** Check if the user wants to check for unused functions
* and if it's possible at all */
bool unusedFunctionCheckIsEnabled() const;
bool isUnusedFunctionCheckEnabled() const;
private: