[PATCH] D94206: [clang-format] turn on formatting after "clang-format on" while sorting includes
RafaĆ Jelonek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 7 03:22:41 PST 2021
rjelonek added a comment.
In D94206#2483901 <https://reviews.llvm.org/D94206#2483901>, @MyDeveloperDay wrote:
> I'm not seeing this
>
> // clang-format off
> #include "d.h"
> #include "b.h"
> // clang-format on
>
> #include "a.h"
> #include "c.h"
> #include "e.h"
>
> $ unix2dos test1.cpp
> unix2dos: converting file test1.cpp to DOS format...
>
> $ clang-format test1.cpp
> // clang-format off
> #include "d.h"
> #include "b.h"
> // clang-format on
>
> #include "a.h"
> #include "c.h"
> #include "e.h"
In unit test "e.h" is mainInclude. Maybe change test1.cpp to e.cpp
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94206/new/
https://reviews.llvm.org/D94206
More information about the cfe-commits
mailing list