From 5d662c0efacbb4eea24cee5f601d393f7f2ce551 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 31 Oct 2014 20:03:54 -0400 Subject: [PATCH] CLI - Added debug.parser=3 support to ::decomposeModAttributeModifiers. --- src/CLI.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/CLI.cpp b/src/CLI.cpp index 9d59380f8..1ba128158 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -1665,6 +1665,7 @@ void CLI::decomposeModAttributes () //////////////////////////////////////////////////////////////////////////////// void CLI::decomposeModAttributeModifiers () { + bool changes = false; std::vector ::iterator a; for (a = _args.begin (); a != _args.end (); ++a) { @@ -1713,6 +1714,7 @@ void CLI::decomposeModAttributeModifiers () a->attribute ("value", value); a->tag ("UDA"); a->tag ("MODIFIABLE"); + changes = true; } else if (canonicalize (canonical, "attribute", name)) @@ -1730,6 +1732,8 @@ void CLI::decomposeModAttributeModifiers () { a->tag ("MODIFIABLE"); } + + changes = true; } } } @@ -1738,6 +1742,10 @@ void CLI::decomposeModAttributeModifiers () } } } + + if (changes && + context.config.getInteger ("debug.parser") >= 3) + context.debug (context.cli.dump ("CLI::analyze decomposeModAttributeModifiers")); } ////////////////////////////////////////////////////////////////////////////////