From ca887131a4494e7c30444ead041c3a5b30a8a635 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 20 Apr 2014 09:30:06 -0400 Subject: [PATCH] CmdCustom - Custom report filters are now tagged acordingly in the parse tree. --- src/commands/CmdCustom.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdCustom.cpp b/src/commands/CmdCustom.cpp index ceeb99388..86d0e9dde 100644 --- a/src/commands/CmdCustom.cpp +++ b/src/commands/CmdCustom.cpp @@ -86,8 +86,14 @@ int CmdCustom::execute (std::string& output) splitq (filterArgs, reportFilter, ' '); std::vector ::reverse_iterator arg; for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg) + { context.a3.capture_first (*arg); + Tree* t = context.a3t.capture_first (*arg); + t->tag ("CUSTOM"); + t->tag ("FILTER"); + } + context.a3.categorize (); context.a3.dump ("A3::categorize"); @@ -127,7 +133,6 @@ int CmdCustom::execute (std::string& output) } // How many lines taken up by table header? - // TODO Consider rc.verbose int table_header = 0; if (context.verbose ("label")) {