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