[PATCH] D109752: [clang-format] Top-level unwrapped lines don't follow a left brace

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 15 14:53:17 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG8025c03f70ee: [clang-format] Top-level unwrapped lines don't follow a left brace (authored by owenpan).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109752

Files:
  clang/lib/Format/UnwrappedLineParser.cpp


Index: clang/lib/Format/UnwrappedLineParser.cpp
===================================================================
--- clang/lib/Format/UnwrappedLineParser.cpp
+++ clang/lib/Format/UnwrappedLineParser.cpp
@@ -431,7 +431,7 @@
       }
       LLVM_FALLTHROUGH;
     default:
-      parseStructuralElement(/*IsTopLevel=*/true);
+      parseStructuralElement(!HasOpeningBrace);
       break;
     }
   } while (!eof());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109752.372811.patch
Type: text/x-patch
Size: 417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210915/136f1dcf/attachment.bin>


More information about the cfe-commits mailing list