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

Bug 100639

Summary: After editing a cpp/h file, getTranslationUnit returns still returns the old TranslationUnit
Product: [Tools] CDT Reporter: Mohamed Badr <mobadr>
Component: cdt-parserAssignee: John Camelon <john.camelon>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: mobadr
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Mohamed Badr CLA 2005-06-17 14:38:15 EDT
To reproduce the defect, I used C++ Visualizer.
I have file a.h with class A, and file b.h which includes file a.h and it has 
a class B that inhirets class A.

Steps
1-Drop class B in a class Diagram,
  "getTranslationUnit is called for b.h"
2-Drop class A in the class diagram,
  "No need to call getTranslationUnit for file a.h since it is included 
already in the TranslationUnit for b.h"

3-go to a.h and add a new method or field to class A
  "Now I tried to update the TranslationUnit for file b.h which includes a.h 
but the TranslationUnit only returns the old contents"
Comment 1 John Camelon CLA 2005-06-17 14:42:41 EDT

*** This bug has been marked as a duplicate of 100637 ***