16 lines · plain
1.. title:: clang-tidy - cppcoreguidelines-interfaces-global-init2 3cppcoreguidelines-interfaces-global-init4========================================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.2210<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, and14therefore globals could still be accessed from functions themselves.15 16