Skip to content

Commit 18c7e9d

Browse files
More formatting
1 parent 887574c commit 18c7e9d

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

libcxx/test/libcxx/header_inclusions.gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
header_guard = lambda h: f"_LIBCPP_{h.upper().replace('.', '_').replace('/', '_')}"
2626

2727
# <cassert> has no header guards
28-
if header == 'cassert':
28+
if header == "cassert":
2929
checks = ""
3030
else:
3131
checks = f"""

libcxx/test/libcxx/no_assert_include.gen.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,18 @@
1414
import sys
1515

1616
sys.path.append(sys.argv[1])
17-
from libcxx.header_information import lit_header_restrictions, header_undeprecations, public_headers
17+
from libcxx.header_information import (
18+
lit_header_restrictions,
19+
header_undeprecations,
20+
public_headers,
21+
)
1822

1923
for header in public_headers:
20-
if header == 'cassert':
21-
continue
24+
if header == "cassert":
25+
continue
2226

23-
print(f"""\
27+
print(
28+
f"""\
2429
//--- {header}.compile.pass.cpp
2530
{lit_header_restrictions.get(header, '')}
2631
{header_undeprecations.get(header, '')}
@@ -30,4 +35,5 @@
3035
#ifdef assert
3136
# error "Do not include cassert or assert.h in standard header files"
3237
#endif
33-
""")
38+
"""
39+
)

0 commit comments

Comments
 (0)