[PATCH] D64695: [clang-format] Added new style rule: SortNetBSDIncludes

Manikishan Ghantasala via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 14 04:33:43 PDT 2019


Manikishan added a comment.

In D64695#1584630 <https://reviews.llvm.org/D64695#1584630>, @MyDeveloperDay wrote:

> Do you think there is anything about this algorithm that could be parameterized so that other projects could utilize it?


I think we can take input from users the header files which should be grouped together and pass them to regex searches which then sets up priority. 
But I dob the feasibility of this approach. Will  come up with one.

> I guess its not completely clear how this differs from just using the IncludeCategories?

This style works only via NetBSD includes order instead of alphabetical .


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64695/new/

https://reviews.llvm.org/D64695





More information about the cfe-commits mailing list