[PATCH] D120902: [clang-format] Fix assertion failure/crash with `AllowShortFunctionsOnASingleLine: Inline/InlineOnly`.

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 3 23:50:43 PST 2022


curdeius added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:313
               break;
+          if ((*J)->Level == TheLine->Level)
+            return false;
----------------
owenpan wrote:
> To be safe?
Good idea. Will do.
Any idea how to provoke this (if at all possible)?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D120902



More information about the cfe-commits mailing list