X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=CodingStyle;h=6e7adfc4e9dcd7d9a5a1397d41d969d66e970752;hp=180d097994a450e512d9ec218fc22c7fe8f67c0d;hb=ffb25bd576e7bf4a4b5ac2465b7068b242428be8;hpb=fa8f9c825308ce02d5409979895c104cf9b6364c diff --git a/CodingStyle b/CodingStyle index 180d09799..6e7adfc4e 100644 --- a/CodingStyle +++ b/CodingStyle @@ -1,11 +1,24 @@ LTTng-Tools Coding Style -The coding style used for this project follows the the Linux kernel -guide lines, except that brackets "{", "}" should typically be used even -for single-line if/else statements. Please refer to: +Last Update: 23/07/2012 + +C Style: +------------- + +The coding style used for this project follows the the Linux kernel guide +lines, except that brackets "{", "}" should typically be used even for +single-line if/else statements. Please refer to: + +- doc/kernel-CodingStyle.txt (copied from Linux 3.4.4 git tree). -- Linux kernel Documentation/CodingStyle document for details, - Linux kernel scripts/checkpatch.pl for a script which verify the patch coding style. -Mathieu Desnoyers, May 30, 2012 +Commenting: +------------- + +Every function MUST have a comment above it even if the function is trivial. + +Please add non-trivial comments/documentation as much you can in the code. Poor +comments WILL be rejected upon merging so please pay attention to this details +because we do!