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>2021-11-08 06:26:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-11-08 06:52:08 +0300
commitc516659b5e2bb118a5d9f28d49477d2ac1f24b08 (patch)
tree003157e361c23502ad7bb23ada328212a00a580b /build_files/cmake
parent56ee96349dce3826999a1ebcfff890d8066dce50 (diff)
Cleanup: use static sets
Diffstat (limited to 'build_files/cmake')
-rw-r--r--build_files/cmake/clang_array_check.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/build_files/cmake/clang_array_check.py b/build_files/cmake/clang_array_check.py
index 09ff4f413db..63f86b5aab7 100644
--- a/build_files/cmake/clang_array_check.py
+++ b/build_files/cmake/clang_array_check.py
@@ -168,7 +168,7 @@ def function_parm_wash_tokens(parm):
# if tokens[-1].kind == To
# remove trailing char
if tokens[-1].kind == TokenKind.PUNCTUATION:
- if tokens[-1].spelling in (",", ")", ";"):
+ if tokens[-1].spelling in {",", ")", ";"}:
tokens.pop()
# else:
# print(tokens[-1].spelling)
@@ -179,7 +179,7 @@ def function_parm_wash_tokens(parm):
t_spelling = t.spelling
ok = True
if t_kind == TokenKind.KEYWORD:
- if t_spelling in ("const", "restrict", "volatile"):
+ if t_spelling in {"const", "restrict", "volatile"}:
ok = False
elif t_spelling.startswith("__"):
ok = False # __restrict