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

Function setTypes

lib/clangimport.cpp:1572–1583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1570}
1571
1572static void setTypes(TokenList &tokenList)
1573{
1574 for (Token *tok = tokenList.front(); tok; tok = tok->next()) {
1575 if (Token::simpleMatch(tok, "sizeof (")) {
1576 for (Token *typeToken = tok->tokAt(2); typeToken->str() != ")"; typeToken = typeToken->next()) {
1577 if (typeToken->type())
1578 continue;
1579 typeToken->type(typeToken->scope()->findType(typeToken->str()));
1580 }
1581 }
1582 }
1583}
1584
1585static void setValues(const Tokenizer &tokenizer, const SymbolDatabase *symbolDatabase)
1586{

Callers 1

parseClangAstDumpMethod · 0.85

Calls 8

frontMethod · 0.80
nextMethod · 0.80
typeMethod · 0.80
findTypeMethod · 0.80
scopeMethod · 0.80
simpleMatchFunction · 0.70
tokAtMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected