From 10df0175d586bee66ae1eaaf7821e44357386aa2 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 22 Jan 2022 15:27:08 +0100 Subject: [PATCH] pattern: Added `[[no_unique_address]]`attribute --- lib/libimhex/include/hex/pattern_language/ast_node.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libimhex/include/hex/pattern_language/ast_node.hpp b/lib/libimhex/include/hex/pattern_language/ast_node.hpp index e2ab1d659..0945ed8c9 100644 --- a/lib/libimhex/include/hex/pattern_language/ast_node.hpp +++ b/lib/libimhex/include/hex/pattern_language/ast_node.hpp @@ -693,6 +693,8 @@ namespace hex::pl { pattern->setComment(*value); } else if (name == "hidden" && noValue()) { pattern->setHidden(true); + } else if (name == "no_unique_address" && noValue()) { + endOffset -= pattern->getSize(); } else if (name == "inline" && noValue()) { auto inlinable = dynamic_cast(pattern);