[PATCH] D26909: [ClangFormat] Only insert #include into the #include block in the beginning of the file.
Daniel Jasper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 2 02:48:22 PST 2016
djasper accepted this revision.
djasper added a comment.
This revision is now accepted and ready to land.
Looks good.
================
Comment at: unittests/Format/CleanupTest.cpp:898
+
+TEST_F(CleanUpReplacementsTest, CanInsertAfterComment) {
+ std::string Code = "#include \"a.h\"\n"
----------------
Can you add a similar test or update this one that empty lines are also acceptable?
https://reviews.llvm.org/D26909
More information about the cfe-commits
mailing list