summaryrefslogtreecommitdiffstats
path: root/tools/.clang-format
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-08 12:02:40 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-08 12:02:40 -0400
commitc2b8703d69b4d2ec40cf02cfd1709eb0ff731fda (patch)
treedecb6a5f765029ac6621bb4d499b2f9066f19f0b /tools/.clang-format
parent4cc250f6290fe5f0fdfe5e40c933fa0530dfcc92 (diff)
parent6b7575cf909d2218b469d5119e6a2991a133401a (diff)
downloadopen-iov-c2b8703d69b4d2ec40cf02cfd1709eb0ff731fda.tar.gz
open-iov-c2b8703d69b4d2ec40cf02cfd1709eb0ff731fda.zip
merge ws/code-standards: editorconfig/clang-format, userspace style doc, SPDX sweep, conventions (handoff-code-standards.txt)
Diffstat (limited to 'tools/.clang-format')
-rw-r--r--tools/.clang-format18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/.clang-format b/tools/.clang-format
new file mode 100644
index 0000000..fa09baa
--- /dev/null
+++ b/tools/.clang-format
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: BSD-3-Clause
+#
+# Tools style: LLVM base, 4-space indent, ~100 columns
+# (see docs/07-developers/onboarding-and-standards.md 3.2).
+# Existing files are NOT to be mass-reformatted; this config governs new
+# code and hunks that are already being edited.
+---
+Language: Cpp
+BasedOnStyle: LLVM
+AllowShortFunctionsOnASingleLine: Empty
+BreakBeforeBraces: Attach
+ColumnLimit: 100
+DerivePointerAlignment: false
+IndentWidth: 4
+PointerAlignment: Right
+SortIncludes: Never
+TabWidth: 4
+UseTab: Never