From de6f97174ef329a0d919ef7c9a46c6667e6b3640 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 31 Oct 2014 20:04:40 -0400 Subject: [PATCH] CLI - Added debug.parser=3 support to ::decomposeModTags. --- src/CLI.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CLI.cpp b/src/CLI.cpp index 1ba128158..2afd80d03 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -1751,6 +1751,7 @@ void CLI::decomposeModAttributeModifiers () //////////////////////////////////////////////////////////////////////////////// void CLI::decomposeModTags () { + bool changes = false; std::vector ::iterator a; for (a = _args.begin (); a != _args.end (); ++a) { @@ -1771,9 +1772,14 @@ void CLI::decomposeModTags () a->attribute ("name", tag); a->attribute ("sign", sign); a->tag ("TAG"); + changes = true; } } } + + if (changes && + context.config.getInteger ("debug.parser") >= 3) + context.debug (context.cli.dump ("CLI::analyze decomposeModTags")); } ////////////////////////////////////////////////////////////////////////////////