Skip to content
Snippets Groups Projects
Select Git revision
  • sender
  • main default protected
  • doc
  • karnew
  • noddy
  • multici
  • kaira
  • nola
  • corefvm
  • jali
  • pika
  • ci
  • unique
  • remove-clang-tidy-warning
  • time
  • cota
  • fvm
  • ginkgo
  • cmdline
  • cudamem
  • burger-fvm
21 results

.clang-format

Blame
  • .clang-format 2.39 KiB
    #-------------------------------------------------------------------------------
    # SPDX-License-Identifier: Apache-2.0
    # SPDX-FileCopyrightText: (C) 2020, Jayesh Badwaik <jayesh@badwaik.dev>
    #-------------------------------------------------------------------------------
    ---
    Language:        Cpp
    # BasedOnStyle:  LLVM
    AccessModifierOffset: -2
    AlignAfterOpenBracket: AlwaysBreak
    AlignEscapedNewlinesLeft: false
    AlignOperands:   true
    AlignTrailingComments: true
    AllowAllParametersOfDeclarationOnNextLine: true
    AllowShortBlocksOnASingleLine: false
    AllowShortCaseLabelsOnASingleLine: false
    AllowShortIfStatementsOnASingleLine: false
    AllowShortLoopsOnASingleLine: false
    AllowShortFunctionsOnASingleLine: InlineOnly
    AlwaysBreakAfterDefinitionReturnType: false
    AlwaysBreakTemplateDeclarations: true
    AlwaysBreakBeforeMultilineStrings: true
    BreakBeforeBinaryOperators: true
    BreakBeforeTernaryOperators: true
    BreakConstructorInitializersBeforeComma: false
    BinPackParameters: false
    BinPackArguments: false
    ColumnLimit:  100
    ConstructorInitializerAllOnOneLineOrOnePerLine: true
    ConstructorInitializerIndentWidth: 0
    DerivePointerAlignment: false
    ExperimentalAutoDetectBinPacking: false
    IndentCaseLabels: false
    IndentWrappedFunctionNames: false
    IndentFunctionDeclarationAfterType: false
    MaxEmptyLinesToKeep: 1
    KeepEmptyLinesAtTheStartOfBlocks: true
    NamespaceIndentation: None
    ObjCBlockIndentWidth: 2
    ObjCSpaceAfterProperty: false
    ObjCSpaceBeforeProtocolList: true
    PenaltyBreakBeforeFirstCallParameter: 19
    PenaltyBreakComment: 300
    PenaltyBreakString: 1000
    PenaltyBreakFirstLessLess: 120
    PenaltyExcessCharacter: 1000000
    PenaltyReturnTypeOnItsOwnLine: 1000000
    PointerAlignment: Left
    SpacesBeforeTrailingComments: 1
    Cpp11BracedListStyle: true
    Standard:        Cpp11
    IndentWidth:     2
    TabWidth:        2
    UseTab:          Never
    BreakBeforeBraces: Stroustrup
    SpacesInParentheses: false
    SpacesInSquareBrackets: false
    SpacesInAngles:  false
    SpaceInEmptyParentheses: false
    SpacesInCStyleCastParentheses: false
    SpaceAfterCStyleCast: false
    SpacesInContainerLiterals: true
    SpaceBeforeAssignmentOperators: true
    ContinuationIndentWidth: 2
    CommentPragmas:  '^ IWYU pragma:'
    SortIncludes: 'CaseSensitive'
    SpaceBeforeParens: ControlStatements
    DisableFormat:   false
    StatementMacros: [
      'COTA_GLOBAL',
      'COTA_HOST',
      'COTA_DEVICE',
      'COTA_HOST_DEVICE',
      'NOLA_GLOBAL',
      'NOLA_HOST',
      'NOLA_DEVICE',
      'NOLA_HOST_DEVICE'
    ]
    ...
    ...
    Language: Json
    BasedOnStyle: llvm
    ...