Debian Codegraph @

clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/interfaces-global-init.rst

raw
1 .. title:: clang-tidy - cppcoreguidelines-interfaces-global-init
2
3 cppcoreguidelines-interfaces-global-init
4 ========================================
5
6 This check flags initializers of globals that access extern objects,
7 and therefore can lead to order-of-initialization problems.
8
9 This check implements `I.22
10 <https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Ri-global-init>`_
11 from the C++ Core Guidelines.
12
13 Note that currently this does not flag calls to non-constexpr functions, and
14 therefore globals could still be accessed from functions themselves.
15