Bug 513382 - [Call Hierarchy] FEATUREREQUEST: support for #define constants
Summary: [Call Hierarchy] FEATUREREQUEST: support for #define constants
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: Next   Edit
Hardware: PC Windows NT
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-09 09:25 EST by Jasper Reichardt CLA
Modified: 2020-09-04 15:24 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 Jasper Reichardt CLA 2017-03-09 09:25:40 EST
Call Hierarchy (Ctrl+Alt+H) works for variables, fields, structs, types and functions.

But how do i visualize the occurrences of a #define constant in Eclipse?

e.g.: #define ObjSpc   "IEDM1CPUWTG"

-> I have to use the Source-Search, which is impracticable.

This would be a Feature that improves the workflow of thousands of developers - with (i think so) very low cost of implementation, since this seems to me to not have any (or very small) impact on other modules.  

thanks,
Gewure
Comment 1 Marc-André Laperle CLA 2017-03-09 09:33:14 EST
(In reply to Jasper Reichardt from comment #0)
> But how do i visualize the occurrences of a #define constant in Eclipse?

Have you tried Ctrl+Shift+G ? This one finds occurrences in the workspace but without the hierarchy, which is probably what you need.
Comment 2 Jasper Reichardt CLA 2017-03-09 09:50:43 EST
(In reply to Marc-André Laperle from comment #1)
> (In reply to Jasper Reichardt from comment #0)
> > But how do i visualize the occurrences of a #define constant in Eclipse?
> 
> Have you tried Ctrl+Shift+G ? This one finds occurrences in the workspace
> but without the hierarchy, which is probably what you need.

Oh, i didn't know this. Yes, this works. Thanks for the help.
Still i think this feature wouldn't be the worst!