Skip to content
Snippets Groups Projects
Commit 135f5550 authored by Campbell Barton's avatar Campbell Barton
Browse files

style cleanup

parent 4c92a0be
Branches
Tags
No related merge requests found
......@@ -136,6 +136,7 @@ def check_duplicates():
if test:
print("Invalid 'DUPLICATE_WHITELIST': %r" % test)
def main():
check_duplicates()
......
......@@ -415,8 +415,6 @@ def blender_check_kw_if(index_kw_start, index_kw, index_kw_end):
del ws_indent
del l_last
# check for: if () { ... };
#
# no need to have semicolon after brace.
......@@ -565,7 +563,6 @@ def blender_check_kw_switch(index_kw_start, index_kw, index_kw_end):
#~ print("Commment '%s'" % tokens[i].text)
pass
elif tokens[i].type == Token.Keyword:
if tokens[i].text in {"break", "return", "continue", "goto"}:
if tokens[i_case].line == tokens[i].line:
......@@ -927,6 +924,7 @@ import re
re_ifndef = re.compile("^\s*#\s*ifndef\s+([A-z0-9_]+).*$")
re_define = re.compile("^\s*#\s*define\s+([A-z0-9_]+).*$")
def quick_check_include_guard(lines):
found = 0
def_value = ""
......@@ -982,6 +980,7 @@ def quick_check_source(fp, code, args):
quick_check_indentation(lines)
def scan_source(fp, code, args):
# print("scanning: %r" % fp)
......
......@@ -20,7 +20,7 @@
# this script updates XML themes once new settings are added
#
# ./blender.bin --background --python source/tools/update_themes.py
# ./blender.bin --background --python source/tools/utils/blender_update_themes.py
import bpy
import os
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment