4 ms·
I'm not sure that an IDE will catch a syntax error in C code quoted inside a cmake script trying to test if things compile.
by asveikau 3y ago
I'm not sure that an IDE will catch a syntax error in C code quoted inside a cmake script trying to test if things compile.
- brailsafe 3y agoIn either case, it would appear as added code, not different characters in the same code, so maybe about the same. If someone changed one character in an existing string though, I think it would be more likely caught visually by someone used to seeing accidental garbage show up
- n2d4 3y agoA lot of IDE configurations, such as VSCode on the default config, highlight Unicode characters that are invisible/look like others (eg. cyrillic characters or non-breaking space) or even all non-ASCII characters, regardless of whether they're in a string or not. Try pasting any of these into your IDE and see if it catches it. https://gist.github.com/StevenACoffman/a5f6f682d94e38ed804182dc2693ed4b https://gist.github.com/StevenACoffman/a5f6f682d94e38ed80418...