Warning, /sdk/clazy/docs/checks/README-non-pod-global-static.md is written in an unsupported language. File is not indexed.

0001 # non-pod-global-static
0002 
0003 Warns about non-POD [1] global statics.
0004 CTORS from globals are run before main, on library load, slowing down startup.
0005 This is more a problem for libraries, since usually the app won't use every feature the library provides,
0006 so it's a waste of resources to initialize CTORs from unused features.
0007 
0008 It's tolerated to have global statics in executables, however, clazy doesn't know if it's compiling
0009 an executable or a library, so it's your job to run this check only on libraries. It doesn't harm, though,
0010 to also remove global statics from executables, because they're usually evil.
0011 
0012 The same goes for DTORs at library unload time. A good way to fix them is by using `Q_GLOBAL_STATIC`.
0013 
0014 
0015 [1] The term "POD" is too strict. The correct term is "types with a trivial dtor and trivial ctor", and that's how this check is implemented.