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

Oleksandr T. via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 06:37:49 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
----------------
a-tarasyuk wrote:

I've added `DefaultIgnore` for this diagnostic, to follow the behavior like `macro name is a reserved identifier` does. Is it ok?

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


More information about the llvm-commits mailing list