Currently it seems like a mess in terms of where newlines are used. Cleaning it up so all of them use newlines and are aligned and moving the default switch case to the top. Making a differential to see if anyone has objections to the style used.
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
lib/Driver/ToolChains/Linux.cpp | ||
---|---|---|
674 | This *might* be what clang-format produces. |
Comment Actions
Yeah but what about the rest of them, most are completely on their own line, some no newlines, mipsel64 was split across two lines while others weren't, and switch is meant to have default as the topmost case IIRC. I mean I'm if you don't think it's more readable that way I'll abandon it. Though IMHO reading wise it's much easier to read as a list down with separators than as a mix of various newline/no-newline styles.
Comment Actions
I don't have an opinion on the style per se, but please use clang-format. If it doesn't produce the formatting you want, then change the code so it does. (e.g. adding a trailing , at the end of an init-list will force one-per-line).
This *might* be what clang-format produces.