digitalmars.D.bugs - [Issue 13213] New: Make 'go to definition' play nicer with extern(C)
- via Digitalmars-d-bugs (26/26) Jul 27 2014 https://issues.dlang.org/show_bug.cgi?id=13213
https://issues.dlang.org/show_bug.cgi?id=13213 Issue ID: 13213 Summary: Make 'go to definition' play nicer with extern(C) Product: D Version: D2 Hardware: All OS: Windows Status: NEW Severity: enhancement Priority: P1 Component: VisualD Assignee: nobody puremagic.com Reporter: turkeyman gmail.com In C/C++, there are 2 features, 'go to declaration' (ctrl-alt-F12) and 'go to definition' (F12), one generally takes you to the header file, the other takes you to the code. In VisualD, there only seems to be 'go to definition' (F12), this makes sense for D code, since there are no headers, but it's not so helpful with extern(C) functions. It is very common to have VisualD projects alongside C/C++ projects. Would it be possible to detect extern(C) functions, and make 'go to definition' go to the function definition in the C code instead of the D prototype? For completeness, it would be nice to offer 'go to declaration' (ctrl-alt-F12) also in these cases, which would go to the prototype in the D code, just like jumping to the header in C. --
Jul 27 2014