From: Baptiste L. <gai...@fr...> - 2003-04-25 08:04:03
|
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 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 ? 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... |