Skip to content

Fix incorrect reported file in error message when missing a required semicolon.#331

Merged
Fyren merged 3 commits intomasterfrom
fix-reported-file-semicolon-error
May 7, 2019
Merged

Fix incorrect reported file in error message when missing a required semicolon.#331
Fyren merged 3 commits intomasterfrom
fix-reported-file-semicolon-error

Conversation

@Fyren
Copy link
Contributor

@Fyren Fyren commented May 7, 2019

This would only happen with #pragma semicolon 1 if a semicolon was missing after some other file was included.

Without the change, the error reported for the test case would be in the empty include (though with the correct line number).

@peace-maker
Copy link
Member

Are you sure the test is correct? You're including a nonexistent file. Maybe I'm not understanding the bug here.

@Fyren
Copy link
Contributor Author

Fyren commented May 7, 2019

I'm including an almost empty file. Try the test against master (i.e. without this PR) and the error reported will be in the empty file.

Almost empty because apparently if you try to include an actual 0-byte file, spcomp will error.

@asherkin
Copy link
Member

asherkin commented May 7, 2019

I'm including an almost empty file. Try the test against master (i.e. without this PR) and the error reported will be in the empty file.

I think it got renamed at one point, the filename here does indeed seem wrong.

@Fyren
Copy link
Contributor Author

Fyren commented May 7, 2019

I did rename it, but the test still passed because the check was lax. Fixed, thanks.

@Fyren Fyren merged commit ac7b6b7 into master May 7, 2019
@Fyren Fyren deleted the fix-reported-file-semicolon-error branch May 7, 2019 23:43
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