[PATCH] D23385: Implement __has_constant_initializer(obj) expression traits.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 11 18:57:07 PDT 2016


EricWF marked an inline comment as done.

================
Comment at: lib/Sema/SemaExprCXX.cpp:4775
@@ +4774,3 @@
+      // duration. AObjects with automatic or dynamic lifetime never have
+      // a 'constant initializer'.
+      if ((VD->hasGlobalStorage() ||
----------------
I've added docs to LanguageExtensions.rst specifying the semantics I intend for the trait.


https://reviews.llvm.org/D23385





More information about the cfe-commits mailing list