Debian Codegraph @

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