[clang] Make -frewrite-includes put an endif at the end of the included text (PR #67613)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 28 10:19:28 PDT 2023


================
@@ -98,7 +98,7 @@
 // == file2.h
 // REWRITE: #if 0
 // REWRITE: #include "file2.h"
-// REWRITE: #endif
+// REWRITE: #else /* file2.h expanded
----------------
MaskRay wrote:

Does this line not have `by -frewrite-includes`?

https://github.com/llvm/llvm-project/pull/67613


More information about the cfe-commits mailing list