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

AssertionError on class #81

Closed
amai2012 opened this issue Nov 25, 2015 · 2 comments
Closed

AssertionError on class #81

amai2012 opened this issue Nov 25, 2015 · 2 comments
Labels

Comments

@amai2012
Copy link

cppclean fails on

class SharedCount {
        friend inline bool operator==( SharedCount const & a, SharedCount const & b )
        {
            return a._pi == b._pi;
        }

};

with

$ cppclean --verbose SharedCount.h
Processing SharedCount.h
Traceback (most recent call last):
  File "/usr/bin/cppclean", line 145, in <module>
    sys.exit(main())
  File "/usr/bin/cppclean", line 120, in main
    entire_ast = list([_f for _f in builder.generate() if _f])
  File "/usr/lib/python2.7/site-packages/cpp/ast.py", line 668, in generate
    result = self._generate_one(token)
  File "/usr/lib/python2.7/site-packages/cpp/ast.py", line 692, in _generate_one
    return method()
  File "/usr/lib/python2.7/site-packages/cpp/ast.py", line 1261, in handle_class
    return self._handle_class_and_struct(Class, 'class')
  File "/usr/lib/python2.7/site-packages/cpp/ast.py", line 1258, in _handle_class_and_struct
    return self._get_class(class_type, None)
  File "/usr/lib/python2.7/site-packages/cpp/ast.py", line 1512, in _get_class
    body = list(ast.generate())
  File "/usr/lib/python2.7/site-packages/cpp/ast.py", line 668, in generate
    result = self._generate_one(token)
  File "/usr/lib/python2.7/site-packages/cpp/ast.py", line 692, in _generate_one
    return method()
  File "/usr/lib/python2.7/site-packages/cpp/ast.py", line 1320, in handle_friend
    assert result
AssertionError
@myint myint added the bug label Nov 25, 2015
@r-e-d
Copy link
Collaborator

r-e-d commented Nov 25, 2015

Hello,

Thanks for the bug report. This is now fixed :)

@r-e-d r-e-d closed this as completed Nov 25, 2015
@amai2012
Copy link
Author

Fix confirmed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants