Skip to content

File lineno#10

Open
rgeissert wants to merge 3 commits intolavv17:masterfrom
rgeissert:file-lineno
Open

File lineno#10
rgeissert wants to merge 3 commits intolavv17:masterfrom
rgeissert:file-lineno

Conversation

@rgeissert
Copy link
Contributor

So this is a bigger one, where I think that the code in user.cc demonstrates that it could use a different approach.

The first two changes work as expected. The third, supporting the line column to be passed, does not seem to work due to some reason I could not easily find. I know that the info passed to MoveLineCol is correct, but not much else.

@lavv17
Copy link
Owner

lavv17 commented May 15, 2015

Please fix the code duplication first.

As to the MoveLineCol not working, maybe "stdcol=GetCol()" would fix the problem

@lavv17
Copy link
Owner

lavv17 commented May 15, 2015

I think file_check should be extended to fill and return LoadFileOptions object, which would contain extracted file name, line, column, mmap region begin and length. Then the object would be passed to LoadFile as an argument. Thus there would be no need for double parsing of the original file name.

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.

2 participants