wpantund
wpantund copied to clipboard
Code style guide
I noticed that the code style is not consistent in this repo. Shall we provide a code style guide?
How about apply the same code style of OpenThread? @abtink
The style that I used when I started this project was:
- Tabs are used for indentation. Tabs are assumed to be four spaces but should not be used for alignment.
- Spaces are used for alignment.
- Otherwise the style loosely follows that of the linux kernel or K&R.
The naming style is a bit of a mess admittedly.
I would recommend not changing the indentation of the entire project. That will make using git blame
tedious.