Re: Multiple file projects

I had the same problems, parsing a set of C .dep files and storing
some SgExpression pointers for later usage. Some of these SgExpression's
were later pointing to different SgExpression's.
My workaround is:
1) remembering the index of the file for the selected SgExpression's,
2) activating the corresponding file with 
   SgFile *f=project->file(fileindex);  // project instance of class SgProject
   before working with an SgExpression

I hope this information helps.

Andre Christanell