diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdbsupport/pathstuff.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | fsf-binutils-gdb-users/simark/clang-format.zip fsf-binutils-gdb-users/simark/clang-format.tar.gz fsf-binutils-gdb-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdbsupport/pathstuff.h')
-rw-r--r-- | gdbsupport/pathstuff.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdbsupport/pathstuff.h b/gdbsupport/pathstuff.h index b22a521..77aa66e 100644 --- a/gdbsupport/pathstuff.h +++ b/gdbsupport/pathstuff.h @@ -71,15 +71,14 @@ extern std::string path_join (gdb::array_view<const char *> paths); /* Same as the above, but accept paths as distinct parameters. */ -template<typename ...Args> +template<typename... Args> std::string path_join (Args... paths) { /* It doesn't make sense to join less than two paths. */ - gdb_static_assert (sizeof... (Args) >= 2); + gdb_static_assert (sizeof...(Args) >= 2); - std::array<const char *, sizeof... (Args)> path_array - { paths... }; + std::array<const char *, sizeof...(Args)> path_array { paths... }; return path_join (gdb::array_view<const char *> (path_array)); } @@ -147,7 +146,7 @@ extern std::string get_standard_config_filename (const char *filename); '~/.config/gdb/gdbinit' and then '~/.gdbinit'. */ extern std::string find_gdb_home_config_file (const char *name, - struct stat *buf); + struct stat *buf); /* Return the file name of the user's shell. Normally this comes from the SHELL environment variable. */ |