From 27b37517f8ba113237a7ab58f20eb0c2de40323b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 8 Nov 2021 14:26:48 +1100 Subject: Cleanup: use static sets --- build_files/cmake/clang_array_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build_files') 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 -- cgit v1.2.3