Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-09-16 12:20:21 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-16 12:20:21 +0400
commit2222f536f81210b557f62a5ea037aa9fa7f4e98b (patch)
tree3a8b96e2b8cb1cf93fa8422e98e0c577649f8674 /build_files/cmake/cmake_static_check_cppcheck.py
parent0849eaebbfe6cf08a2a7f52ff79cc3e9cc4f0657 (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/cmake_static_check_cppcheck.py')
-rw-r--r--build_files/cmake/cmake_static_check_cppcheck.py11
1 files changed, 6 insertions, 5 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)