[clang] Add ParserConversionAction (PR #169803)
Sergei Barannikov via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 7 12:51:23 PDT 2026
================
@@ -564,6 +564,9 @@ unsigned Parser::ParseAttributeArgsCommon(
nullptr,
Sema::ExpressionEvaluationContextRecord::EK_AttrArgument);
+ SaveAndRestore<ConversionAction> SavedTranslationState(
+ ParserConversionAction, CA_NoConversion);
----------------
s-barannikov wrote:
> The asm statement may load the value in an escape sequence into a register
> Note, that support for generating assembly output with -S is still a work in progress. The output isn't entirely valid hlasm syntax yet.
Thanks, that clarifies things.
> It would be nice to have a pragma or attribute syntax that allows someone mix encodings of string literals within a single compilation unit.
MSVC has `#pragma code_page` that seems to do exactly that, but I'm not sure if it can be used outside resource (*.rc) files. I agree it would be nice to have something similar.
https://github.com/llvm/llvm-project/pull/169803
More information about the cfe-commits
mailing list