Skip to content
Permalink
Browse files

[C++] code format adjustments

* pointer alignment to type
* disallow single line definitions

Change-Id: Ia36bca1769af1328650967a4a8e9a598556e7873
  • Loading branch information...
christianhoff committed Oct 23, 2014
1 parent 5e95ab2 commit 07ef231dffb97c859d6bdaf180ef78afdbca3493
Showing with 4 additions and 4 deletions.
  1. +4 −4 .clang-format
@@ -1,18 +1,18 @@
---
# for details on style options see
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html

# Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -4
ConstructorInitializerIndentWidth: 8
# AlignEscapedNewlinesLeft: false
# AlignTrailingComments: true
# AllowAllParametersOfDeclarationOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: false
# AllowShortBlocksOnASingleLine: false
# AllowShortIfStatementsOnASingleLine: false
# AllowShortLoopsOnASingleLine: false
# AllowShortFunctionsOnASingleLine: All
AllowShortFunctionsOnASingleLine: None
AlwaysBreakTemplateDeclarations: true
# AlwaysBreakBeforeMultilineStrings: false
# BreakBeforeBinaryOperators: false
@@ -37,7 +37,7 @@ PenaltyBreakBeforeFirstCallParameter: 0
# PenaltyBreakFirstLessLess: 120
# PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 600
# PointerAlignment: Right
PointerAlignment: Left
# SpacesBeforeTrailingComments: 1
# Cpp11BracedListStyle: true
# Standard: Cpp11

0 comments on commit 07ef231

Please sign in to comment.
You can’t perform that action at this time.