commit | 6fe77e8e660139dbe7ad2b52e5ca3d0e5a0de7ca | [log] [tgz] |
---|---|---|
author | Jens Geyer <jensg@apache.org> | 周日 3月 16 16:48:53 2014 +0200 |
committer | Jens Geyer <jensg@apache.org> | 周一 3月 17 22:51:21 2014 +0200 |
tree | ed654704703946bc634b2b9465c16a84ef6990c2 | |
parent | 5b78958864475204dc15590742ae1bc7f4df33ca [diff] [blame] |
THRIFT-2404 emit warning on (typically inefficient) list<byte> Patch: Jens Geyer
diff --git a/compiler/cpp/src/thrifty.yy b/compiler/cpp/src/thrifty.yy index fd72b70..7c4a90b 100755 --- a/compiler/cpp/src/thrifty.yy +++ b/compiler/cpp/src/thrifty.yy
@@ -1213,6 +1213,7 @@ tok_list '<' FieldType '>' CppType { pdebug("ListType -> tok_list<FieldType>"); + check_for_list_of_bytes($3); $$ = new t_list($3); if ($5 != NULL) { ((t_container*)$$)->set_cpp_name(std::string($5));