[clang] [Clang] disallow # operators in attribute argument lists (PR #147308)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 8 04:12:43 PDT 2025
================
@@ -477,3 +477,8 @@ namespace P2361 {
}
alignas(int) struct AlignAsAttribute {}; // expected-error {{misplaced attributes; expected attributes here}}
+
+namespace GH147217 {
+ [[clang::annotate(#)]] void a(); // expected-error {{'#' is not allowed in attribute argument lists}}
+ [[clang::annotate(##)]] void b(); // expected-error {{'##' is not allowed in attribute argument lists}}
----------------
AaronBallman wrote:
I'm not seeing that test, was there a missed push?
https://github.com/llvm/llvm-project/pull/147308
More information about the cfe-commits
mailing list