Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

namespace Scop Wrongly Parsed [bug] #59

Open
Welgriv opened this issue Nov 9, 2022 · 0 comments
Open

namespace Scop Wrongly Parsed [bug] #59

Welgriv opened this issue Nov 9, 2022 · 0 comments

Comments

@Welgriv
Copy link

Welgriv commented Nov 9, 2022

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()
{
  
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant