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) {
|
||||
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) {
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue