Skip to content

Commit

Permalink
Adding updated clang-format and cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaltyagi committed Jul 7, 2019
1 parent e72a561 commit 1096eba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
24 changes: 18 additions & 6 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
---
AccessModifierOffset: '0'
AlwaysBreakAfterReturnType : All
AlwaysBreakTemplateDeclarations: 'true'
BreakBeforeBraces: Linux
AlwaysBreakAfterReturnType: All
AlwaysBreakTemplateDeclarations: true
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterFunction: true
AfterClass: false
AfterStruct: false
BeforeElse: true
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBraces: Custom
BreakConstructorInitializers: BeforeComma
ColumnLimit: 88
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 0
Language: Cpp
NamespaceIndentation: All
SpaceBeforeParens: Always
PointerAlignment: Left
Standard: Cpp11
TabWidth: 2
UseTab: Never
2 changes: 1 addition & 1 deletion cmake/clang-format.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if(ClangFormat_FOUND)
add_custom_target(
format
COMMAND sh
${PCL_SOURCE_DIR}/dev/format.sh
${PCL_SOURCE_DIR}/.dev/format.sh
${ClangFormat_EXECUTABLE}
${PCL_SOURCE_DIR}
)
Expand Down

0 comments on commit 1096eba

Please sign in to comment.