| 1381 | } |
| 1382 | |
| 1383 | static void compileLogicAnd(Token *&tok, AST_state& state) |
| 1384 | { |
| 1385 | compileOr(tok, state); |
| 1386 | while (tok) { |
| 1387 | if (tok->str() == "&&" && !isQualifier(tok)) { |
| 1388 | if (!tok->astOperand1()) { |
| 1389 | Token* tok2 = tok->next(); |
| 1390 | if (!tok2) |
| 1391 | break; |
| 1392 | if (state.cpp && Token::Match(tok2, ",|)")) { |
| 1393 | tok = tok2; |
| 1394 | break; // rValue reference |
| 1395 | } |
| 1396 | } |
| 1397 | compileBinOp(tok, state, compileOr); |
| 1398 | } else break; |
| 1399 | } |
| 1400 | } |
| 1401 | |
| 1402 | static void compileLogicOr(Token *&tok, AST_state& state) |
| 1403 | { |
no test coverage detected