[clang] [llvm] Enable fexec-charset option (PR #138895)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 10 17:14:26 PST 2026
================
@@ -1557,7 +1557,8 @@ void Preprocessor::HandleLineDirective() {
return;
} else {
// Parse and validate the string, converting it into a unique ID.
- StringLiteralParser Literal(StrTok, *this);
+ StringLiteralParser Literal(
+ StrTok, *this, StringLiteralEvalMethod::Evaluated, CA_NoConversion);
----------------
s-barannikov wrote:
The latest "Unevaluated strings" [proposal](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2361r6.pdf) says this in the preamble:
```
Unevaluated string literals can appear in
...
• #line directives
```
I'm not sure why it was excluded from the wording, but intuitively this should be an unevaluated string literal (?)
@cor3ntin
No action required since this is preserving existing behavior, just bringing attention.
https://github.com/llvm/llvm-project/pull/138895
More information about the llvm-commits
mailing list