Search code examples
c++eclipseeclipse-cdtdeclarationauto

Eclipse CDT open declaration of auto type variable


With Eclipse CDT one can use "Open Declaration" to goto the declaration of a class, function, ... . This function can be accessed by the shortcut key F3.

If one hovers with the mouse over auto in code looking like this

const auto A = getA();

eclipse resolves the type of A. A popup displays the correct type. Nevertheless, one can not use F3 to goto the declaration of the type of A.

Can eclipse be configured to activate this?
I'm using C++ 11.


Solution

  • This has recently been implemented. It's available in Eclipse Oxygen (released June 2017) and later.