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/gdb_vecs.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdbsupport/gdb_vecs.h')
-rw-r--r-- | gdbsupport/gdb_vecs.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdbsupport/gdb_vecs.h b/gdbsupport/gdb_vecs.h index 1f1b69b..959faf7 100644 --- a/gdbsupport/gdb_vecs.h +++ b/gdbsupport/gdb_vecs.h @@ -25,12 +25,12 @@ You may modify the returned strings. */ extern std::vector<gdb::unique_xmalloc_ptr<char>> - delim_string_to_char_ptr_vec (const char *str, char delimiter); +delim_string_to_char_ptr_vec (const char *str, char delimiter); /* Like dirnames_to_char_ptr_vec, but append the directories to *VECP. */ -extern void dirnames_to_char_ptr_vec_append - (std::vector<gdb::unique_xmalloc_ptr<char>> *vecp, const char *dirnames); +extern void dirnames_to_char_ptr_vec_append ( + std::vector<gdb::unique_xmalloc_ptr<char>> *vecp, const char *dirnames); /* Split DIRNAMES by DIRNAME_SEPARATOR delimiter and return a list of all the elements in their original order. For empty string ("") DIRNAMES return @@ -39,12 +39,12 @@ extern void dirnames_to_char_ptr_vec_append You may modify the returned strings. */ extern std::vector<gdb::unique_xmalloc_ptr<char>> - dirnames_to_char_ptr_vec (const char *dirnames); +dirnames_to_char_ptr_vec (const char *dirnames); /* Remove the element pointed by iterator IT from VEC, not preserving the order of the remaining elements. Return the removed element. */ -template <typename T> +template<typename T> T unordered_remove (std::vector<T> &vec, typename std::vector<T>::iterator it) { @@ -61,7 +61,7 @@ unordered_remove (std::vector<T> &vec, typename std::vector<T>::iterator it) /* Remove the element at position IX from VEC, not preserving the order of the remaining elements. Return the removed element. */ -template <typename T> +template<typename T> T unordered_remove (std::vector<T> &vec, typename std::vector<T>::size_type ix) { @@ -73,7 +73,7 @@ unordered_remove (std::vector<T> &vec, typename std::vector<T>::size_type ix) /* Remove the element at position IX from VEC, preserving the order the remaining elements. Return the removed element. */ -template <typename T> +template<typename T> T ordered_remove (std::vector<T> &vec, typename std::vector<T>::size_type ix) { |