maedoc / libtvb

TVB C library
6 stars 8 forks source link

Static analysis linter #136

Open maedoc opened 8 years ago

maedoc commented 8 years ago

Some coding choices we'd like to enforce automatically like using sd_malloc instead of malloc at least inside library code. Another choice is to use static storage for all data and functions not declared in the API header.

Other linter checks could be useful as well, and a lib like pycparser would be a useful place to start.

Dreaming a little bit, some error analysis for double arithmetic as well.