summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-09-29 09:16:10 +0200
committerThomas Haller <thaller@redhat.com>2020-09-29 09:19:29 +0200
commit0e71236d08ba60e64aca6df6fb056fa6b985d729 (patch)
treea1aa3a4cb25088cd7a6936c9feb1fe68e2c5a87a
parent12823f60af43c8e4dc3c6c2878820128ded62acc (diff)
downloadNetworkManager-0e71236d08ba60e64aca6df6fb056fa6b985d729.tar.gz
contributing: update CONTRIBUTING file with new style guide
-rw-r--r--CONTRIBUTING22
1 files changed, 8 insertions, 14 deletions
diff --git a/CONTRIBUTING b/CONTRIBUTING
index e24095eb45..c157614e07 100644
--- a/CONTRIBUTING
+++ b/CONTRIBUTING
@@ -4,20 +4,14 @@ Guidelines for Contributing
Coding Standard
---------------
-Coding standards are generally GNOME coding standards, with these exceptions:
- a) 4 space tabs (_not_ 8-space tabs)
- b) REAL tabs (_not_ a mix of tabs and spaces in the initial indent)
- c) spaces used to align continuation lines past the indent point of the
- first statement line, like so:
-
- if ( some_really_really_long_variable_name
- && another_really_really_long_variable_name) {
- ...
- }
-
-* Keep a space between the function name and the opening '('.
- GOOD: g_strdup (x)
- BAD: g_strdup(x)
+* The formatting uses clang-format with clang 11.0. Run
+ `./contrib/scripts/nm-code-format.sh -i` to reformat.
+
+* Indent with 4 spaces. (_no_ tabs).
+
+* Have no space between the function name and the opening '('.
+ GOOD: g_strdup(x)
+ BAD: g_strdup (x)
* C-style comments
GOOD: f(x); /* comment */