blob: fd0ee61ef533ea53ce9d140f44a85c0c7305d1ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Open-IOV editor defaults. Per-area .clang-format files govern C layout;
# tools must not mass-reformat existing files (see
# docs/07-developers/onboarding-and-standards.md section 3).
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab
indent_size = 8
# Host kernel module: Linux kernel C style (tabs, tab width 8, ~80 columns).
[kernel/**.{c,h}]
indent_style = tab
indent_size = 8
tab_width = 8
# Userspace library: LLVM base, 4 spaces, ~100 columns.
[userspace/**.{c,h}]
indent_style = space
indent_size = 4
tab_width = 4
# Tools: LLVM base, 4 spaces, ~100 columns.
[tools/**.{c,h}]
indent_style = space
indent_size = 4
tab_width = 4
|