[PATCH] D18649: [clang-tidy] cppcoreguidelines-interfaces-global-init

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 7 11:20:11 PDT 2016


alexfh added inline comments.

================
Comment at: test/clang-tidy/cppcoreguidelines-interfaces-global-init.cpp:7
@@ +6,3 @@
+
+extern int ExternGlobal;
+static int GlobalScopeBadInit1 = ExternGlobal;
----------------
What happens if you add:

  extern int ExternGlobal;
  extern int ExternGlobal;
  int ExternGlobal = 123;

?


http://reviews.llvm.org/D18649





More information about the cfe-commits mailing list