Fix #671: Missing newline at end of file should produce a warning#672
Fix #671: Missing newline at end of file should produce a warning#672glankk wants to merge 3 commits into
Conversation
|
All these stray |
I am not sure why the The |
Me neither. Passing less means that the newline would be missing and the other changes add it. That is kind of a flip-flop.
If fiddling with the trailing newline is necessary that seems like a possible source of issues for users of the library. |
The char arrays that are initialized with a string constant include a null terminator, which makes these test cases fail because they end with '\0' instead of '\n'.
I agree that it looks really ugly but it's not wrong. |
|
I also agree that it's a bit awkward to implement this in simplecpp, since it doesn't really distinguish between C and C++. |
No description provided.