Removed unused CppCheck::analyseFile
This commit is contained in:
parent
b8d39a2229
commit
a51df5f00d
@ -286,26 +286,6 @@ void CppCheck::internalError(const std::string &filename, const std::string &msg
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CppCheck::analyseFile(std::istream &fin, const std::string &filename)
|
|
||||||
{
|
|
||||||
// Preprocess file..
|
|
||||||
Preprocessor preprocessor(_settings, this);
|
|
||||||
std::list<std::string> configurations;
|
|
||||||
std::string filedata;
|
|
||||||
preprocessor.preprocess(fin, filedata, configurations, filename, _settings._includePaths);
|
|
||||||
const std::string code = preprocessor.getcode(filedata, "", filename);
|
|
||||||
|
|
||||||
if (_settings.checkConfiguration) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Tokenize..
|
|
||||||
Tokenizer tokenizer(&_settings, this);
|
|
||||||
std::istringstream istr(code);
|
|
||||||
tokenizer.tokenize(istr, filename.c_str());
|
|
||||||
tokenizer.simplifyTokenList2();
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// CppCheck - A function that checks a specified file
|
// CppCheck - A function that checks a specified file
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
@ -117,11 +117,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
void getErrorMessages();
|
void getErrorMessages();
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Analyse file - It's public so unit tests can be written
|
|
||||||
*/
|
|
||||||
void analyseFile(std::istream &f, const std::string &filename);
|
|
||||||
|
|
||||||
void tooManyConfigsError(const std::string &file, const std::size_t numberOfConfigurations);
|
void tooManyConfigsError(const std::string &file, const std::size_t numberOfConfigurations);
|
||||||
void purgedConfigurationMessage(const std::string &file, const std::string& configuration);
|
void purgedConfigurationMessage(const std::string &file, const std::string& configuration);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user