vscode-cpp-helper icon indicating copy to clipboard operation
vscode-cpp-helper copied to clipboard

namespace Scop Wrongly Parsed [bug]

Open Welgriv opened this issue 2 years ago • 0 comments

with a.hpp and a.cpp in the same directory.

a.hpp:

class C // class C omg
{
  void f();
};

gives in a.cpp:


#include "a.hpp"


void omg::f()
{
  
}

while

class C // class C
{
  void f();
};

gives

#include "a.hpp"

void C::f()
{
  
}

which is correct, but even more strange:

class C // a comment
{
  void f();
};

gives

#include "a.hpp"

void f()
{
  
}

Welgriv avatar Nov 09 '22 15:11 Welgriv