anselmschueler, which C indentation/formatting/brace style do you like the best
#c #programming #formatting #code
C code indented in reverse: what would usually be the lowest indent is the highest and vice-versa. The effect is exaggerated by indenting/splitting on more things (e.g. parentheses have an extra level between the parent and the child)
C code indented by a peculiar rule: All text is aligned in a grid based on tokens, and the columns’ widths are as small as can be. Between all tokens there must be a space, incl. before and after parentheses, except when parentheses follow each other, and except in the include preprocessor directive. Asterisks for pointers are counted as parts of the token they concern, but all tokens are aligned so that the first non-asterisk characters have the same column. All blocks are indented by one space and completely reset this layout within them. Parentheses that do not induce blocks are followed by line breaks, and commas also. Commas are also treated as part of the token they follow. There is a point in the code where “char
Add comment