| 543 | |
| 544 | #define testKnownValueOfTok(...) testKnownValueOfTok_(__FILE__, __LINE__, __VA_ARGS__) |
| 545 | bool testKnownValueOfTok_(const char* file, |
| 546 | int line, |
| 547 | const char code[], |
| 548 | const char tokstr[], |
| 549 | int value) |
| 550 | { |
| 551 | std::list<ValueFlow::Value> values = removeImpossible(tokenValues_(file, line, code, tokstr)); |
| 552 | return std::any_of(values.begin(), values.end(), [&](const ValueFlow::Value& v) { |
| 553 | return v.isKnown() && v.isIntValue() && v.intvalue == value; |
| 554 | }); |
| 555 | } |
| 556 | |
| 557 | static std::list<ValueFlow::Value> removeSymbolicTok(std::list<ValueFlow::Value> values) |
| 558 | { |
nothing calls this directly
no test coverage detected