courbet added inline comments. ================ Comment at: test/clang-tidy/cppcoreguidelines-interfaces-global-init.cpp:7 @@ +6,3 @@ + +extern int ExternGlobal; +static int GlobalScopeBadInit1 = ExternGlobal; ---------------- alexfh wrote: > What happens if you add: > > extern int ExternGlobal; > extern int ExternGlobal; > int ExternGlobal = 123; > > ? It does not trigger (as expected). I've added a test.
http://reviews.llvm.org/D18649 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits