diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-16 12:20:21 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-16 12:20:21 +0400 |
commit | 2222f536f81210b557f62a5ea037aa9fa7f4e98b (patch) | |
tree | 3a8b96e2b8cb1cf93fa8422e98e0c577649f8674 /build_files/cmake | |
parent | 0849eaebbfe6cf08a2a7f52ff79cc3e9cc4f0657 (diff) |
use replace 0 with NULL for pointers, set some functions static
also fixed own errors in recent static check commit.
Diffstat (limited to 'build_files/cmake')
-rw-r--r-- | build_files/cmake/cmake_static_check_cppcheck.py | 11 | ||||
-rw-r--r-- | build_files/cmake/cmake_static_check_sparse.py | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/build_files/cmake/cmake_static_check_cppcheck.py b/build_files/cmake/cmake_static_check_cppcheck.py index 9b03bbf3982..4249537eca8 100644 --- a/build_files/cmake/cmake_static_check_cppcheck.py +++ b/build_files/cmake/cmake_static_check_cppcheck.py @@ -23,6 +23,11 @@ # <pep8 compliant> +import project_source_info +import subprocess +import sys +import os + CHECKER_IGNORE_PREFIX = [ "extern", "intern/moto", @@ -31,15 +36,11 @@ CHECKER_IGNORE_PREFIX = [ CHECKER_BIN = "cppcheck" CHECKER_ARGS = [ - "-I/dsk/data/src/blender/blender/extern/glew/include", + "-I" + os.join(project_source_info.SORCE_DIR, "blender/extern/glew/include"), # "--check-config", # when includes are missing # "--enable=all", # if you want sixty hundred pedantic suggestions ] -import project_source_info -import subprocess -import sys - def main(): source_info = project_source_info.build_info(ignore_prefix_list=CHECKER_IGNORE_PREFIX) diff --git a/build_files/cmake/cmake_static_check_sparse.py b/build_files/cmake/cmake_static_check_sparse.py index 8b300548c42..740569708b5 100644 --- a/build_files/cmake/cmake_static_check_sparse.py +++ b/build_files/cmake/cmake_static_check_sparse.py @@ -23,7 +23,7 @@ # <pep8 compliant> -CHECKER_IGNORE_SUFFIX = [ +CHECKER_IGNORE_PREFIX = [ "extern", "intern/moto", ] |