Hi, I found that Clang always treats character sequence "??/" at the end of a line comment as a trigraph, even if trigraphs are disabled. As a result, if ??/ is at the end of a line comment, the subsequent newline is escaped, and the next line become a continuation of the line comment.
Patch attached. Now it warns about a trigraph and does not treat it as a backslash unless trigraphs are enabled. Rui
line-comment.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
