================
@@ -3893,30 +3890,30 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) {
"// \n"
"}";
- EXPECT_EQ("//\n"
- "\n"
- "void foo() { //\n"
- " //\n"
- "}",
- format(NoTextInComment, Style));
+ verifyFormat("//\n"
+ "\n"
+ "void foo() { //\n"
+ " //\n"
+ "}",
+ NoTextInComment, Style);
Style.SpacesInLineCommentPrefix.Minimum = 0;
verifyFormat("//#comment", Style);
- EXPECT_EQ("//\n"
- "\n"
- "void foo() { //\n"
- " //\n"
- "}",
- format(NoTextInComment, Style));
+ verifyFormat("//\n"
+ "\n"
+ "void foo() { //\n"
+ " //\n"
+ "}",
+ NoTextInComment, Style);
Style.SpacesInLineCommentPrefix.Minimum = 5;
- EXPECT_EQ("// #comment", format("//#comment", Style));
- EXPECT_EQ("//\n"
- "\n"
- "void foo() { //\n"
- " //\n"
- "}",
- format(NoTextInComment, Style));
+ verifyFormat("// #comment", "//#comment", Style);
+ verifyFormat("//\n"
+ "\n"
+ "void foo() { //\n"
+ " //\n"
+ "}",
+ NoTextInComment, Style);
Style = getLLVMStyle();
StringRef Code =
----------------
owenca wrote:
```suggestion
constexpr StringRef Code(
```
https://github.com/llvm/llvm-project/pull/164310
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits