# http://clang.llvm.org/docs/ClangFormatStyleOptions.html BasedOnStyle: Google # This defaults to 'Auto'. Explicitly set it for a while, so that # 'vector >' in existing files gets formatted to # 'vector>'. ('Auto' means that clang-format will only use # 'int>>' if the file already contains at least one such instance.) Standard: Cpp11 SortIncludes: true AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false BreakStringLiterals: false DerivePointerAlignment: true PointerAlignment: Left ColumnLimit: 100 ForEachMacros: ['list_for_every_entry','list_for_every_entry_safe'] IncludeBlocks: Regroup IncludeCategories: # This specific header must come last in kernel source files. Its # matching rule must come first so the lower-priority rules don't match. - Regex: '^' Priority: 1000 # C Header: , , etc - Regex: '^(<((zircon/|lib/|fuchsia/|arpa/|net/|netinet/|sys/|fidl/)[a-zA-Z0-9_/\.-]+\.h|[a-zA-Z0-9_-]+\.h)>)' Priority: 1 # Cpp Header: and - Regex: '^(<(experimental/)*[a-zA-Z0-9_-]+>)' Priority: 2 # Libraries: - Regex: '^(<[a-zA-Z0-9_/-]+\.h>)' Priority: 3 # Local headers: "foo/bar.h" - Regex: '^("[.a-zA-Z0-9_/-]+\.h")' Priority: 4