Refactoring: Removed _settings member from the Tokenizer
This commit is contained in:
parent
8845e8bc89
commit
4f4a2391e0
|
@ -181,7 +181,6 @@ void CppCheck::check()
|
|||
void CppCheck::checkFile(const std::string &code, const char FileName[])
|
||||
{
|
||||
Tokenizer _tokenizer;
|
||||
_tokenizer.settings( _settings );
|
||||
|
||||
// Tokenize the file
|
||||
{
|
||||
|
|
|
@ -45,9 +45,6 @@ private:
|
|||
tokenizer.simplifyTokenList();
|
||||
|
||||
// Fill function list
|
||||
Settings settings;
|
||||
settings._checkCodingStyle = true;
|
||||
tokenizer.settings( settings );
|
||||
tokenizer.fillFunctionList();
|
||||
|
||||
// Clear the error buffer..
|
||||
|
|
|
@ -48,12 +48,6 @@ private:
|
|||
std::istringstream istr(code);
|
||||
tokenizer.tokenize( istr, "test.cpp" );
|
||||
|
||||
// Fill function list
|
||||
Settings settings;
|
||||
settings._checkCodingStyle = true;
|
||||
tokenizer.settings( settings );
|
||||
tokenizer.fillFunctionList();
|
||||
|
||||
// Clear the error buffer..
|
||||
errout.str("");
|
||||
|
||||
|
|
|
@ -50,7 +50,6 @@ private:
|
|||
Settings settings;
|
||||
settings._checkCodingStyle = true;
|
||||
settings._showAll = false;
|
||||
tokenizer.settings( settings );
|
||||
tokenizer.fillFunctionList();
|
||||
CheckMemoryLeakClass checkMemoryLeak( &tokenizer, settings, this );
|
||||
checkMemoryLeak.CheckMemoryLeak();
|
||||
|
|
|
@ -1128,11 +1128,6 @@ void Tokenizer::fillFunctionList()
|
|||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void Tokenizer::settings( const Settings &settings )
|
||||
{
|
||||
_settings = settings;
|
||||
}
|
||||
|
||||
// Deallocate lists..
|
||||
void Tokenizer::DeallocateTokens()
|
||||
{
|
||||
|
|
|
@ -74,7 +74,6 @@ public:
|
|||
|
||||
void fillFunctionList();
|
||||
const TOKEN *GetFunctionTokenByName( const char funcname[] ) const;
|
||||
void settings( const Settings &settings );
|
||||
const TOKEN *tokens() const;
|
||||
|
||||
|
||||
|
@ -103,7 +102,6 @@ private:
|
|||
std::map<std::string, unsigned int> _typeSize;
|
||||
std::vector<const TOKEN *> _functionList;
|
||||
std::vector<std::string> _files;
|
||||
Settings _settings;
|
||||
struct DefineSymbol * _dsymlist;
|
||||
TOKEN *_tokens;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue