Update of /cvsroot/cpptool/rfta/include/rfta/refactoring
In directory sc8-pr-cvs1:/tmp/cvs-serv7316/include/rfta/refactoring
Modified Files:
InlineTempRefactoring.h
Log Message:
* modified variable decl child node range. It now encompass the ', ' that follow the variable declaration.
Index: InlineTempRefactoring.h
===================================================================
RCS file: /cvsroot/cpptool/rfta/include/rfta/refactoring/InlineTempRefactoring.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** InlineTempRefactoring.h 30 Dec 2002 10:44:58 -0000 1.1
--- InlineTempRefactoring.h 6 Apr 2003 16:17:19 -0000 1.2
***************
*** 51,54 ****
--- 51,55 ----
void calculateTempDeclRange(); //< finds the source range of the temporary declaration
bool isInitializerAtomic(); //< does check the initializer for being an atomic value or not
+ int findTempIndexInDeclaration();
void checkForVariableAssignments();
***************
*** 58,65 ****
ToolsBox::ASTNodes occurrences_; //< occurences of the temporary variable
ASTNodePtr localeVariableNode_; //< ast node of the identifier at selection
! ASTNodePtr temporaryDecl; //< ast node of the declaration of the selected identifier
ASTNodePtr initValue_; //< ast node of the initializer that initializes the selected variable
! SourceRange rangeOfTempDeclaration; //< Range of temporary declaration that is inlined (this range can be erased after inlining)
! bool tempDeclaredInMiddle; //< true if the temporary is declared between other variables.
};
--- 59,65 ----
ToolsBox::ASTNodes occurrences_; //< occurences of the temporary variable
ASTNodePtr localeVariableNode_; //< ast node of the identifier at selection
! ASTNodePtr temporaryDecl_; //< ast node of the declaration of the selected identifier
ASTNodePtr initValue_; //< ast node of the initializer that initializes the selected variable
! SourceRange rangeOfTempDeclaration_; //< Range of temporary declaration that is inlined (this range can be erased after inlining)
};
|