From 04dd340684526cdecbeddafc42c253331c87b031 Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Thu, 2 Nov 2023 10:07:53 +0000 Subject: [PATCH] fix(userspace/engine): solve description of macro-only rules Signed-off-by: Jason Dellaluce --- userspace/engine/filter_details_resolver.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/userspace/engine/filter_details_resolver.cpp b/userspace/engine/filter_details_resolver.cpp index d4b88414792..5939f1f623d 100644 --- a/userspace/engine/filter_details_resolver.cpp +++ b/userspace/engine/filter_details_resolver.cpp @@ -41,6 +41,8 @@ void filter_details::reset() void filter_details_resolver::run(ast::expr* filter, filter_details& details) { visitor v(details); + // note: we may have ASTs composed on only one macro ref + v.m_expect_macro = true; filter->accept(&v); }