| 602 | //--------------------------------------------------------------------------- |
| 603 | |
| 604 | static bool isNonConstFunctionCall(const Token *ftok, const Library &library) |
| 605 | { |
| 606 | if (library.isFunctionConst(ftok)) |
| 607 | return false; |
| 608 | const Token *obj = ftok->next()->astOperand1(); |
| 609 | while (obj && obj->str() == ".") |
| 610 | obj = obj->astOperand1(); |
| 611 | if (!obj) |
| 612 | return true; |
| 613 | if (obj->variable() && obj->variable()->isConst()) |
| 614 | return false; |
| 615 | if (ftok->function() && ftok->function()->isConst()) |
| 616 | return false; |
| 617 | if (ftok->isControlFlowKeyword()) |
| 618 | return false; |
| 619 | return true; |
| 620 | } |
| 621 | |
| 622 | static bool isNestedInLambda(const Scope* inner, const Scope* outer) |
| 623 | { |
no test coverage detected