https://bugs.llvm.org/show_bug.cgi?id=52549
Bug ID: 52549
Summary: [clang-cl] Predefine _MSVC_EXECUTION_CHARACTER_SET to
the encoding for narrow string literals
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangb...@nondot.org
Reporter: ca...@carter.net
CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
richard-l...@metafoo.co.uk
As of VS 2022 17.1 the MSVC compiler will predefine a macro
`_MSVC_EXECUTION_CHARACTER_SET` to the codepage corresponding to the encoding
used as the ordinary literal encoding (as defined in N4901 [lex.charset]/5).
For example, the value `65001` is used for UTF-8, and `1252` for the default
English Windows-1252 encoding. It would be nice if clang-cl could also
predefine this macro similarly.
If I understand correctly, clang-cl always uses UTF-8 as its ordinary literal
encoding (See PR41536) so this shouldn't be a big ask =)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs