Add ability to parse __declspec lists to parser.

This commit is contained in:
Matt Pharr
2012-03-21 15:33:58 -07:00
parent 6a7dd2787a
commit ddf350839a
3 changed files with 59 additions and 3 deletions

5
decl.h
View File

@@ -90,7 +90,8 @@ enum StorageClass {
*/
class DeclSpecs {
public:
DeclSpecs(const Type *t = NULL, StorageClass sc = SC_NONE, int tq = TYPEQUAL_NONE);
DeclSpecs(const Type *t = NULL, StorageClass sc = SC_NONE,
int tq = TYPEQUAL_NONE);
void Print() const;
@@ -117,6 +118,8 @@ public:
SOA width specified. Otherwise this is zero.
*/
int soaWidth;
std::vector<std::pair<std::string, SourcePos> > declSpecList;
};