https://reviews.llvm.org/D105964 updated the detection of function
definitions. It had the unfortunate effect to start marking object
definitions with attribute-like macros as function definitions.
This addresses this issue.
Differential D107269
[clan-format] detect function definitions more conservatively krasimir on Aug 2 2021, 6:01 AM. Authored by
Details https://reviews.llvm.org/D105964 updated the detection of function This addresses this issue.
Diff Detail
Event Timeline
|
I was contemplating the above in https://reviews.llvm.org/D105964 and should have used it instead. This is probably more conservative and accurate than checking for an l_brace following the r_paren.