[PATCH] D118706: [clang-format] Correctly parse C99 digraphs: "<:", ":>", "<%", "%>", "%:", "%:%:".

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 1 09:40:01 PST 2022


owenpan accepted this revision.
owenpan added inline comments.
This revision is now accepted and ready to land.


================
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.
----------------
“unconditionally”?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118706/new/

https://reviews.llvm.org/D118706



More information about the cfe-commits mailing list