From: <bl...@us...> - 2003-05-10 10:55:18
|
Update of /cvsroot/cpptool/rfta/include/rfta/refactoring In directory sc8-pr-cvs1:/tmp/cvs-serv7548/include/rfta/refactoring Modified Files: RenameTempRefactoring.h Log Message: * fixed crash that occurred when trying to resolve an identifier after it has gone out of scope: { { int index; } index; } => crashed * added test to check that refactoring fail if identifier out of scope Index: RenameTempRefactoring.h =================================================================== RCS file: /cvsroot/cpptool/rfta/include/rfta/refactoring/RenameTempRefactoring.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** RenameTempRefactoring.h 22 Dec 2002 16:03:50 -0000 1.11 --- RenameTempRefactoring.h 10 May 2003 10:55:15 -0000 1.12 *************** *** 23,26 **** --- 23,27 ---- public: /*! Constructs a RenameTempRefactoring object. + * \exception RefactoringError on failure (selection is not a local variable...) */ RenameTempRefactoring( TextDocument &document, *************** *** 30,37 **** --- 31,47 ---- virtual ~RenameTempRefactoring(); + /*! Apply the refactoring, renaming the local variable with the specified name. + * \exception RefactoringError on failure (selection is not a local variable...) + */ void apply( const std::string &newTemporaryName ); + /*! Returns the original local variable name. + * \exception RefactoringError on failure (selection is not a local variable...) + */ const std::string getOldVariableName() const; + /*! Apply the number of occurrences of the local variable. + * \exception RefactoringError on failure (selection is not a local variable...) + */ int getVariableOccurrenceCount() const; |