Fix clang-tidy modernize-use-using warnings in headers

This commit is contained in:
Tim Wojtulewicz 2025-06-10 11:52:42 -07:00
parent 6f79a6381f
commit 74bf987b82
2 changed files with 2 additions and 1 deletions

View file

@ -16,7 +16,7 @@
// These are defined in ares headers but we don't want to have to include
// those headers here and create install dependencies on them.
struct ares_channeldata;
typedef struct ares_channeldata* ares_channel;
using ares_channel = struct ares_channeldata*;
#ifndef T_PTR
#define T_PTR 12
#endif

View file

@ -68,6 +68,7 @@ int find_all_matching_cmds(const std::string& prefix, const char* array_of_match
// These functions return <= 0 if failure, > 0 for success.
// More particular return values are command-specific: see comments w/function.
// NOLINTNEXTLINE(modernize-use-using)
typedef int DbgCmdFn(DebugCmd cmd, const std::vector<std::string>& args);
DbgCmdFn dbg_cmd_backtrace;