[clang] [llvm] [Clang] restrict use of attribute names reserved by the C++ standard (PR #106036)

Aaron Ballman via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 05:33:44 PST 2025


================
@@ -0,0 +1,100 @@
+// RUN: %clang_cc1 -triple x86_64-linux-gnu -std=c++11 -fsyntax-only -verify -pedantic %s -DTEST1
+// RUN: %clang_cc1 -triple x86_64-linux-gnu -std=c++11 -fsyntax-only -verify -pedantic %s -DTEST2
+// RUN: %clang_cc1 -triple x86_64-linux-gnu -std=c++11 -fsyntax-only -verify -pedantic %s -DTEST3
+// RUN: %clang_cc1 -triple x86_64-linux-gnu -std=c++11 -fsyntax-only -verify -pedantic %s -DTEST4
----------------
AaronBallman wrote:

It's worth noting that this diagnostic is on by default for everyone (the `-pedantic` isn't needed to issue the warning). Are we sure this issue is worth warning about by default or do we think users may find it to be too chatty?

https://github.com/llvm/llvm-project/pull/106036


More information about the llvm-commits mailing list