Skip to content

fixes issue# 1284 - #34

Merged
hschlichter merged 2 commits into
masterfrom
origin/fixes/type-before-paren-open-fix
Oct 27, 2017
Merged

hschlichter merged 2 commits into
masterfrom
origin/fixes/type-before-paren-open-fix

Conversation

@agandavarapu-rythmos

Copy link
Copy Markdown

Modified to logic to only search for the next element after paren close for assign chunk, as chunk_get_next_type function doent limit the search to block and will search for assign in other blocks as well.

Modified to logic to only search for the next element after paren close for assign chunk, as chunk_get_next_type function doent limit the search to block and will search for assign in other blocks as well.
adding the test, that was removed

@hschlichter hschlichter left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just need clarification about the type change in the test. Otherwise looks good.

void foo()
{
bool a = 1; // if you comment this out, the bug stops reproducing
int a = 1; // if you comment this out, the bug stops reproducing

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why change the type to int?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think it's good. This is the output file. The input file was with int.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

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.

3 participants