[PATCH] D33440: clang-format: better handle statement macros

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 14 01:00:23 PDT 2017


krasimir added inline comments.


================
Comment at: unittests/Format/FormatTest.cpp:2407
+               "int b = 0;",
+               Style);
 }
----------------
Please add tests where:
- the macro occurs inside a function body, thus having nontrivial indentation
- there are two macros one after another
- there is some code before the macro (on the same line + on a previous line with the same level)


https://reviews.llvm.org/D33440





More information about the cfe-commits mailing list