This commit is contained in:
2025-03-12 12:37:19 +03:00
committed by Dudarenko
parent 0c9f0664fd
commit d4fb323f86
428 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
#pragma once
///////////////////////////////////////////////////////////////////
// interface to the annotations
///////////////////////////////////////////////////////////////////
class SgAnnotation
{
public:
// the id of the annotation;
int id;
// the annotation itself;
SgExpression *theannotation;
//the statement it is attached on;
SgStatement *stmt;
SgStatement *scopebegin;
SgStatement *scopeend;
int defined;
SgExpression *thedirective;
char *directiveName;
// pointer to the next annotation for a statement;
SgAnnotation *next;
SgAnnotation(int id);
~SgAnnotation();
char * unparse();
int applyToStatement(SgStatement *stat);
SgExpression **directiveFields;
int nbDirectiveFields;
};