| 37 | static const CWE CWE758(758U); // Reliance on Undefined, Unspecified, or Implementation-Defined Behavior |
| 38 | |
| 39 | static bool is32BitIntegerReturn(const Function* func, const Settings& settings) |
| 40 | { |
| 41 | if (settings.platform.sizeof_pointer != 8) |
| 42 | return false; |
| 43 | const ValueType* vt = func->arg->valueType(); |
| 44 | return vt && vt->pointer == 0 && vt->isIntegral() && vt->getSizeOf(settings, ValueType::Accuracy::ExactOrZero, ValueType::SizeOf::Pointer) == 4; |
| 45 | } |
| 46 | |
| 47 | static bool isFunctionPointer(const Token* tok) |
| 48 | { |
no test coverage detected