Fix clang-tidy cppcoreguidelines-macro-usage warnings in headers

This commit is contained in:
Tim Wojtulewicz 2025-06-10 13:50:28 -07:00
parent 74bf987b82
commit e84c99fb14
31 changed files with 220 additions and 117 deletions

View file

@ -33,6 +33,7 @@ namespace plugin {
*
* @param method_call The \a Manager method corresponding to the hook.
*/
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define PLUGIN_HOOK_VOID(hook, method_call) \
{ \
if ( zeek::plugin_mgr->HavePluginForHook(zeek::plugin::hook) ) \
@ -49,6 +50,7 @@ namespace plugin {
* @param default_result: The result to use if there's no plugin implementing
* the hook.
*/
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define PLUGIN_HOOK_WITH_RESULT(hook, method_call, default_result) \
(zeek::plugin_mgr->HavePluginForHook(zeek::plugin::hook) ? zeek::plugin_mgr->method_call : (default_result))