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

Function compileMulDiv

lib/tokenlist.cpp:1275–1292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1273}
1274
1275static void compileMulDiv(Token *&tok, AST_state& state)
1276{
1277 compilePointerToElem(tok, state);
1278 while (tok) {
1279 if (Token::Match(tok, "[/%]") || (tok->str() == "*" && !tok->astOperand1() && !isQualifier(tok))) {
1280 if (Token::Match(tok, "* [*,)]")) {
1281 Token* tok2 = tok->next();
1282 while (tok2->next() && tok2->str() == "*")
1283 tok2 = tok2->next();
1284 if (Token::Match(tok2, "[>),]")) {
1285 tok = tok2;
1286 break;
1287 }
1288 }
1289 compileBinOp(tok, state, compilePointerToElem);
1290 } else break;
1291 }
1292}
1293
1294static void compileAddSub(Token *&tok, AST_state& state)
1295{

Callers 1

compileAddSubFunction · 0.85

Calls 6

compilePointerToElemFunction · 0.85
isQualifierFunction · 0.85
compileBinOpFunction · 0.85
astOperand1Method · 0.80
nextMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected