File: CodingConventions

package info (click to toggle)
btrfs-progs 6.2-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,244 kB
  • sloc: ansic: 114,376; sh: 9,576; python: 1,242; makefile: 820
file content (19 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
C style
-------

The kernel CodingStyle where applicable

https://www.kernel.org/doc/html/latest/process/coding-style.html

Error messages
--------------

* formatting:
  * use `error("string ...")`
  * no trailing newline
  * small letter starts the first word
  * no string splitting
  * move string to new line if it's too long, un-indent to the left if it
    exceeds 80 chars
* contents:
  * be descriptive