mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
add vim tip on coding style
@@ -3,4 +3,11 @@
|
||||
3. Don't reinvent a wheel. Try to find appropriate solution in std or boost. If a feature is presented in both, use std.
|
||||
4. Don't bring any additional dependency without discussion. However boost, openssl and zlib can be used in any amount.
|
||||
5. No requirements for formatting or coding style. You can do whatever you like.
|
||||
6. When you work with binary data, mind endianess. Use functions from I2PEndian.h
|
||||
6. When you work with binary data, mind endianess. Use functions from I2PEndian.h
|
||||
|
||||
## Coding styleguide
|
||||
|
||||
While it is not strictly required, most of the code is indented with tabs.
|
||||
If you use vim, you may want to add this line to your .vimrc:
|
||||
|
||||
autocmd BufNewFile,BufRead /home/user/lab/i2pd/*{cpp,h} set noet ts=4 sw=4
|
||||
Reference in New Issue
Block a user