diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-10-08 12:02:40 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-10-08 12:02:40 -0400 |
| commit | b232f7d82c699c4a1e922a0d045337d29dab824b (patch) | |
| tree | ee8686f5014cf9724405184e813438c9882961b8 /.editorconfig | |
| parent | b7d833672f95d00a0fe86cbaa1370e9a062cd363 (diff) | |
| parent | d380e5a46850000120b8745d50b5c167a4404fb1 (diff) | |
| download | open-iov-b232f7d82c699c4a1e922a0d045337d29dab824b.tar.gz open-iov-b232f7d82c699c4a1e922a0d045337d29dab824b.zip | |
merge ws/code-standards: editorconfig/clang-format, userspace style doc, SPDX sweep, conventions (handoff-code-standards.txt)
Diffstat (limited to '.editorconfig')
| -rw-r--r-- | .editorconfig | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..fd0ee61 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,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 |
