Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-dev-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-dev-tools
Commits
135f5550
Commit
135f5550
authored
11 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
style cleanup
parent
4c92a0be
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
check_source/check_descriptions.py
+1
-0
1 addition, 0 deletions
check_source/check_descriptions.py
check_source/check_style_c.py
+2
-3
2 additions, 3 deletions
check_source/check_style_c.py
utils/blender_update_themes.py
+1
-1
1 addition, 1 deletion
utils/blender_update_themes.py
with
4 additions
and
4 deletions
check_source/check_descriptions.py
+
1
−
0
View file @
135f5550
...
@@ -136,6 +136,7 @@ def check_duplicates():
...
@@ -136,6 +136,7 @@ def check_duplicates():
if
test
:
if
test
:
print
(
"
Invalid
'
DUPLICATE_WHITELIST
'
: %r
"
%
test
)
print
(
"
Invalid
'
DUPLICATE_WHITELIST
'
: %r
"
%
test
)
def
main
():
def
main
():
check_duplicates
()
check_duplicates
()
...
...
This diff is collapsed.
Click to expand it.
check_source/check_style_c.py
+
2
−
3
View file @
135f5550
...
@@ -415,8 +415,6 @@ def blender_check_kw_if(index_kw_start, index_kw, index_kw_end):
...
@@ -415,8 +415,6 @@ def blender_check_kw_if(index_kw_start, index_kw, index_kw_end):
del
ws_indent
del
ws_indent
del
l_last
del
l_last
# check for: if () { ... };
# check for: if () { ... };
#
#
# no need to have semicolon after brace.
# no need to have semicolon after brace.
...
@@ -565,7 +563,6 @@ def blender_check_kw_switch(index_kw_start, index_kw, index_kw_end):
...
@@ -565,7 +563,6 @@ def blender_check_kw_switch(index_kw_start, index_kw, index_kw_end):
#~ print("Commment '%s'" % tokens[i].text)
#~ print("Commment '%s'" % tokens[i].text)
pass
pass
elif
tokens
[
i
].
type
==
Token
.
Keyword
:
elif
tokens
[
i
].
type
==
Token
.
Keyword
:
if
tokens
[
i
].
text
in
{
"
break
"
,
"
return
"
,
"
continue
"
,
"
goto
"
}:
if
tokens
[
i
].
text
in
{
"
break
"
,
"
return
"
,
"
continue
"
,
"
goto
"
}:
if
tokens
[
i_case
].
line
==
tokens
[
i
].
line
:
if
tokens
[
i_case
].
line
==
tokens
[
i
].
line
:
...
@@ -927,6 +924,7 @@ import re
...
@@ -927,6 +924,7 @@ import re
re_ifndef
=
re
.
compile
(
"
^\s*#\s*ifndef\s+([A-z0-9_]+).*$
"
)
re_ifndef
=
re
.
compile
(
"
^\s*#\s*ifndef\s+([A-z0-9_]+).*$
"
)
re_define
=
re
.
compile
(
"
^\s*#\s*define\s+([A-z0-9_]+).*$
"
)
re_define
=
re
.
compile
(
"
^\s*#\s*define\s+([A-z0-9_]+).*$
"
)
def
quick_check_include_guard
(
lines
):
def
quick_check_include_guard
(
lines
):
found
=
0
found
=
0
def_value
=
""
def_value
=
""
...
@@ -982,6 +980,7 @@ def quick_check_source(fp, code, args):
...
@@ -982,6 +980,7 @@ def quick_check_source(fp, code, args):
quick_check_indentation
(
lines
)
quick_check_indentation
(
lines
)
def
scan_source
(
fp
,
code
,
args
):
def
scan_source
(
fp
,
code
,
args
):
# print("scanning: %r" % fp)
# print("scanning: %r" % fp)
...
...
This diff is collapsed.
Click to expand it.
utils/blender_update_themes.py
+
1
−
1
View file @
135f5550
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
# this script updates XML themes once new settings are added
# 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
bpy
import
os
import
os
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment