github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/.clang-format (about)

     1  ---
     2  Language:        Cpp
     3  BasedOnStyle:    LLVM
     4  AlignAfterOpenBracket: DontAlign
     5  AlignConsecutiveAssignments: true
     6  AlignEscapedNewlines: DontAlign
     7  # mkdocs annotations in source code are written as trailing comments
     8  # and alignment pushes these really far away from the content.
     9  AlignTrailingComments: false
    10  AlwaysBreakBeforeMultilineStrings: true
    11  AlwaysBreakTemplateDeclarations: false
    12  AllowAllParametersOfDeclarationOnNextLine: false
    13  AllowShortFunctionsOnASingleLine: false
    14  BreakBeforeBraces: Attach
    15  IndentWidth:     4
    16  KeepEmptyLinesAtTheStartOfBlocks: false
    17  TabWidth:        4
    18  UseTab:          ForContinuationAndIndentation
    19  ColumnLimit:     1000
    20  # Go compiler comments need to stay unindented.
    21  CommentPragmas: '^go:.*'
    22  # linux/bpf.h needs to be included before bpf/bpf_helpers.h for types like __u64
    23  # and sorting makes this impossible.
    24  SortIncludes: false
    25  ...