Skip to content

Commit

Permalink
Correctly identify opaque types
Browse files Browse the repository at this point in the history
The name of the symbol changed.
  • Loading branch information
carlosmn committed Jun 2, 2014
1 parent 431db61 commit 5453745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/docurium/docparser.rb
Expand Up @@ -92,11 +92,10 @@ def extract_typedef(cursor)

#puts "have typedef #{child.kind}, #{cursor.extent.start.line}"
case child.kind
when :cursor_typeref
when :cursor_type_ref
#puts "pure typedef, #{cursor.spelling}"
if child.type.kind == :type_record
rec[:type] = :struct
rec[:block] = ""
else
raise "typede of unhandled #{child.type.kind}"
end
Expand Down
2 changes: 1 addition & 1 deletion test/parser_test.rb
Expand Up @@ -395,7 +395,7 @@ def test_type_reference
:tdef => :typedef,
:name => "my_type",
:underlying_type => "struct my_type",
:decl => 'my_type',
:type => :struct,
}]

assert_equal actual, expected
Expand Down

0 comments on commit 5453745

Please sign in to comment.