Bug 161529 - Open Include from the Outline view does not automatically resolve the include file
Summary: Open Include from the Outline view does not automatically resolve the include...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.1.1   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 4.0 M5   Edit
Assignee: Anton Leherbauer CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-10-19 04:42 EDT by ashish CLA
Modified: 2008-06-20 10:41 EDT (History)
0 users

See Also:


Attachments
Proposed fix (1.10 KB, patch)
2006-10-20 11:37 EDT, ashish CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ashish CLA 2006-10-19 04:42:33 EDT
I have a project which uses multiple libraries (lib1, lib2, etc.) and the corresponding included headers from the main.c are lib1/public.h, lib2/public.h. In the outline view of main.c, when I click on lib1/public.h, it throws the "Open Include" dialog box asking to choose between the three public.h files.

Since, all the information is there to resolve the included file, it should automatically open the correct header file.
Comment 1 ashish CLA 2006-10-19 13:16:57 EDT
In addition, hyperlink style navigation does not work for include directives. for include directives with just the file name, e.g. #include <stdio.h>, pressing Ctrl key does not enough show hyperlink. For include directives like #include <net/in.h>, pressing Ctrl, displayes hyperlink but clicking on the hyperlink does not take you to the file.
Comment 2 ashish CLA 2006-10-20 11:37:16 EDT
Created attachment 52404 [details]
Proposed fix
Comment 3 Anton Leherbauer CLA 2006-10-21 07:26:39 EDT
(In reply to comment #2)
> Created an attachment (id=52404) [edit]
> Proposed fix
> 

Thanks for the patch, I'll look into it.
Comment 4 Anton Leherbauer CLA 2006-10-23 06:52:06 EDT
Patch looks reasonable. Applied to HEAD.