From 9cc37d4cd6115f900110c4b2741ec6c91af8b93f Mon Sep 17 00:00:00 2001 From: Renaud Durlin Date: Mon, 7 Oct 2013 23:17:33 +0200 Subject: [PATCH] Remove wrong assert. --- cpp/ast.py | 1 - test/foo.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cpp/ast.py b/cpp/ast.py index 49266ce..bac5f2c 100644 --- a/cpp/ast.py +++ b/cpp/ast.py @@ -1189,7 +1189,6 @@ def _get_return_type_and_class_name(self, token_seq): while i < end: # Iterate through the sequence parsing out each name. new_name, next_item = self.get_name(seq_copy[i:]) - assert_parse(new_name, 'Got empty new_name, next=%s' % next_item) # We got a pointer or ref. Add it to the name. if next_item and next_item.token_type == tokenize.SYNTAX: new_name.append(next_item) diff --git a/test/foo.h b/test/foo.h index 0c7ed5f..6ffd935 100644 --- a/test/foo.h +++ b/test/foo.h @@ -279,3 +279,7 @@ class Optional { void getValue() & { } void getValue() && { } }; + +int* Foo::Get(){} +int** Foo::Get(){} +int*** Foo::Get(){}