[PATCH] D68346: [clang-format] Add new option to add spaces around conditions
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 20 04:14:09 PST 2019
MyDeveloperDay added inline comments.
================
Comment at: clang/unittests/Format/FormatTest.cpp:14386
+ verifyFormat("while ( a )\n return;", Spaces);
+ verifyFormat("while ( (a && b) )\n return;", Spaces);
+ verifyFormat("do {\n} while ( 1 != 0 );", Spaces);
----------------
is this what you expect? or should it be `while ( ( a && b ) )`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68346/new/
https://reviews.llvm.org/D68346
More information about the cfe-commits
mailing list