[cfe-dev] Any objections to re-sorting #include lines with clang-format/clang-tidy?

Benjamin Kramer via cfe-dev cfe-dev at lists.llvm.org
Fri Mar 11 02:31:42 PST 2016


If I remember correctly there are some cases of "weird main header" in
LLVM (e.g. Passes.h). I could never form a strong enough opinion to
just sort them as a normal non-main header. Otherwise go for it :)


On Fri, Mar 11, 2016 at 10:14 AM, Chandler Carruth via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> The crazy clang-format folks have taught it to sort includes, and clang-tidy
> has a nice way to run it across all of LLVM and Clang.
>
> Before I just submit the fixes (and any bug reports to the clang-format
> folks if it sorts things weirdly) I wanted to double check that folks would
> be ok with this. My understanding is that the sorting should match the LLVM
> conventions, but if not, I'll make sure to get that fixed first.
>
> -Chandler
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>


More information about the cfe-dev mailing list