Skip to content

resolved type names for types defined in class bodies lack their "namespace" #255

@pseyfert

Description

@pseyfert

comparing this and this example, there is a custom iterator class in both cases.

Abbreviated, in the former, the iterator definition is in another class

struct Iterable {
  struct Iterator {
  };
};

In the latter, the iterator is defined in some namespace

namespace MYNAMESPACE {
  struct Iterator {
  };
}
struct Iterable {
};

In both cases Iterable::begin() returns an Iterator.
Yet, in the cppinsights output, the former iterator appears as Iterator instead of Iterable::Iterator. In the latter case, the leading MYNAMESPACE:: is printed correctly.

I think it would be nice if the leading Iterable:: would also be printed in the former case (for disambiguation, should someone run into a case where that's necessary), and such that the printout of cppinsights is valid code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions