| 3323 | } |
| 3324 | |
| 3325 | static bool isLargeObject(const Variable* var, const Settings& settings) |
| 3326 | { |
| 3327 | if (!var || var->isGlobal() || !var->valueType()) |
| 3328 | return false; |
| 3329 | ValueType vt = *var->valueType(); |
| 3330 | vt.reference = Reference::None; |
| 3331 | return vt.getSizeOf(settings, ValueType::Accuracy::LowerBound, ValueType::SizeOf::Pointer) > 2 * settings.platform.sizeof_pointer; |
| 3332 | } |
| 3333 | |
| 3334 | //--------------------------------------------------------------------------- |
| 3335 | // This check rule works for checking the "const A a = getA()" usage when getA() returns "const A &" or "A &". |
no test coverage detected