[clang] [clang] Differentiate between identifier and string EnumArgument (PR #68550)

Sergei Barannikov via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 8 20:18:38 PDT 2023


================
@@ -45,7 +45,7 @@ int __attribute__((pcs("aapcs", "aapcs"))) pcs1(void); // expected-error {{'pcs'
 int __attribute__((pcs())) pcs2(void); // expected-error {{'pcs' attribute takes one argument}}
 int __attribute__((pcs(pcs1))) pcs3(void); // expected-error {{'pcs' attribute requires a string}} \
----------------
s-barannikov wrote:

Here is an example when a string argument is not parsed as unevaluated string literal.

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


More information about the cfe-commits mailing list