From: Tom de Vries Date: Thu, 27 Mar 2025 13:20:04 +0000 (+0100) Subject: [gdbsupport] Ignore pathc in codespell check in gdb_tilde_expand.cc X-Git-Tag: binutils-2_45~1044 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5485cfa8dcef32a9e15e6e7835ab83abdc7502c;p=thirdparty%2Fbinutils-gdb.git [gdbsupport] Ignore pathc in codespell check in gdb_tilde_expand.cc Ignore the following codespell detections: ... $ codespell --config gdbsupport/setup.cfg gdbsupport gdbsupport/gdb_tilde_expand.cc:54: pathc ==> patch gdbsupport/gdb_tilde_expand.cc:99: pathc ==> patch ... by adding codespell:ignore comments. --- diff --git a/gdbsupport/gdb_tilde_expand.cc b/gdbsupport/gdb_tilde_expand.cc index 4a0a5734ad8..f0099793cde 100644 --- a/gdbsupport/gdb_tilde_expand.cc +++ b/gdbsupport/gdb_tilde_expand.cc @@ -51,7 +51,7 @@ public: } /* Return the GL_PATHC component of M_GLOB. */ - int pathc () const + int pathc () const /* codespell:ignore */ { return m_glob.gl_pathc; } @@ -96,6 +96,6 @@ gdb_tilde_expand (const char *dir) const gdb_glob glob (to_expand.c_str (), GLOB_TILDE_CHECK, nullptr); - gdb_assert (glob.pathc () == 1); + gdb_assert (glob.pathc () == 1); /* codespell:ignore */ return std::string (glob.pathv ()[0]) + remainder; }