Cppcheck
Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
TokenImpl Struct Reference

#include <token.h>

Classes

struct  CppcheckAttributes
 

Public Types

enum class  Cpp11init { UNKNOWN , CPP11INIT , NOINIT }
 

Public Member Functions

void setCppcheckAttribute (CppcheckAttributes::Type type, MathLib::bigint value)
 
bool getCppcheckAttribute (CppcheckAttributes::Type type, MathLib::bigint &value) const
 
 TokenImpl ()
 
 ~TokenImpl ()
 

Public Attributes

nonneg int mVarId {}
 
nonneg int mFileIndex {}
 
nonneg int mLineNumber {}
 
nonneg int mColumn {}
 
nonneg int mExprId {}
 
nonneg int mProgressValue {}
 A value from 0-100 that provides a rough idea about where in the token list this token is located. More...
 
nonneg int mIndex {}
 Token index. More...
 
unsigned char mBits {}
 Bitfield bit count. More...
 
TokenmAstOperand1 {}
 
TokenmAstOperand2 {}
 
TokenmAstParent {}
 
const ScopemScope {}
 
union {
   const Function *   mFunction
 
   const Variable *   mVariable
 
   const ::Type *   mType
 
   const Enumerator *   mEnumerator
 
}; 
 
std::string * mOriginalName {}
 
std::string mMacroName
 
ValueTypemValueType {}
 
std::list< ValueFlow::Value > * mValues {}
 
std::set< TemplateSimplifier::TokenAndName * > * mTemplateSimplifierPointers {}
 
std::shared_ptr< ScopeInfo2mScopeInfo
 
CppcheckAttributesmCppcheckAttributes {}
 
enum TokenImpl::Cpp11init mCpp11init = Cpp11init::UNKNOWN
 
TokenDebug mDebug {}
 

Static Public Attributes

static const std::list< ValueFlow::ValuemEmptyValueList
 

Detailed Description

Definition at line 62 of file token.h.

Member Enumeration Documentation

◆ Cpp11init

enum TokenImpl::Cpp11init
strong
Enumerator
UNKNOWN 
CPP11INIT 
NOINIT 

Definition at line 125 of file token.h.

Constructor & Destructor Documentation

◆ TokenImpl()

TokenImpl::TokenImpl ( )
inline

Definition at line 132 of file token.h.

◆ ~TokenImpl()

TokenImpl::~TokenImpl ( )

Member Function Documentation

◆ getCppcheckAttribute()

bool TokenImpl::getCppcheckAttribute ( CppcheckAttributes::Type  type,
MathLib::bigint value 
) const

◆ setCppcheckAttribute()

void TokenImpl::setCppcheckAttribute ( CppcheckAttributes::Type  type,
MathLib::bigint  value 
)

Member Data Documentation

◆ 

union { ... }

◆ mAstOperand1

Token* TokenImpl::mAstOperand1 {}

Definition at line 84 of file token.h.

Referenced by Token::astOperand1(), Token::astParent(), and Token::isUnaryPreOp().

◆ mAstOperand2

Token* TokenImpl::mAstOperand2 {}

Definition at line 85 of file token.h.

Referenced by Token::astOperand2(), and Token::astParent().

◆ mAstParent

Token* TokenImpl::mAstParent {}

Definition at line 86 of file token.h.

Referenced by Token::astParent(), and Token::astTop().

◆ mBits

unsigned char TokenImpl::mBits {}

Bitfield bit count.

Definition at line 81 of file token.h.

◆ mColumn

nonneg int TokenImpl::mColumn {}

Definition at line 66 of file token.h.

◆ mCpp11init

enum TokenImpl::Cpp11init TokenImpl::mCpp11init = Cpp11init::UNKNOWN

◆ mCppcheckAttributes

CppcheckAttributes* TokenImpl::mCppcheckAttributes {}

Definition at line 122 of file token.h.

Referenced by getCppcheckAttribute(), setCppcheckAttribute(), and ~TokenImpl().

◆ mDebug

TokenDebug TokenImpl::mDebug {}

Definition at line 127 of file token.h.

◆ mEmptyValueList

const std::list< ValueFlow::Value > TokenImpl::mEmptyValueList
static

Definition at line 108 of file token.h.

Referenced by Token::values().

◆ mEnumerator

const Enumerator* TokenImpl::mEnumerator

Definition at line 94 of file token.h.

◆ mExprId

nonneg int TokenImpl::mExprId {}

Definition at line 67 of file token.h.

Referenced by Token::stringify().

◆ mFileIndex

nonneg int TokenImpl::mFileIndex {}

Definition at line 64 of file token.h.

Referenced by Token::insertToken(), and Token::stringifyList().

◆ mFunction

const Function* TokenImpl::mFunction

Definition at line 91 of file token.h.

Referenced by Token::function().

◆ mIndex

nonneg int TokenImpl::mIndex {}

Token index.

Position in token list

Definition at line 78 of file token.h.

Referenced by Token::assignIndexes().

◆ mLineNumber

nonneg int TokenImpl::mLineNumber {}

Definition at line 65 of file token.h.

Referenced by Token::insertToken(), and Token::stringifyList().

◆ mMacroName

std::string TokenImpl::mMacroName

Definition at line 101 of file token.h.

◆ mOriginalName

std::string* TokenImpl::mOriginalName {}

Definition at line 98 of file token.h.

Referenced by ~TokenImpl().

◆ mProgressValue

nonneg int TokenImpl::mProgressValue {}

A value from 0-100 that provides a rough idea about where in the token list this token is located.

Definition at line 73 of file token.h.

Referenced by Token::insertToken(), Token::move(), and Token::replace().

◆ mScope

const Scope* TokenImpl::mScope {}

Definition at line 89 of file token.h.

◆ mScopeInfo

std::shared_ptr<ScopeInfo2> TokenImpl::mScopeInfo

Definition at line 114 of file token.h.

Referenced by Token::insertToken(), and Token::scopeInfo().

◆ mTemplateSimplifierPointers

std::set<TemplateSimplifier::TokenAndName*>* TokenImpl::mTemplateSimplifierPointers {}

Definition at line 111 of file token.h.

Referenced by Token::swapWithNext(), Token::takeData(), and ~TokenImpl().

◆ mType

const ::Type* TokenImpl::mType

Definition at line 93 of file token.h.

Referenced by Token::type().

◆ mValues

std::list<ValueFlow::Value>* TokenImpl::mValues {}

◆ mValueType

ValueType* TokenImpl::mValueType {}

Definition at line 104 of file token.h.

Referenced by Token::argumentType(), Token::setValueType(), and ~TokenImpl().

◆ mVariable

const Variable* TokenImpl::mVariable

Definition at line 92 of file token.h.

◆ mVarId

nonneg int TokenImpl::mVarId {}

Definition at line 63 of file token.h.

Referenced by Token::addValue(), Token::stringify(), and Token::update_property_info().


The documentation for this struct was generated from the following files: