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

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 3 17:16:49 PST 2022


owenpan added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:313
               break;
+          if ((*J)->Level == TheLine->Level)
+            return false;
----------------
To be safe?


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