Skip to content

Last line of #included file gets concatenated with next line #48

@pelrun

Description

@pelrun

My codebase has multiple auto-generated headers that don't start or end with newlines. When they're included consecutively the first line of the second header ends up joined to the end of the last line of the first header. This resulted in something like the following:

#define MACRO (some + expression)#define SECONDMACRO

which of course cscout's parser choked on when MACRO was finally invoked in an expression.

CPP always keeps the lines separate in this case, and the project builds successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions