Skip to content

Newline in #error message #591

@chrchr-github

Description

@chrchr-github

From https://trac.cppcheck.net/ticket/13690:
#error\ + LF (0xa) triggers an error message with an embedded newline, causing an assert failure.

msg += tok->str();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions