Skip to content

Commit 03d72df

Browse files
committed
Python darker format fixes
1 parent d76a82f commit 03d72df

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

clang/utils/generate_unsupported_in_drivermode.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ def find_supported_seq_cmp_start(supported_sequence, low, high, search_option):
235235
return middle
236236

237237
if (
238-
len(supported_sequence[middle].option_name)
239-
<= len(search_option)
240-
< len(supported_sequence[middle - 1].option_name)
238+
len(supported_sequence[middle].option_name)
239+
<= len(search_option)
240+
< len(supported_sequence[middle - 1].option_name)
241241
):
242242
return middle
243243
elif len(supported_sequence[middle].option_name) <= len(search_option):
@@ -261,12 +261,12 @@ def get_lit_test_note(test_visibility):
261261
test_prefix = EXCLAMATION if test_visibility == VISIBILITY_FLANG else SLASH_SLASH
262262

263263
return (
264-
f"{test_prefix}UNSUPPORTED: system-windows\n"
265-
f"{test_prefix}NOTE: This lit test was automatically generated to validate "
266-
"unintentionally exposed arguments to various driver flavours.\n"
267-
f"{test_prefix}NOTE: To make changes, see "
268-
+ Path(__file__).resolve().as_posix()
269-
+ " from which it was generated.\n\n"
264+
f"{test_prefix}UNSUPPORTED: system-windows\n"
265+
f"{test_prefix}NOTE: This lit test was automatically generated to validate "
266+
"unintentionally exposed arguments to various driver flavours.\n"
267+
f"{test_prefix}NOTE: To make changes, see "
268+
+ Path(__file__).resolve().as_posix()
269+
+ " from which it was generated.\n\n"
270270
)
271271

272272

@@ -284,11 +284,11 @@ def write_lit_test(test_path, test_visibility, unsupported_list):
284284

285285
for index, unsupported_pair in enumerate(unsupported_list):
286286
is_flang_pair = (
287-
unsupported_pair.driver == VISIBILITY_FLANG
288-
or unsupported_pair.driver == VISIBILITY_FC1
287+
unsupported_pair.driver == VISIBILITY_FLANG
288+
or unsupported_pair.driver == VISIBILITY_FC1
289289
)
290290
if (test_visibility == VISIBILITY_FLANG and not is_flang_pair) or (
291-
test_visibility == VISIBILITY_DEFAULT and is_flang_pair
291+
test_visibility == VISIBILITY_DEFAULT and is_flang_pair
292292
):
293293
continue
294294

@@ -299,8 +299,8 @@ def write_lit_test(test_path, test_visibility, unsupported_list):
299299

300300
prefix_str = SLASH_SLASH
301301
if (
302-
unsupported_pair.driver == VISIBILITY_FLANG
303-
or unsupported_pair.driver == VISIBILITY_FC1
302+
unsupported_pair.driver == VISIBILITY_FLANG
303+
or unsupported_pair.driver == VISIBILITY_FC1
304304
):
305305
prefix_str = EXCLAMATION
306306

@@ -328,8 +328,8 @@ def write_lit_test(test_path, test_visibility, unsupported_list):
328328
# create one statement per driver. Not all options return error messages that include their option name
329329
for driver in driver_controller:
330330
is_flang_driver = (
331-
driver.visibility_str == VISIBILITY_FLANG
332-
or driver.visibility_str == VISIBILITY_FC1
331+
driver.visibility_str == VISIBILITY_FLANG
332+
or driver.visibility_str == VISIBILITY_FC1
333333
)
334334

335335
if test_visibility == VISIBILITY_FLANG and not is_flang_driver:

0 commit comments

Comments
 (0)