Question about formatting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I would like to contribute to dash, but I am worried about formatting.
Dash has mixed formatting styles, which makes it confusing to
contribute, and I think it would be beneficial to pick a formatting
style and stick to it.

For example, I have seen multiple types of

Experimenting with clang-format found that this config sort of matches
the style that was most common in Dash's sources.

BasedOnStyle: Mozilla

IndentWidth: 8
UseTab: Always
DerivePointerAlignment: true
PointerAlignment: Right
IndentCaseLabels: false
AlwaysBreakAfterReturnType: AllDefinitions
AlignAfterOpenBracket: DontAlign
BinPackParameters: true
BinPackArguments: true
ContinuationIndentWidth: 8
ConstructorInitializerAllOnOneLineOrOnePerLine: false

I would also like to know what
#define STATIC static
is for.

It isn't a complete replacement for "static", every C compiler
*should* support static, and it never seems to be redefined as
anything else. Is there some hidden meaning for this? All it seems to
do is mess up readability.
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux