.clang-format 837 B

1234567891011121314151617181920212223242526
  1. # clang-format (3.5) is not yet capable of doing LKCS to the full extent,
  2. # so the style implemented by this config file is non-normative, but perhaps
  3. # still useful if there are a lot of "accidents" in a file.
  4. #
  5. # [LKCS] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/CodingStyle
  6. BasedOnStyle: LLVM
  7. Standard: Cpp03
  8. IndentWidth: 8
  9. UseTab: ForIndentation
  10. BreakBeforeBraces: Linux
  11. AllowShortIfStatementsOnASingleLine: false
  12. IndentCaseLabels: false
  13. ColumnLimit: 0
  14. PenaltyExcessCharacter: 2
  15. PenaltyBreakString: 1000
  16. PenaltyReturnTypeOnItsOwnLine: 0
  17. AccessModifierOffset: 0
  18. AllowShortFunctionsOnASingleLine: None
  19. ConstructorInitializerAllOnOneLineOrOnePerLine: false
  20. # not supported before 3.6
  21. #AlignAfterOpenBracket: false
  22. # not supported before 3.8
  23. #BreakBeforeBraces: WebKit
  24. ContinuationIndentWidth: 8