X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=CodingStyle;h=6ff931b150cc920ded9e7ba6807059a8fa814922;hp=8833180d6979837fdf652ad3fbbd995253b924f0;hb=6186e5b839c77af387614eec6a1c24053e46c849;hpb=da1d733c6d3aa870598abb1eff26436a4985e37b diff --git a/CodingStyle b/CodingStyle index 8833180d6..6ff931b15 100644 --- a/CodingStyle +++ b/CodingStyle @@ -31,14 +31,22 @@ enum my_enum { #define DEFAULT_VALUE_OF_SOME_SORT 6 #define THE_ANSWER 42 -Use space to indent the '\' at the end but tabs at the beginning. +Use either a single space or tabs to indent the '\' at the end of lines. +Use tabs at the beginning of lines. -#define a_macro(x) \ - do { \ - fsync(); \ - } while (0); \ +Either: -It's really the only time we use spaces. For everything else, there is TABS! :) +#define a_macro(x) \ + do { \ + fsync(); \ + } while (0) + +or + +#define a_macro(x) \ + do { \ + fsync(); \ + } while (0) Here is a pretty cool vim macro that will highlight your whitespaces and spaces before tab. This helps a *LOT* when coding.