[clang-tidy] cppcoreguidelines-interfaces-global-init

Description

[clang-tidy] cppcoreguidelines-interfaces-global-init

Summary:
This check flags initializers of globals that access extern objects, and therefore can lead to order-of-initialization problems (this recommandation is part of CPP core guidelines).
Note that this only checks half of the guideline for now (it does not enforce using constexpr functions).

Reviewers: aaron.ballman, alexfh

Subscribers: aaron.ballman, etienneb, Eugene.Zelenko, cfe-commits

Patch by Clement Courbet!

Differential Revision: http://reviews.llvm.org/D18649

Details

Committed
alexfhApr 8 2016, 2:51 AM
Differential Revision
D18649: [clang-tidy] cppcoreguidelines-interfaces-global-init
Parents
rL265773: [llvm-c] Expose LLVMContextGetDiagnostic{Handler,Context}
Branches
Unknown
Tags
Unknown