MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / Token

Method Token

lib/token.cpp:64–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62const std::string Token::mEmptyString;
63
64Token::Token(const TokenList& tokenlist, std::shared_ptr<TokensFrontBack> tokensFrontBack)
65 : mList(tokenlist)
66 , mTokensFrontBack(std::move(tokensFrontBack))
67 , mImpl(new Impl)
68 , mIsC(mList.isC())
69 , mIsCpp(mList.isCPP())
70{}
71
72Token::Token(const Token* tok)
73 : Token(tok->mList, const_cast<Token*>(tok)->mTokensFrontBack)

Callers

nothing calls this directly

Calls 5

fileIndexFunction · 0.85
linenrFunction · 0.85
isCMethod · 0.80
isCPPMethod · 0.80
fileIndexMethod · 0.80

Tested by

no test coverage detected