Skip to content

Commit

Permalink
Apply clang format on pythonic
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrunet committed May 27, 2015
1 parent ace57dc commit ccfb3fb
Show file tree
Hide file tree
Showing 1,299 changed files with 34,103 additions and 32,610 deletions.
65 changes: 65 additions & 0 deletions .clang-format
@@ -0,0 +1,65 @@
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: true
AlignEscapedNewlinesLeft: false
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AlwaysBreakAfterDefinitionReturnType: false
AlwaysBreakTemplateDeclarations: true
AlwaysBreakBeforeMultilineStrings: false
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BinPackParameters: true
BinPackArguments: true
ColumnLimit: 80
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
DerivePointerAlignment: false
ExperimentalAutoDetectBinPacking: false
IndentCaseLabels: false
IndentWrappedFunctionNames: false
IndentFunctionDeclarationAfterType: false
MaxEmptyLinesToKeep: 1
KeepEmptyLinesAtTheStartOfBlocks: true
NamespaceIndentation: All
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakString: 1000
PenaltyBreakFirstLessLess: 120
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
SpacesBeforeTrailingComments: 1
Cpp11BracedListStyle: true
Standard: Cpp11
IndentWidth: 2
TabWidth: 8
UseTab: Never
BreakBeforeBraces: Linux
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpacesInAngles: false
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpaceAfterCStyleCast: false
SpacesInContainerLiterals: true
SpaceBeforeAssignmentOperators: true
ContinuationIndentWidth: 4
CommentPragmas: '^ IWYU pragma:'
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
SpaceBeforeParens: ControlStatements
DisableFormat: false
...

12 changes: 6 additions & 6 deletions pythran/pythonic/__builtin__/ArithmeticError.hpp
Expand Up @@ -4,14 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/ArithmeticError.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(ArithmeticError)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(ArithmeticError)
}
}

#endif
13 changes: 6 additions & 7 deletions pythran/pythonic/__builtin__/AssertionError.hpp
Expand Up @@ -4,15 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/AssertionError.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(AssertionError)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(AssertionError)
}
}

#endif

12 changes: 6 additions & 6 deletions pythran/pythonic/__builtin__/AttributeError.hpp
Expand Up @@ -4,14 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/AttributeError.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(AttributeError)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(AttributeError)
}
}

#endif
12 changes: 6 additions & 6 deletions pythran/pythonic/__builtin__/BaseException.hpp
Expand Up @@ -4,14 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/BaseException.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(BaseException)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(BaseException)
}
}

#endif
12 changes: 6 additions & 6 deletions pythran/pythonic/__builtin__/BufferError.hpp
Expand Up @@ -4,14 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/BufferError.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(BufferError)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(BufferError)
}
}

#endif
12 changes: 6 additions & 6 deletions pythran/pythonic/__builtin__/BytesWarning.hpp
Expand Up @@ -4,14 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/BytesWarning.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(BytesWarning)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(BytesWarning)
}
}

#endif
12 changes: 6 additions & 6 deletions pythran/pythonic/__builtin__/DeprecationWarning.hpp
Expand Up @@ -4,14 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/DeprecationWarning.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(DeprecationWarning)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(DeprecationWarning)
}
}

#endif
13 changes: 6 additions & 7 deletions pythran/pythonic/__builtin__/EOFError.hpp
Expand Up @@ -4,15 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/EOFError.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(EOFError)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(EOFError)
}
}

#endif

13 changes: 6 additions & 7 deletions pythran/pythonic/__builtin__/EnvironmentError.hpp
Expand Up @@ -4,15 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/EnvironmentError.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(EnvironmentError)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(EnvironmentError)
}
}

#endif

13 changes: 6 additions & 7 deletions pythran/pythonic/__builtin__/Exception.hpp
Expand Up @@ -4,15 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/Exception.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(Exception)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(Exception)
}
}

#endif

13 changes: 6 additions & 7 deletions pythran/pythonic/__builtin__/FloatingPointError.hpp
Expand Up @@ -4,15 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/FloatingPointError.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(FloatingPointError)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(FloatingPointError)
}
}

#endif

13 changes: 6 additions & 7 deletions pythran/pythonic/__builtin__/FutureWarning.hpp
Expand Up @@ -4,15 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/FutureWarning.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(FutureWarning)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(FutureWarning)
}
}

#endif

13 changes: 6 additions & 7 deletions pythran/pythonic/__builtin__/GeneratorExit.hpp
Expand Up @@ -4,15 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/GeneratorExit.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(GeneratorExit)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(GeneratorExit)
}
}

#endif

13 changes: 6 additions & 7 deletions pythran/pythonic/__builtin__/IOError.hpp
Expand Up @@ -4,15 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/IOError.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(IOError)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(IOError)
}
}

#endif

13 changes: 6 additions & 7 deletions pythran/pythonic/__builtin__/ImportError.hpp
Expand Up @@ -4,15 +4,14 @@
#include "pythonic/types/exceptions.hpp"
#include "pythonic/include/__builtin__/ImportError.hpp"

namespace pythonic {
namespace pythonic
{

namespace __builtin__ {

PYTHONIC_EXCEPTION_IMPL(ImportError)

}
namespace __builtin__
{

PYTHONIC_EXCEPTION_IMPL(ImportError)
}
}

#endif

0 comments on commit ccfb3fb

Please sign in to comment.