Skip to content

Bugged output for namespace variable declaration #408

@jeremy-rifkin

Description

@jeremy-rifkin

The following program

namespace ns {
    extern int a;
};

int ns::a = 1;

Produces this output on cppinsights:

namespace ns
{
  extern int a;

}

int a = 1;

The output should be along the lines of:

namespace ns {
  extern int a;
}

namespace ns {
  int a = 1;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions