Smallest reproduction:
/*
**
*/
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182913
91177308-0d34-0410-b5e6-
96231b3b80d8
// contain a trailing whitespace.
Prefix = Prefix.substr(0, 1);
}
+ } else {
+ if (StartOfLineColumn[LineIndex] == 1) {
+ // This lines starts immediately after the decorating *.
+ Prefix = Prefix.substr(0, 1);
+ }
}
unsigned WhitespaceOffsetInToken =
format("#define A\n"
"/* */someCall(parameter);",
getLLVMStyleWithColumns(15)));
+ EXPECT_EQ("/*\n**\n*/", format("/*\n**\n*/"));
FormatStyle NoBinPacking = getLLVMStyle();
NoBinPacking.BinPackParameters = false;