Fix #684: Keep line directives in tokenized output by glankk · Pull Request #685 · cppcheck-opensource/simplecpp · GitHub
Skip to content

Fix #684: Keep line directives in tokenized output - #685

Closed
glankk wants to merge 7 commits into
cppcheck-opensource:masterfrom
glankk:684
Closed

glankk wants to merge 7 commits into
cppcheck-opensource:masterfrom
glankk:684

Conversation

@glankk

@glankk glankk commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

The lineDirective function is not really needed after this change and has been removed. A locationchange flag has been added to the Token class to keep track of when a location discontinuity occurs, this is needed for gotoNextLine to still work correctly during preprocessing when #line moves back to the same line it is already at.

@glankk glankk changed the title Keep line directives in tokenized output Fix #684: Keep line directives in tokenized output Jul 20, 2026
@glankk

glankk commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator Author

@glankk

glankk commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator Author

@glankk glankk closed this Jul 23, 2026
@glankk
glankk deleted the 684 branch July 23, 2026 15:31
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.

1 participant