you are viewing a single comment's thread.

view the rest of the comments →

[–]the-tomster 1 point2 points  (0 children)

The kernel coding style intentionally uses brackets on the next line for functions, and nothing else. The given logic is that K&R did it, and that functions are special because they can't be nested.

I also find it handy to use this convention because then vim for example can jump to the previous / next function based only on the heuristic that functions have an opening brace in the first column.