This class provides access to the local symbol and type tables,and the top level definition,in the dep file it corresponds to
This class provides access to the local symbol and type tables,and the top level definition,in the dep file it corresponds to. Represents files,for all languages.
SgFile(char* file_name)
SgFile(int Language, char* file_name)
~SgFile()
SgFile(SgFile &)
int languageType()
void saveDepFile(char *dep_file)
void unparse(FILE *filedisc)
void unparsestdout()
SgStatement* mainProgram()
SgStatement* functions(int i)
int numberOfFunctions()
SgStatement* getStruct(int i)
int numberOfStructs()
SgStatement* firstStatement()
SgSymbol* firstSymbol()
SgType* firstType()
SgExpression* firstExpression()
SgLabel* firstLabel()
SgExpression* SgExpressionWithId(int i)
SgStatement* SgStatementWithId( int id)
SgStatement* SgStatementAtLine(int lineno)
SgSymbol* SgSymbolWithId( int id)
SgType* SgTypeWithId( int id)
void saveAttributes(char *file)
void saveAttributes(char *file, void (*savefunction)(void *dat, FILE *f))
void readAttributes(char *file)
void readAttributes(char *file, void * (*readfunction)(FILE *f))
int numberOfAttributes()
SgAttribute* attribute(int i)
int SgFile::expressionGarbageCollection(int deleteExpressionNode, int verbose)
Email contact: zgs@npac.syr.edu