[PATCH] D13925: Implement __attribute__((internal_linkage))

Evgeniy Stepanov via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 4 12:55:03 PST 2015


eugenis added a comment.

How do I check if a Var is a local variable?


================
Comment at: test/CodeGenCXX/attribute_internal_linkage.cpp:35-36
@@ +34,4 @@
+__attribute__((internal_linkage)) void A::f3() {
+}
+
+// Forward declaration w/o an attribute.
----------------
OK, done. Still allowing forward declaration of a class w/o the attribute though, it looks harmless.



Repository:
  rL LLVM

http://reviews.llvm.org/D13925





More information about the cfe-commits mailing list