Sitelet https://github.com/myint/cppclean/issues/148
Skip to content

parsing error: (Token(u'::', xxx, yyy), [], [Token(u'B', zzz, bbb)]) #148

Description

@TomerJLevy

Hi,

If I put the namespace as a Macro instead of 'using' or any other C++ way, it compiles but 'cppclean' fails to parse the tokens.

Here is a way to reproduce it:

#define NS_B(b) A::b

namespace A{
  namespace B{
    class C;
  }
}

class C {
  NS_B(B)::C* c;
};

In my opinion 'cppclean' should handle that situation. Just as C++ persist to backward compatibility to C language.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions