THRIFT-897. compiler: Don't allow unqualified constant access to enum values
authorBryan Duxbury <bryanduxbury@apache.org>
Sun, 12 Sep 2010 14:38:36 +0000 (14:38 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Sun, 12 Sep 2010 14:38:36 +0000 (14:38 +0000)
commit9f0a786dad1d6d0d737b89f96ba7ec90bf9096e2
tree55f82378ab02bb36de3d6ea0ba1f25c16c963cf1
parentb6c50e56583d503ab7dcc843d4e09d99f8010ef3
THRIFT-897. compiler: Don't allow unqualified constant access to enum values

This patch makes it illegal to refer to enum values by just their names in the IDL. Now, you must also provide the enum type's name as well.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996320 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/main.cc
compiler/cpp/src/thrifty.yy
test/ThriftTest.thrift