Skip to content

Multiline #pragma leaves closing parenthesis #217

@chrchr-github

Description

@chrchr-github

This input

#pragma comment(linker, "foo \
bar")

gets processed to a single closing ).
I suspect the problem is somewhere near line 671 in simplecpp.cpp (TokenList::readfile).
Found while using cppcheck 2.4.1:
https://sourceforge.net/p/cppcheck/discussion/development/thread/88aeac20e9/

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions