.clang-format 683 B

1234567891011121314151617181920212223242526272829
  1. ---
  2. BasedOnStyle: Google
  3. AllowShortBlocksOnASingleLine: 'false'
  4. AllowShortCaseLabelsOnASingleLine: 'false'
  5. AllowShortFunctionsOnASingleLine: Inline
  6. AllowShortIfStatementsOnASingleLine: Never
  7. AllowShortLoopsOnASingleLine: 'false'
  8. BreakConstructorInitializers: BeforeComma
  9. ColumnLimit: '100'
  10. FixNamespaceComments: 'true'
  11. IncludeBlocks: Regroup
  12. IndentWidth: '4'
  13. NamespaceIndentation: Inner
  14. SpacesBeforeTrailingComments: '1'
  15. Language: Cpp
  16. Standard: Cpp11
  17. IncludeCategories:
  18. - Regex: '^<types/'
  19. Priority: '4'
  20. - Regex: '^<(kernel|fs|net|driver)/'
  21. Priority: '5'
  22. - Regex: '^<.*\.h>'
  23. Priority: '3'
  24. - Regex: '^<.*>'
  25. Priority: '2'
  26. - Regex: '.*'
  27. Priority: '1'
  28. ...