CheckClass : Refactoring - Removed include and moved struct VAR into the class
This commit is contained in:
parent
d3f68a9a5d
commit
bcccb4bc91
|
@ -47,7 +47,7 @@ CheckClass::~CheckClass()
|
|||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
struct VAR *CheckClass::ClassChecking_GetVarList(const TOKEN *tok1)
|
||||
struct CheckClass::VAR *CheckClass::ClassChecking_GetVarList(const TOKEN *tok1)
|
||||
{
|
||||
// Get variable list..
|
||||
struct VAR *varlist = NULL;
|
||||
|
|
15
CheckClass.h
15
CheckClass.h
|
@ -24,14 +24,6 @@
|
|||
#include "tokenize.h"
|
||||
#include "settings.h"
|
||||
#include "errorlogger.h"
|
||||
#include <list>
|
||||
|
||||
struct VAR
|
||||
{
|
||||
const char *name;
|
||||
bool init;
|
||||
struct VAR *next;
|
||||
};
|
||||
|
||||
class CheckClass
|
||||
{
|
||||
|
@ -48,6 +40,13 @@ public:
|
|||
void CheckOperatorEq1(); // Warning upon "void operator=(.."
|
||||
|
||||
private:
|
||||
struct VAR
|
||||
{
|
||||
const char *name;
|
||||
bool init;
|
||||
struct VAR *next;
|
||||
};
|
||||
|
||||
void ClassChecking_VarList_Initialize(const TOKEN *tok1, const TOKEN *ftok, struct VAR *varlist, const char classname[], std::list<std::string> &callstack);
|
||||
void InitVar(struct VAR *varlist, const char varname[]);
|
||||
const TOKEN *FindClassFunction( const TOKEN *tok, const char classname[], const char funcname[], int &indentlevel );
|
||||
|
|
Loading…
Reference in New Issue