cppfront icon indicating copy to clipboard operation
cppfront copied to clipboard

[BUG] raw string literals are not respected when lowered

Open farmerpiki opened this issue 1 year ago • 0 comments
trafficstars

If I write a raw string literal and a line starts with \t (probably other whitespace as well, did not test more) it will inject a space before the tab. This is a toy example but for more serious stuff it might have extreme impacts like adding extra data in files that should not have it.

test.txt

I attached the example file as a txt cause github wouldn't let me upload a .cpp2 file, please rename it or write your own.

result.txt

I also attached the result after compilation for easier analysis.

farmerpiki avatar Aug 01 '24 10:08 farmerpiki