[clang] [clang][Python] Use fstrings instead of string concatenations (PR #173861)

Jannick Kremer via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 31 02:39:18 PST 2025


DeinAlptraum wrote:

> I don't think str.format() would help here, because it also requires to escape curly braces.

Ah right... good point

> While I've going over the changes once again, I found myself missing a dot in the format string here

I don't see a missing dot there? There's only one between the two placeholders, right? In your screenshot it's at the end of the line.

Aside from that, I'm also unsure how I feel about using concatenation just to avoid escaping.
I don't have much against escaping, it's only a bit hard to read because it's not the backslash one is used to from everywhere else.

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


More information about the cfe-commits mailing list