[PATCH] D118706: [clang-format] Correctly parse C99 digraphs: "<:", ":>", "<%", "%>", "%:", "%:%:".
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 2 01:15:58 PST 2022
- Previous message: [PATCH] D118706: [clang-format] Correctly parse C99 digraphs: "<:", ":>", "<%", "%>", "%:", "%:%:".
- Next message: [PATCH] D118706: [clang-format] Correctly parse C99 digraphs: "<:", ":>", "<%", "%>", "%:", "%:%:".
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
curdeius added inline comments.
================
Comment at: clang/lib/Format/Format.cpp:3246
+ // Turning on digraphs in standards before C++0x is error-prone, because e.g.
+ // the sequence "<::" will be inconditionally treated as "[:".
+ // Cf. Lexer::LexTokenInternal.
----------------
HazardyKnusperkeks wrote:
> owenpan wrote:
> > “unconditionally”?
> yeah
Good catch. Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118706/new/
https://reviews.llvm.org/D118706
- Previous message: [PATCH] D118706: [clang-format] Correctly parse C99 digraphs: "<:", ":>", "<%", "%>", "%:", "%:%:".
- Next message: [PATCH] D118706: [clang-format] Correctly parse C99 digraphs: "<:", ":>", "<%", "%>", "%:", "%:%:".
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cfe-commits
mailing list