1 LTTng-Tools Coding Style
3 Last Update: 23/07/2012
8 The coding style used for this project follows the the Linux kernel guide
9 lines, except that brackets "{", "}" should typically be used even for
10 single-line if/else statements. Please refer to:
12 - doc/kernel-CodingStyle.txt (copied from Linux 3.4.4 git tree).
14 - Linux kernel scripts/checkpatch.pl for a script which verify the patch
20 We ask to use one single return point in a function. For that, we uses the
21 "goto" statement for the error handling creating one single point for error
22 handling and return code. See the following example:
24 int some_function(...)
41 Every function MUST have a comment above it even if the function is trivial.
43 Please add non-trivial comments/documentation as much as you can in the code.
44 Poor comments WILL be rejected upon merging so please pay attention to this
45 details because we do!