amir9480 / vscode-cpp-helper

vscode extension to create implementation for c++ function prototypes.

Home Page:https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.cpp-helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

namespace Scop Wrongly Parsed [bug]

Welgriv opened this issue · 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()
{
  
}