4 ms·
You can disable include reordering in clang-format. I don't think this is a bug, because I see the default here as a matter of policy decision.
by sanxiyn 7y ago
You can disable include reordering in clang-format. I don't think this is a bug, because I see the default here as a matter of policy decision.
- HelloNurse 7y agoGiven that reordering includes can have consequences, reordering includes blindly and casually like the OP is a form of Russian roulette: an order that works should be preserved until it stops working. The article describes false complexity caused by looking atr the issue in the wrong way: a "mysterious" performance problem, to be diagnosed, rather than the obvious consequence of a broken workflow that includes an extremely hazardous operation. In a voluntary header reordering experiment, all kinds of breakage could be detected with a trivial before and after comparison of compiled code.