Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 505 Bytes

runtime-string.md

File metadata and controls

11 lines (6 loc) · 505 Bytes

Pattern: Static/global string declaration

Issue: -

Description

Checks for static/global STL string declarations at the top level. This is dangerous because the C++ language does not guarantee that globals with constructors are initialized before the first access, and also because globals can be destroyed when some threads are still running.

Further Reading