[Dnsmasq-discuss] [PATCH 5/6] Better description of Coding Style
'Geert Stappers
stappers at stappers.nl
Sun Oct 23 19:34:21 UTC 2022
From: Geert Stappers <stappers at stappers.nl>
And the CS needs more tuning.
---
.clang-format | 7 ++++++-
CodingStyle | 7 +++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.clang-format b/.clang-format
index 75d465b..ada50d2 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,3 +1,8 @@
+#
+# Machine readable version of Dnsmasq Coding Style
+#
+# It is the program `clang-format`, that is supposed to read this YAML file.
+#
---
Language: Cpp
AccessModifierOffset: -2
@@ -180,7 +185,7 @@ StatementMacros:
- QT_REQUIRE_VERSION
TabWidth: 8
UseCRLF: false
-UseTab: Never
+UseTab: Always
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
diff --git a/CodingStyle b/CodingStyle
index 5457dd8..fb8c5b9 100644
--- a/CodingStyle
+++ b/CodingStyle
@@ -6,3 +6,10 @@ We indent by 2 spaces.
When we are doing that for 4th time, we use a tab, not 8 spaces.
Next indents are again 2 spaces and replace again with tab
on modulo 4 indents.
+
+
+Further
+-------
+
+In file .clang-format is the machine readable version
+of the Dnsmasq coding style.
--
2.37.2
More information about the Dnsmasq-discuss
mailing list