[PATCH] D106112: [clang-format] Break an unwrapped line at a K&R C parameter decl

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 15 17:04:18 PDT 2021


owenpan created this revision.
owenpan added reviewers: djasper, klimek, MyDeveloperDay, curdeius, HazardyKnusperkeks.
owenpan added a project: clang-format.
owenpan requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Break an unwrapped line before the first parameter declaration in a K&R C function definition.

See PR51074 <https://bugs.llvm.org/show_bug.cgi?id=51074>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106112

Files:
  clang/lib/Format/UnwrappedLineParser.cpp
  clang/lib/Format/UnwrappedLineParser.h
  clang/unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106112.359172.patch
Type: text/x-patch
Size: 4161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210716/e12c6169/attachment.bin>


More information about the cfe-commits mailing list