[PATCH] D43303: [Format] Fix for bug 35641
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 15 06:04:58 PST 2018
kadircet updated this revision to Diff 134414.
kadircet added a comment.
Changed description of unit test to include direct link to bug.
Used different variable types to make sure alignment happens.
Repository:
rC Clang
https://reviews.llvm.org/D43303
Files:
unittests/Format/FormatTest.cpp
Index: unittests/Format/FormatTest.cpp
===================================================================
--- unittests/Format/FormatTest.cpp
+++ unittests/Format/FormatTest.cpp
@@ -9450,11 +9450,11 @@
Alignment);
Alignment.PointerAlignment = FormatStyle::PAS_Right;
- // Bug 35641
+ // See llvm.org/PR35641
Alignment.AlignConsecutiveDeclarations = true;
verifyFormat("int func() { //\n"
- " int b;\n"
- " int c;\n"
+ " int b;\n"
+ " unsigned c;\n"
"}",
Alignment);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43303.134414.patch
Type: text/x-patch
Size: 587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180215/e8d792fd/attachment.bin>
More information about the cfe-commits
mailing list