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,8 +684,8 @@ int something() {
it("indents allman-style curly braces", () => expectPreservedIndentation(`\
if (a)
{
for (;;)
{
for (;;)
{
do
{
while (b)
@ -694,38 +694,38 @@ for (;;)
}
}
while (d)
}
}
}\
`
));
it("indents non-allman-style curly braces", () => expectPreservedIndentation(`\
if (a) {
for (;;) {
for (;;) {
do {
while (b) {
c();
}
} while (d)
}
}
}\
`
));
it("indents function arguments", () => expectPreservedIndentation(`\
a(
b,
c(
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} },
};\
`
));