amir9480 / vscode-cpp-helper

vscode extension to create implementation for c++ function prototypes.
https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.cpp-helper
MIT License
355 stars 31 forks source link

namespace Scop Wrongly Parsed [bug] #59

Open Welgriv opened 1 year ago

Welgriv commented 1 year ago

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()
{

}