summaryrefslogtreecommitdiff
path: root/tools/split-select/Rule.cpp
diff options
context:
space:
mode:
author Adam Lesinski <adamlesinski@google.com> 2014-11-10 14:32:11 -0800
committer Adam Lesinski <adamlesinski@google.com> 2014-11-10 14:32:11 -0800
commit4d29c6693090cb9a0be209f9cfd0aef307fe52ed (patch)
tree65c9af94f6045205dda8a337ad2ca9fc7d844944 /tools/split-select/Rule.cpp
parent984d81c3937d46240fb9645ffa37c5166284a983 (diff)
parentfa31eb2cd1705cdb77f8d8dd9b5761bc773cbb9d (diff)
Merge commit 'fa31eb2c' into manualmerge
Conflicts: tools/split-select/RuleGenerator_test.cpp Change-Id: I0d1261301d433f32e857cf1b0d75a861205f7625
Diffstat (limited to 'tools/split-select/Rule.cpp')
-rw-r--r--tools/split-select/Rule.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/split-select/Rule.cpp b/tools/split-select/Rule.cpp
index 9559fe2fea1b..48d21ff35c8d 100644
--- a/tools/split-select/Rule.cpp
+++ b/tools/split-select/Rule.cpp
@@ -29,6 +29,16 @@ inline static void indentStr(String8& str, int indent) {
}
}
+Rule::Rule(const Rule& rhs)
+ : RefBase()
+ , op(rhs.op)
+ , key(rhs.key)
+ , negate(rhs.negate)
+ , stringArgs(rhs.stringArgs)
+ , longArgs(rhs.longArgs)
+ , subrules(rhs.subrules) {
+}
+
String8 Rule::toJson(int indent) const {
String8 str;
indentStr(str, indent);