From: Sven R. <rei...@ma...> - 2003-04-25 13:42:51
|
On Fri, 25 Apr 2003, Baptiste Lepilleur wrote: > Good. > > I've added a test to SplitDeclarationRefactoringTest for declaration > occuring inside for statement. > > What should we do in that case ? If we keep the current semantic of the > refactoring, I think a error should be reported, but on the other hand, we > could change the refactoring to ExtractDeclarationRefactoring. For now, I think an error should be reported. > > For a declaration statement, the semantic remaing identical. > For a declaration occuring in a for statement (initializer), a if or a while > condition, declarations are extracted before the for statement (tricky, may > need to add a compound statement). > > What do you think ? This requires some more sophisticated code analysis, unless we decide to always encapsulate the extracted declaration and the for statement in a new compound. Let's keep this on the TODO list. Sven. > Baptiste. > > ----- Original Message ----- > From: "Sven Reichard" <rei...@ma...> > To: "CppTool Mailing List" <Cpp...@li...> > Sent: Thursday, April 24, 2003 6:29 PM > Subject: [Cpptool-develop] space problem > > > > I solved the "space problem" that occured when rewriting declarator > > expression. I'm currently checking in the changes. > > > > My past remarks about keeping pointers to deleted elements are obsolete. > > Sorry about the confusion. > > > > Sven. > > > > -- > > Sven Reichard > > Dept. of Math. Sci. > > University of Delaware > > rei...@ma... > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Cpptool-develop mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cpptool-develop > -- Sven Reichard Dept. of Math. Sci. University of Delaware rei...@ma... |