Apply lost tabs to c specs

This commit is contained in:
confused-Techie 2023-07-09 23:29:32 -07:00
parent a03ab9738b
commit 77199b4726

View File

@ -684,48 +684,48 @@ int something() {
it("indents allman-style curly braces", () => expectPreservedIndentation(`\
if (a)
{
for (;;)
{
do
for (;;)
{
while (b)
do
{
c();
while (b)
{
c();
}
}
while (d)
}
while (d)
}
}\
`
));
it("indents non-allman-style curly braces", () => expectPreservedIndentation(`\
if (a) {
for (;;) {
do {
while (b) {
c();
}
} while (d)
}
for (;;) {
do {
while (b) {
c();
}
} while (d)
}
}\
`
));
it("indents function arguments", () => expectPreservedIndentation(`\
a(
b,
c(
d
)
b,
c(
d
)
);\
`
));
it("indents array and struct literals", () => expectPreservedIndentation(`\
some_t a[3] = {
{ .b = c },
{ .b = c, .d = {1, 2} },
{ .b = c },
{ .b = c, .d = {1, 2} },
};\
`
));