[PATCH] D135972: [clang-format] Don't crash on malformed preprocessor conditions

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 25 23:50:01 PDT 2022


owenpan accepted this revision.
owenpan added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/unittests/Format/FormatTest.cpp:5209
+  verifyNoCrash("#if X\n"
+                "#else\n"
+                "#else\n"
----------------
`#elif Y` instead of `#else`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D135972



More information about the cfe-commits mailing list