Bug 520716 - Index file "includes" are not updated when a previously included header is deleted
Summary: Index file "includes" are not updated when a previously included header is de...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 9.4.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-08 16:13 EDT by Marc-André Laperle CLA
Modified: 2020-09-04 15:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2017-08-08 16:13:19 EDT
Using master.


1. Create those two files in an empty project:
header.h:

<empty>

source.cpp:

#include "header.h"

2. Right-click on source.cpp, Show in, Include Browser
3. Make sure the view is in mode "Show Files Includes" (toolbar button). You should see a tree containing
source.cpp
  header.h
4. Delete header.h
5. Press the refresh button in the Include Browser: The include relationship is still there.
6. Edit source.cpp to remove the #include line and refresh the view again: The include relationship is still there.

It seems that there could be a flaw in the PDOM code when a file is deleted, the include relationship is not removed.