Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 262 Bytes

README-wrong-qglobalstatic.md

File metadata and controls

14 lines (10 loc) · 262 Bytes

wrong-qglobalstatic

Finds Q_GLOBAL_STATICs being used with trivial types. This is unnecessary and creates code bloat.

Example:

struct Trivial
{
    int v;
};

Q_GLOBAL_STATIC(Trivial, t); // Wrong
static Trivial t; // Correct