svn merge ^/trunk/blender -r43564:43609
[blender.git] / build_files / cmake / cmake_static_check_cppcheck.py
index 6c13f3a079a12826d46a01a86468be393b71ef45..aba199876981f3f2ecc663c91881a70a2d0ce420 100644 (file)
@@ -40,7 +40,7 @@ CHECKER_ARGS = [
        "--suppress=*:%s/extern/glew/include/GL/glew.h:241" % project_source_info.SOURCE_DIR,
     # "--max-configs=1",  # speeds up execution
     #  "--check-config", # when includes are missing
-    #  "--enable=all",  # if you want sixty hundred pedantic suggestions
+    "--enable=all",  # if you want sixty hundred pedantic suggestions
     ]
 
 
@@ -49,6 +49,8 @@ def main():
 
     check_commands = []
     for c, inc_dirs, defs in source_info:
+        if not 'bevel' in c: continue
+        if 'MOD' in c: continue
         cmd = ([CHECKER_BIN] +
                 CHECKER_ARGS +
                [c] +
@@ -61,7 +63,7 @@ def main():
     process_functions = []
 
     def my_process(i, c, cmd):
-        percent = 100.0 * (i / (len(check_commands) - 1))
+        percent = 100.0 * (i / (len(check_commands)))
         percent_str = "[" + ("%.2f]" % percent).rjust(7) + " %:"
 
         sys.stdout.flush()