Bug 353866 - Rename Refactoring Fails when renaming while editors are dirty
Summary: Rename Refactoring Fails when renaming while editors are dirty
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-refactoring (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-04 06:59 EDT by Lukas Felber CLA
Modified: 2020-09-04 15:16 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Felber CLA 2011-08-04 06:59:31 EDT
Build Identifier:  I20110613-1736

Renaming allows to be run while editors are dirty. This does not work under certain circumstances.

Reproducible: Always

Steps to Reproduce:
1.create following code files:

        //foo.h //saved
        void foo() { }
        
        //main.cpp
        #include "foo.h" //saved
        void main() {
         foo();
        
        //other.cpp //unsaved
        #include "foo.h"
        void other() {
         foo(); //this line was added since last saved
        }
2. open file main.cpp and rename function-reference foo. this will cause foo to be correctly renamed in both foo.h and also main.cpp but will completely skip the foo-call in other.cpp because the foo-reference originating from other.cpp is as jet missing in the index.