added simple checker for array sizes, uses clang to parse C/C++,
authorCampbell Barton <ideasman42@gmail.com>
Sat, 6 Oct 2012 12:36:21 +0000 (12:36 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 6 Oct 2012 12:36:21 +0000 (12:36 +0000)
commit1e2f475512e5d5614078a6154cfd38a0e05fa6ea
treef50063eb60d1df4e248ca1c73899929487a6ea78
parent4cc29110aa8c2f351f357859752342af28dc8fd5
added simple checker for array sizes, uses clang to parse C/C++,

Warns if an array is passed to a function where the array is declared larger, eg float[2] argument is passed function defined as float[3], (or a greater size).

Existing free static checkers dont do this from what I can tell.
GNUmakefile
build_files/cmake/clang_array_check.py [new file with mode: 0644]
build_files/cmake/cmake_static_check_clang_array.py [new file with mode: 0644]