Projects and Files correspond to source files in a multi source application project
Projects and Files correspond to source files in a multi source application project
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