Skip to content

Add newline to macro def string before tokenizing - #697

Open
glankk wants to merge 1 commit into
cppcheck-opensource:masterfrom
glankk:macro-readfile-nl
Open

Add newline to macro def string before tokenizing#697
glankk wants to merge 1 commit into
cppcheck-opensource:masterfrom
glankk:macro-readfile-nl

Conversation

@glankk

@glankk glankk commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

This isn't an issue at the moment because the Macro constructor discards any tokenization errors, but I think it's good to make sure that anything sent to readfile has an ending newline to prevent any future issues.

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