Enhance code robustness with static analyzers
CPPCHECK
Use cppcheck
to help detecting:
- Dead pointers
- Division by zero
- Integer overflows
- Invalid bit shift operands
- Invalid conversions
- Invalid usage of STL
- Memory management
- Null pointer dereferences
- Out of bounds checking
- Uninitialized variables
- Writing const data
GCC
Well define g++
compilation options to ensure better GNU coding convention and reduce common programming errors.