From 40f7d40e394657575001a8146d8233f1fc4356fd Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 12 Oct 2025 22:46:54 -0400 Subject: [WARP] Improve UX surrounding removal of matched functions - Adds Python API to remove matched function - Adds command + UI actions to remove matched function - Adds command + UI actions to ignore function in subsequent matches --- plugins/warp/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/warp/src/lib.rs') diff --git a/plugins/warp/src/lib.rs b/plugins/warp/src/lib.rs index 50ad3889..9f40acef 100644 --- a/plugins/warp/src/lib.rs +++ b/plugins/warp/src/lib.rs @@ -58,6 +58,14 @@ fn get_warp_include_tag_type(view: &BinaryView) -> Ref { .unwrap_or_else(|| view.create_tag_type(INCLUDE_TAG_NAME, INCLUDE_TAG_ICON)) } +const IGNORE_TAG_ICON: &str = "🧊"; +const IGNORE_TAG_NAME: &str = "WARP: Ignored Function"; + +fn get_warp_ignore_tag_type(view: &BinaryView) -> Ref { + view.tag_type_by_name(IGNORE_TAG_NAME) + .unwrap_or_else(|| view.create_tag_type(IGNORE_TAG_NAME, IGNORE_TAG_ICON)) +} + pub fn core_signature_dir() -> PathBuf { // Get core signatures for the given platform let install_dir = binaryninja::install_directory(); -- cgit v1.3.1