Thread (71 messages) 71 messages, 6 authors, 2024-07-24
STALE699d
Revisions (5)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v3 [diff vs current]
  4. v4 current
  5. v6 [diff vs current]

[PATCH v4 3/8] clang-format: ensure files end with newlines

From: Karthik Nayak <hidden>
Date: 2024-07-15 09:30:54
Subsystem: clang-format file, the rest · Maintainers: Miguel Ojeda, Linus Torvalds

All our source files end with a newline, let's formalize in
'.clang-format'.

Signed-off-by: Karthik Nayak <redacted>
---
 .clang-format | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/.clang-format b/.clang-format
index 803b274dd5..4c9751a9db 100644
--- a/.clang-format
+++ b/.clang-format
@@ -106,6 +106,9 @@ IndentCaseLabels: false
 # #endif
 IndentPPDirectives: AfterHash
 
+# Insert a newline at end of file if missing
+InsertNewlineAtEOF: true
+
 # Don't indent a function definition or declaration if it is wrapped after the
 # type
 IndentWrappedFunctionNames: false
-- 
2.45.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help