[PATCH] D143691: Fix clang-formats IncludeCategory to match the documentation
Fabian Keßler via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 9 16:24:44 PST 2023
Febbe created this revision.
Herald added a project: All.
Febbe requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
- Main Include Files have now always prio (0,0)
- They can't be matched by negative matchers anymore.
- `SortPriority` now truly defaults to `Priority`
- If it is unclear, which include is the main include, use both instead of using the first.
fixes #58284
fixes #60589
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D143691
Files:
clang/lib/Format/Format.cpp
clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
clang/lib/Tooling/Inclusions/IncludeStyle.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143691.496277.patch
Type: text/x-patch
Size: 4589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230210/a6ae0503/attachment-0001.bin>
More information about the cfe-commits
mailing list