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

Fix crash when file starts with a semicolon #310

Merged
merged 1 commit into from
Mar 6, 2019

Conversation

simonlindholm
Copy link
Contributor

No description provided.

Copy link
Owner

@eliben eliben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just some minor test comments

@@ -128,7 +128,7 @@ def test_FileAST(self):
self.assertEqual(len(t2.ext), 0)

def test_empty_toplevel_decl(self):
code = 'int foo;;'
code = ';int foo;;'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add this as a separate test

@@ -800,7 +800,7 @@ def test_struct_union(self):
def test_struct_with_extra_semis_inside(self):
s1 = """
struct {
int a;;
;int a;;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@simonlindholm
Copy link
Contributor Author

Updated.

@eliben eliben merged commit 992715f into eliben:master Mar 6, 2019
@simonlindholm simonlindholm deleted the fix-initial-semi-crash branch April 16, 2019 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants