Rename CppCheck::processFile to CppCheck::checkFile

This commit is contained in:
Daniel Marjamäki 2018-04-21 13:28:26 +02:00
parent a451a5b598
commit 8cc7131ee9
2 changed files with 7 additions and 7 deletions

View File

@ -80,13 +80,13 @@ const char * CppCheck::extraVersion()
unsigned int CppCheck::check(const std::string &path)
{
std::ifstream fin(path);
return processFile(Path::simplifyPath(path), emptyString, fin);
return checkFile(Path::simplifyPath(path), emptyString, fin);
}
unsigned int CppCheck::check(const std::string &path, const std::string &content)
{
std::istringstream iss(content);
return processFile(Path::simplifyPath(path), emptyString, iss);
return checkFile(Path::simplifyPath(path), emptyString, iss);
}
unsigned int CppCheck::check(const ImportProject::FileSettings &fs)
@ -102,10 +102,10 @@ unsigned int CppCheck::check(const ImportProject::FileSettings &fs)
temp._settings.platform(fs.platformType);
}
std::ifstream fin(fs.filename);
return temp.processFile(Path::simplifyPath(fs.filename), fs.cfg, fin);
return temp.checkFile(Path::simplifyPath(fs.filename), fs.cfg, fin);
}
unsigned int CppCheck::processFile(const std::string& filename, const std::string &cfgname, std::istream& fileStream)
unsigned int CppCheck::checkFile(const std::string& filename, const std::string &cfgname, std::istream& fileStream)
{
exitcode = 0;

View File

@ -149,13 +149,13 @@ private:
void internalError(const std::string &filename, const std::string &msg);
/**
* @brief Process one file.
* @brief Check a file using stream
* @param filename file name
* @param cfgname cfg name
* @param fileStream stream the file content can be read from
* @return amount of errors found
* @return number of errors found
*/
unsigned int processFile(const std::string& filename, const std::string &cfgname, std::istream& fileStream);
unsigned int checkFile(const std::string& filename, const std::string &cfgname, std::istream& fileStream);
/**
* @brief Check raw tokens