[PATCH] D33932: [clang-format] Add support for case-insensitive header matching and use it to improve support for LLVM-style include sorting.
Eric Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 6 04:28:24 PDT 2017
ioeric accepted this revision.
ioeric added a comment.
This revision is now accepted and ready to land.
Lgtm.
================
Comment at: lib/Format/Format.cpp:1406
for (const auto &Category : Style.IncludeCategories)
- CategoryRegexs.emplace_back(Category.Regex);
+ CategoryRegexs.emplace_back(Category.Regex,
+ Style.IncludeRegexCaseInsensitive
----------------
Also add tests for these non-main categories?
https://reviews.llvm.org/D33932
More information about the cfe-commits
mailing list