[clang] Add ParserConversionAction (PR #169803)

Sergei Barannikov via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 3 11:43:18 PDT 2026


================
@@ -564,6 +564,9 @@ unsigned Parser::ParseAttributeArgsCommon(
               nullptr,
               Sema::ExpressionEvaluationContextRecord::EK_AttrArgument);
 
+          SaveAndRestore<ConversionAction> SavedTranslationState(
+              ParserConversionAction, CA_NoConversion);
----------------
s-barannikov wrote:

I'm not sure this is necessary anymore.

String literals in attributes should be (and in most cases are) parsed as unevaluated string literals and thus should not be translated. Does the added test fail without these changes? If so, it might be worth looking why.


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


More information about the cfe-commits mailing list