diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-11-08 06:26:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-11-08 09:00:36 +0300 |
commit | 27b37517f8ba113237a7ab58f20eb0c2de40323b (patch) | |
tree | f5e92e027c1de7d4f6bd766c41f08f06a548ae6a /build_files | |
parent | 42df2a7b572e95a0f17542dae01df80fe45f5ee6 (diff) |
Cleanup: use static sets
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/clang_array_check.py | 4 |
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 |