[2/5,gdbsupport] Ignore pathc in codespell check in gdb_tilde_expand.cc
Checks
| Context |
Check |
Description |
| linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Test passed
|
| linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Test passed
|
Commit Message
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.
---
gdbsupport/gdb_tilde_expand.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -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;
}