-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang-formatgood first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contribute
Description
| Bugzilla Link | 24118 |
| Version | trunk |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @mitchblank,@tromey |
Extended Description
When using clang format based on google style.
It reformat the following code to
int main() {
for (int i = 1; i < 10; i++)
for (int j = 0; j < 5; j++) {
// do something
goto end_double_loop;
}
end_double_loop : {}
return 0;
}
Could someone add a clang format style options so the "end_double_loop" will be aligned to the first for loop instead of int main? Meaning the desired format is
int main() {
for (int i = 1; i < 10; i++)
for (int j = 0; j < 5; j++) {
// do something
goto end_double_loop;
}
end_double_loop : {}
return 0;
}
Thanks,
Jason
varshneydevansh
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang-formatgood first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contribute