Peter VARGA
Peter VARGA

Reputation: 5186

Eclipse Oxygen does not show using directive in the Outline section

As shown in the screenshot from a valid C/C++ include file the using directive is not shown in the Outline section:

myInt is missing

How can I enable this?

My Eclipse version:

Eclipse IDE for C/C++ Developers

Version: Oxygen.2 Release (4.7.2)

Build id: 20171218-0600

Upvotes: 1

Views: 114

Answers (1)

HighCommander4
HighCommander4

Reputation: 52957

First, note that the construct circled in your screenshot is not a "using directive".

There are three syntactic constructs in C++ that start with the keyword using:

using namespace std;   // using directive
using std::vector;     // using declaration
using myint = int;     // alias declaration; new in C++11

(An alias declaration can also be templated, in which case it's often called a "template alias".)

Eclipse CDT does show using directives and using declarations in the outline view.

Alias declarations are new in C++11, and Eclipse CDT does not yet support showing them in the outline view. Bug 509120 is on file to track this.

Upvotes: 1

Related Questions