File: C_CODING_STYLE.rdoc

package info (click to toggle)
ruby-nokogiri 1.11.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,576 kB
  • sloc: xml: 28,086; ruby: 18,456; java: 13,067; ansic: 5,138; yacc: 265; sh: 208; makefile: 27
file content (39 lines) | stat: -rw-r--r-- 835 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
= C/C++ mode style for Nokogiri

Please don't propose commits that only change whitespace. However, if your
commit touches a function or section that is not using MRI Ruby conventions,
feel free to update whitespace in the surrounding code.


= WHITESPACE:

* indent level: 2
* indent type: Always spaces
* line Breaks: LF

This style can be automatically applied by running:

    astyle --indent=spaces=2 \
           --style=1tbs --keep-one-line-blocks \
           --unpad-paren --pad-header --pad-oper --pad-comma \
           --align-pointer=name \
           --break-return-type --attach-return-type-decl \
           --max-code-length=120 \
           $(ack -f --type=cpp --type=cc ext/nokogiri)


= FUNCTION DECLARATION:

ANSI C style:

    type name(args)
    {
      declarations
    
      code
    }

= SOURCES:

* <3<3<3