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

Function compileAddSub

lib/tokenlist.cpp:1294–1302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292}
1293
1294static void compileAddSub(Token *&tok, AST_state& state)
1295{
1296 compileMulDiv(tok, state);
1297 while (tok) {
1298 if (Token::Match(tok, "+|-") && !tok->astOperand1()) {
1299 compileBinOp(tok, state, compileMulDiv);
1300 } else break;
1301 }
1302}
1303
1304static void compileShift(Token *&tok, AST_state& state)
1305{

Callers 1

compileShiftFunction · 0.85

Calls 3

compileMulDivFunction · 0.85
compileBinOpFunction · 0.85
astOperand1Method · 0.80

Tested by

no test coverage detected