[PATCH] D93846: [clang-format] PR16518 Add flag to suppress empty line insertion before access modifier
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 14 04:50:07 PST 2021
curdeius accepted this revision.
curdeius added a comment.
One last nit, otherwise LGTM.
================
Comment at: clang/unittests/Format/FormatTest.cpp:8891
+TEST_F(FormatTest, FormatsAccessModifiers) {
+ verifyFormat("struct foo {\n"
+ "private:\n"
----------------
For the ease of understanding that you test `LogicalBlock` in this first part, I'd add:
```
FormatStyle Style = getLLVMStyle();
EXPECT_EQ(Style.EmptyLineBeforeAccessModifier, FormatStyle::ELBAMS_LogicalBlock);
```
and use this `Style` in `verifyFormat`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93846/new/
https://reviews.llvm.org/D93846
More information about the cfe-commits
mailing list