glsl: Add an is_declaration field to ast_struct_specifier.
authorMatt Turner <mattst88@gmail.com>
Wed, 26 Jun 2013 22:53:12 +0000 (15:53 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 12 Jul 2013 03:58:59 +0000 (20:58 -0700)
commit8d45caaebaa017e910ae985e005fadc6b626de7d
tree387d04eec10a9d4e9ad5a0b6ed2d61af3e07b06f
parent5df807b06f20d53063af9cfc5b4fc867f5fb810a
glsl: Add an is_declaration field to ast_struct_specifier.

Will be used in a later commit to differentiate between a structure type
declaration and a variable declaration of a struct type. I.e., the
difference between

   struct S { float x; }; (is_declaration = true)

and

   S s;                   (is_declaration = false)

Also note that is_declaration = true for

   struct S { float x; } s;

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast.h
src/glsl/glsl_parser_extras.cpp