[PATCH] D65940: [clang-format] fix crash involving invalid preprocessor line
Dmitri Gribenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 8 04:52:03 PDT 2019
gribozavr accepted this revision.
gribozavr added inline comments.
This revision is now accepted and ready to land.
================
Comment at: unittests/Format/FormatTest.cpp:3090
Style);
+ // Don't crash if there is nothing following #elif.
+ verifyFormat("#if 1\n"
----------------
`// #elif directive without a condition.` -- to follow the existing comment format in other tests.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65940/new/
https://reviews.llvm.org/D65940
More information about the cfe-commits
mailing list