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

Method setPodTypes

lib/tokenize.cpp:10975–10992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10973}
10974
10975void Tokenizer::setPodTypes()
10976{
10977 for (Token *tok = list.front(); tok; tok = tok->next()) {
10978 if (!tok->isName() || tok->varId())
10979 continue;
10980
10981 // pod type
10982 const Library::PodType *podType = mSettings.library.podtype(tok->str());
10983 if (podType) {
10984 const Token *prev = tok->previous();
10985 while (prev && prev->isName())
10986 prev = prev->previous();
10987 if (prev && !Token::Match(prev, ";|{|}|,|("))
10988 continue;
10989 tok->isStandardType(true);
10990 }
10991 }
10992}
10993
10994const Token *Tokenizer::findSQLBlockEnd(const Token *tokSQLStart)
10995{

Callers

nothing calls this directly

Calls 5

frontMethod · 0.80
nextMethod · 0.80
podtypeMethod · 0.45
strMethod · 0.45
isStandardTypeMethod · 0.45

Tested by

no test coverage detected