]> andersk Git - svn-all-fast-export.git/blobdiff - src/ruleparser.cpp
Beautify the rule debug output
[svn-all-fast-export.git] / src / ruleparser.cpp
index b17bb9631180de81e1a120fe6f6714b3735ee7cd..c90d10346173d8c36e5fe68cd19628ee9c6c62cc 100644 (file)
@@ -139,3 +139,12 @@ void Rules::load()
         }
     }
 }
+
+#ifndef QT_NO_DEBUG_STREAM
+QDebug operator<<(QDebug s, const Rules::Match &rule)
+{
+    s.nospace() << rule.rx.pattern() << " (line " << rule.lineNumber << ")";
+    return s.maybeSpace();
+}
+
+#endif
This page took 0.023625 seconds and 4 git commands to generate.