Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cpp/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions test/foo.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,3 +279,7 @@ class Optional {
void getValue() & { }
void getValue() && { }
};

int* Foo::Get(){}
int** Foo::Get(){}
int*** Foo::Get(){}