[PATCH] D154091: [clang-format] Recognize escape sequences when breaking strings

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 5 04:20:44 PDT 2023


MyDeveloperDay added inline comments.


================
Comment at: clang/lib/Format/BreakableToken.cpp:199
 
+    if (EscapeSequence && Advance == 2) {
+      switch (Text[1]) {
----------------
Can we add a unit test for escape sequences > \X which I assume this handles


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154091



More information about the cfe-commits mailing list