Re:Clang Format Tanks Performance
by umanwizard on Friday November 22, 2019 @01:39AM
(#21603358)
No, I don’t normally think about header order, but if I’m unlucky enough to be getting some weird behavior based on header order, I think I’d be able to debug it before landing my change.
I’d be pissed if the issue were introduced by a formatting pass.
I agree that a formatting tool changing the behavior or performance is a serious issue, but I don't think it's a bug in clang-format in that I suspect it is deliberate design choice, and users can opt out if they want. Maybe the default could be changed or more visible warnings added to the documentation, but the real fix here needs to be in glibc.