diff options
Diffstat (limited to 'docs/checks/README-wrong-qglobalstatic.md')
-rw-r--r-- | docs/checks/README-wrong-qglobalstatic.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/checks/README-wrong-qglobalstatic.md b/docs/checks/README-wrong-qglobalstatic.md new file mode 100644 index 00000000..70734870 --- /dev/null +++ b/docs/checks/README-wrong-qglobalstatic.md @@ -0,0 +1,14 @@ +# wrong-qglobalstatic + +Finds `Q_GLOBAL_STATIC`s 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 |