[clang-format] Distinguish K&R C function definition and attribute
authorOwen <owenca@users.noreply.github.com>
Thu, 12 Aug 2021 13:12:25 +0000 (06:12 -0700)
committerowenca <owenpiano@gmail.com>
Fri, 13 Aug 2021 12:28:19 +0000 (05:28 -0700)
commitde763c4037157e60551ba227ccd0ed02e109c317
tree52be3a03c4145d876c4e909c7e110e4236257fb7
parent3c6f115ffc2271e1a551a703f9bcbf630e76c3d9
[clang-format] Distinguish K&R C function definition and attribute

This is a follow-up to https://reviews.llvm.org/D107950 which
missed user-defined types in K&R C.

Differential Revision: https://reviews.llvm.org/D107961
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp