.clang-format 664 B

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