================
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -foverflow-behavior-types -std=c++11 -ast-print %s -o - | 
FileCheck %s
+
+extern int __attribute__((overflow_behavior(no_wrap))) a;
+extern int __attribute__((overflow_behavior(wrap))) b;
+
+// CHECK: extern __no_wrap int a;
+// CHECK: extern __wrap int b;
----------------
mizvekov wrote:

Right, I see, never mind, what I am thinking of is not implemented right now, 
we don't preserve the attribute spelling even in AttributedType anyway.

I mean, I do agree the attribute spelling is a little ugly, and I would prefer 
something like the __wrap / __nowrap spelling.

This shouldn't be a problem, because we have precedent, for example we have 
`_Nonnull`.

But if there was discussion about why this was not added, I missed it, and this 
is not a blocking concern on my part anyway.

https://github.com/llvm/llvm-project/pull/148914
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to