rnk added inline comments.

================
Comment at: lib/Lex/Lexer.cpp:3076-3077
   case '\r':
+    if (CurPtr[0] != Char && (CurPtr[0] == '\n' || CurPtr[0] == '\r'))
+      Char = getAndAdvanceChar(CurPtr, Result);
     // If we are inside a preprocessor directive and we see the end of line,
----------------
Should we only do this in the `\r` case? If I understand correctly, we're 
basically saying, if this is a CR, and the next byte is an LF, advance one more 
and do the pre-processor stuff.


https://reviews.llvm.org/D37079



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to