- Update documentation to clarify that } does not need to be doubled up.
- Update EscapedBrace test case to test this behavior
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
Thanks, this seems much easier than changing the behavior for existing callers, and much better than having two different behaviors.
llvm/include/llvm/Support/FormatVariadic.h | ||
---|---|---|
208 | This phrasing seems a little awkward. Maybe just: A literal '}' need not be doubled.? There is also some redundancy now in '{' it must be doubled -- "{{" to print a literal '{'. | |
llvm/lib/Support/FormatVariadic.cpp | ||
94 ↗ | (On Diff #278240) | this simplification seems fine to me, but it does seem confusing to combine a change in contract with a change in implementation but no change in behavior. I'd suggest making these two separate patches, but up to you. |
106 ↗ | (On Diff #278240) | nit: take_front |
llvm/lib/Support/FormatVariadic.cpp | ||
---|---|---|
94 ↗ | (On Diff #278240) | That makes sense. I'll start a new review for changes in this file. |
This phrasing seems a little awkward. Maybe just: A literal '}' need not be doubled.?
There is also some redundancy now in '{' it must be doubled -- "{{" to print a literal '{'.
What about ... to print a literal '{' it must be doubled as "{{".?