[clang] [clang-format] Fix a bug in annotating function declaration names (PR #76206)

Matt Mundell via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 22 18:46:45 PST 2023


mattmundell wrote:

> `clang-format` doesn't know what are types, except for the keywords. So there is no way to decide if this is a function declaration without naming the parameters, or a variable declaration with a constructor call.

This is C so I guess it can only be a function declaration. Anyway, it's minor to work around, thanks again.

https://github.com/llvm/llvm-project/pull/76206


More information about the cfe-commits mailing list