aboutsummaryrefslogtreecommitdiff
path: root/gcc/function-tests.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-09-28 14:54:59 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-09-28 21:20:21 +0100
commit6b5c3f9b8139d9eee358b354b35da0b757a0270d (patch)
tree3059819ccb42c3ef40d35506c5290dddbf4b91aa /gcc/function-tests.cc
parent0ef4cc8225f8669463bca501f36b6951967a692a (diff)
downloadgcc-6b5c3f9b8139d9eee358b354b35da0b757a0270d.zip
gcc-6b5c3f9b8139d9eee358b354b35da0b757a0270d.tar.gz
gcc-6b5c3f9b8139d9eee358b354b35da0b757a0270d.tar.bz2
libstdc++: Reformat Python code
Some of these changes were suggested by autopep8's --aggressive option, others are for readability. Break long lines by splitting strings across multiple lines, or introducing local variables to hold results. Use raw strings for regular expressions, so that backslashes don't need to be escaped. libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py: Break long lines. Use raw strings for regular expressions. Add whitespace around operators. (is_member_of_namespace): Use isinstance to check type. (is_specialization_of): Likewise. Adjust template_name for versioned namespace instead of duplicating the re.match call. (StdExpAnyPrinter._string_types): New static method. (StdExpAnyPrinter.to_string): Use _string_types.
Diffstat (limited to 'gcc/function-tests.cc')
0 files changed, 0 insertions, 0 deletions