[RFC,3/3,gdb/contrib] Use shfmt --simplify in shfmt.sh
Checks
Commit Message
Use shfmt --simplify in gdb/contrib/shfmt.sh.
---
gdb/contrib/shfmt.sh | 1 +
gdb/make-init-c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
@@ -50,6 +50,7 @@ with_indent()
--space-redirects \
--case-indent \
--binary-next-line \
+ --simplify \
--write \
"$@"
}
@@ -64,7 +64,7 @@ echo ""
echo " /* If GDB_REVERSE_INIT_FUNCTIONS is set (any value), reverse the"
echo " order in which initialization functions are called. This is"
echo " used by the testsuite. */"
-echo " if (getenv (\"GDB_REVERSE_INIT_FUNCTIONS\") != nullptr)"
+echo ' if (getenv ("GDB_REVERSE_INIT_FUNCTIONS") != nullptr)'
echo " std::reverse (functions.begin (), functions.end ());"
echo ""
echo " for (initialize_file_ftype *function : functions)"