Bug 526114 - Make Open Declaration in inactive code blocks more accurate
Summary: Make Open Declaration in inactive code blocks more accurate
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: Next   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: 510478
  Show dependency tree
 
Reported: 2017-10-16 17:35 EDT by Nathan Ridge CLA
Modified: 2020-09-04 15:26 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 Nathan Ridge CLA 2017-10-16 17:35:35 EDT
Right now, if there is a method call of the form 'obj.method()' in an inactive code block, and you perform Open Declaration on 'method', it opens up a dialog asking you to choose from among all methods named 'method' in the project, regardless of class.

This is the case even if 'obj' has a type that's defined in active code, and in fact even if 'obj' itself is declared in active code. It seems like resolving the correct type in those cases should be doable.

The same goes for a 'method()' call without an explicit object - we should be able to resolve that to 'this->method()' the way we would in active code, so long as the method body's header (declaration part) is active.