From caa4e0d6b9a56ea7fb771037bba3f8df07543eac Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 31 Oct 2014 20:03:06 -0400 Subject: [PATCH] CLI - Added debug.parser=3 support to ::decomposeModAttributes. --- src/CLI.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/CLI.cpp b/src/CLI.cpp index 3945c691e..9d59380f8 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -1599,6 +1599,7 @@ void CLI::insertJunctions () //////////////////////////////////////////////////////////////////////////////// void CLI::decomposeModAttributes () { + bool changes = false; std::vector ::iterator a; for (a = _args.begin (); a != _args.end (); ++a) { @@ -1631,6 +1632,7 @@ void CLI::decomposeModAttributes () a->attribute ("value", value); a->tag ("UDA"); a->tag ("MODIFIABLE"); + changes = true; } else if (canonicalize (canonical, "attribute", name)) @@ -1646,12 +1648,18 @@ void CLI::decomposeModAttributes () { a->tag ("MODIFIABLE"); } + + changes = true; } } } } } } + + if (changes && + context.config.getInteger ("debug.parser") >= 3) + context.debug (context.cli.dump ("CLI::analyze decomposeModAttributes")); } ////////////////////////////////////////////////////////////////////////////////