[PATCH] D94217: [clang-format] Find main include after block ended with #pragma hdrstop

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 7 12:16:21 PST 2021


MyDeveloperDay added inline comments.


================
Comment at: clang/lib/Format/Format.cpp:2308
         IncludesInBlock.clear();
-        FirstIncludeBlock = false;
+        if (Trimmed.startswith("#pragma hdrstop")) // precompiled headers
+          FirstIncludeBlock = true;
----------------
would you now please add a unit test that handles the new case


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

https://reviews.llvm.org/D94217



More information about the cfe-commits mailing list