Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 248622

Summary: Extract function fails to extract several expressions
Product: [Tools] CDT Reporter: Emanuel Graf <emanuel>
Component: cdt-buildAssignee: Emanuel Graf <emanuel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: joshua
Version: 5.0   
Target Milestone: 5.0   
Hardware: All   
OS: All   
Whiteboard:

Description Emanuel Graf CLA 2008-09-25 12:38:31 EDT
c++ code that shows the problem.

Build ID: I20080617-2000

Steps To Reproduce:
1. Enter in this code:

#include <string>
#include <iostream.h>

std::string toXML() {
        std::string name;
        name = "hello";
        return "<" + name + ">" + "</" + name + ">";
}

int main() {
        cout << toXML();
        return 0;
}

If you try to extract the end of the line ("</" + name + ">") into a closedTag() method, it simply fails to extract anything and gives an error msg.
Comment 1 Emanuel Graf CLA 2008-11-11 10:40:09 EST
Fixed in 5.0 and HEAD