From 74bf987b8219540726e8de48ff3e3cc2ebf5e319 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Tue, 10 Jun 2025 11:52:42 -0700 Subject: [PATCH] Fix clang-tidy modernize-use-using warnings in headers --- src/DNS_Mgr.h | 2 +- src/DebugCmds.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DNS_Mgr.h b/src/DNS_Mgr.h index 55f7c3a356..9f079afb71 100644 --- a/src/DNS_Mgr.h +++ b/src/DNS_Mgr.h @@ -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 diff --git a/src/DebugCmds.h b/src/DebugCmds.h index 9be4095eb5..52384275c8 100644 --- a/src/DebugCmds.h +++ b/src/DebugCmds.h @@ -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& args); DbgCmdFn dbg_cmd_backtrace;