Skip to content
Snippets Groups Projects
Select Git revision
  • 51687632331421d94d67f8183e41b56717389027
  • master default
  • include-tests
  • remove-yaml-quotes
  • configurable-ci-setup-lookup-path
  • dev-image-test-bak
  • dev-images
  • tmp/deploy-image-build
  • fast-ci
  • modular-templates
10 results

clang-format

Blame
  • Forked from tecnalia_robotics-public / templates
    Source project has a limited visibility.
    clang-format 1.92 KiB
    ---
    # Format file from: https://github.com/davetcoleman/roscpp_code_format (bfa4ea78b4ac856da07458c8824bf5eb327ea693)
    BasedOnStyle: Google
    AccessModifierOffset: -2
    ConstructorInitializerIndentWidth: 2
    AlignEscapedNewlinesLeft: false
    AlignTrailingComments: true
    AllowAllParametersOfDeclarationOnNextLine: false
    AllowShortIfStatementsOnASingleLine: false
    AllowShortLoopsOnASingleLine: false
    AllowShortFunctionsOnASingleLine: None
    AllowShortLoopsOnASingleLine: false
    AlwaysBreakTemplateDeclarations: true
    AlwaysBreakBeforeMultilineStrings: false
    BreakBeforeBinaryOperators: false
    BreakBeforeTernaryOperators: false
    BreakConstructorInitializersBeforeComma: true
    BinPackParameters: true
    ColumnLimit: 120
    ConstructorInitializerAllOnOneLineOrOnePerLine: true
    DerivePointerBinding: false
    PointerBindsToType: true
    ExperimentalAutoDetectBinPacking: false
    IndentCaseLabels: true
    MaxEmptyLinesToKeep: 1
    NamespaceIndentation: None
    ObjCSpaceBeforeProtocolList: true
    PenaltyBreakBeforeFirstCallParameter: 19
    PenaltyBreakComment: 60
    PenaltyBreakString: 1
    PenaltyBreakFirstLessLess: 1000
    PenaltyExcessCharacter: 1000
    PenaltyReturnTypeOnItsOwnLine: 90
    SpacesBeforeTrailingComments: 2
    Cpp11BracedListStyle: false
    Standard: Auto
    IndentWidth: 2
    TabWidth: 2
    UseTab: Never
    IndentFunctionDeclarationAfterType: false
    SpacesInParentheses: false
    SpacesInAngles: false
    SpaceInEmptyParentheses: false
    SpacesInCStyleCastParentheses: false
    SpaceAfterControlStatementKeyword: true
    SpaceBeforeAssignmentOperators: true
    ContinuationIndentWidth: 4
    SortIncludes: false
    SpaceAfterCStyleCast: false
    
    # Configure each individual brace in BraceWrapping
    BreakBeforeBraces: Custom
    
    # Control of individual brace wrapping cases
    BraceWrapping: {
        AfterClass: 'true'
        AfterControlStatement: 'true'
        AfterEnum : 'true'
        AfterFunction : 'true'
        AfterNamespace : 'true'
        AfterStruct : 'true'
        AfterUnion : 'true'
        BeforeCatch : 'true'
        BeforeElse : 'true'
        IndentBraces : 'false'
    }
    ...