DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
This style is mostly K&R. Using the GNU indent command line tool as a definition of the K&R style, below is described in detail what options make up the -kr option for the tool and how this style differs. It is also worth noting that most of these formating formatting rules are mainly defaults from emacs, except for the indentation, so hitting TAB to indent the code in emacs will work well.
Using indent
There is a .indent.pro file in the top level of the source tree for Traffic Server. This will be used automaticly when invoking indent from the top level directory.
| Code Block |
|---|
# running indent from the top level directory on the file proxy/Main.cc
$ indent proxy/Main.cc
|
| Code Block |
|---|
# use indent with the following commands $ alias indent='indent -nut -nbad -bap -nbbo -nbc -br -bls -ce -ci2 -cli0 -cs -d0 -di2 -nfc1 -nfca -hnl -i2 -ip0 -l120 -lp -npcs -nprs -psl -saf -sai -saw -nsc -nsob -nss' $ indent foo.cc |
...