Project

General

Profile

Devtools » History » Version 7

laforge, 02/21/2016 02:27 PM

1 6 k
2 7 laforge
h2. C tools
3 1 k
4 7 laforge
h3. Formatting
5 1 k
6 7 laforge
Lindent, reformat C code to the Linux kernel (and osmocom) coding standards
7
8 1 k
h2. Patches
9
10 7 laforge
* @git format-patch -1@, generate a patch
11
* @checkpatch.pl@, check patches for common errors (Ignore x-signed-off-by)
12
* @make distcheck@ catches quite a few errors, run it before sending patches.
13
* @git send-email -1@ Send a patch to the mailing list (after configuration)
14 1 k
15 5 k
h2. Testing
16 1 k
17 7 laforge
* @make check@: run it and don't introduce regressions
18 1 k
19
h2. Misc
20
21 7 laforge
* pahole (dwarves), http://www.ohloh.net/p/pahole See the memory layout of structures
22
* gdb, debugging
23
* valgrind, http://valgrind.org/, dynamic analysis of memory management/threading
24
* mudflap (gcc option), check array/pointer accesses. See http://zecke.blogspot.com/2012/10/know-your-tools-mudflap.html
25 6 k
26
27 7 laforge
h2. Python tools
28 2 k
29 7 laforge
h3. Formatting
30 1 k
31 7 laforge
* pep8, https://pypi.python.org/pypi/pep8 Check formatting for pep8 compliance
32
* autopep8, https://github.com/hhatto/autopep8 Reformat code to be pep8-complient
33 6 k
34 7 laforge
h3. Checking/analysis
35 3 k
36 7 laforge
* pyflakes, https://pypi.python.org/pypi/pyflakes Statically find some errors
Add picture from clipboard (Maximum size: 48.8 MB)