Skip to content

Commit

Permalink
Problem: whitespace style too restrictive.
Browse files Browse the repository at this point in the history
For header only library like cppzmq, whitespace style inherited from
libzmq is too restrictive.

Solution: relaxing whitespace before parens from always to in control
statements only, increased max column width from 80 to 85 and removing
requirement of whitespace after template keyword.
  • Loading branch information
kurdybacha committed May 12, 2018
1 parent 590cf71 commit ff3c221
Show file tree
Hide file tree
Showing 12 changed files with 947 additions and 1,008 deletions.
6 changes: 3 additions & 3 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ AllowShortBlocksOnASingleLine: false
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortFunctionsOnASingleLine: InlineOnly
AlwaysBreakTemplateDeclarations: false
ColumnLimit: 80
ColumnLimit: 85
MaxEmptyLinesToKeep: 2
KeepEmptyLinesAtTheStartOfBlocks: false
ContinuationIndentWidth: 2
PointerAlignment: Right
ReflowComments: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: Always
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInParentheses: false
Expand All @@ -44,7 +44,7 @@ SortIncludes: false

FixNamespaceComments: false
BreakBeforeBinaryOperators: NonAssignment
SpaceAfterTemplateKeyword: true
SpaceAfterTemplateKeyword: false
AlignAfterOpenBracket: Align
AlignOperands: true
BreakConstructorInitializers: AfterColon
Expand Down
2 changes: 1 addition & 1 deletion demo/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <zmq.hpp>

int main (int argc, char **argv)
int main(int argc, char **argv)
{
zmq::context_t context;
return 0;
Expand Down
Loading

0 comments on commit ff3c221

Please sign in to comment.