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 rule is part of the "Interfaces" profile of the C++ Core Guidelines, see 10https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Ri-global-init 11 12Note that currently this does not flag calls to non-constexpr functions, and 13therefore globals could still be accessed from functions themselves. 14 15