(lambda ()
(c-ts-mode)
(setq-local indent-tabs-mode nil)
- (setq-local c-ts-mode-indent-offset 2)
+ (setq-local c-ts-mode-indent-offset 8)
(c-ts-mode-set-style 'bsd)
(indent-region (point-min) (point-max)))
int
main (void)
{
- return 0;
+ return 0;
}
=-=-=
int
main (void)
{
- if (true)
- {
- |
- }
+ if (true)
+ {
+ |
+ }
}
=-=-=
main (void)
{
label:
- return 0;
- if (true)
- {
- label:
- return 0;
- }
- else
- {
- if (true)
- {
- label:
- return 0;
- }
- }
+ return 0;
+ if (true)
+ {
+ label:
+ return 0;
+ }
+ else
+ {
+ if (true)
+ {
+ label:
+ return 0;
+ }
+ }
}
=-=-=
=-=
int main()
{
- if (true)
- {
- return 0;
- }
- else
- {
- return 1;
- }
+ if (true)
+ {
+ return 0;
+ }
+ else
+ {
+ return 1;
+ }
}
=-=-=
=-=
int main()
{
- |
+ |
}
=-=-=
main (int argc,
char *argv[])
{
- {
- int i = 0;
- }
+ {
+ int i = 0;
+ }
}
=-=-=
break;
=-=
for (int i = 0; i < 5; i++)
- continue;
+ continue;
while (true)
- return 1;
+ return 1;
do
- i++;
+ i++;
while (true)
if (true)
- break;
+ break;
else
- break;
+ break;
=-=-=