[PATCH] D24926: Added support of configuration files

Serge Pavlov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 17 23:20:36 PDT 2016

sepavloff marked 8 inline comments as done.
sepavloff added inline comments.

Comment at: lib/Support/CommandLine.cpp:716-717
+        continue; // Ignore backlash followed by '\n'.
+      if (Src[I] == '\r' && I + 1 < E && Src[I + 1] == '\n') {
+        ++I;
+        continue; // Ignore backlash followed by \r\n.
ABataev wrote:
> Is this sequence expected on Linux too?
Config file can be prepared on Windows machine and then be used on Linux. Processing Windows EOLs on Linux host saves users from unexpected behavior in this case.


More information about the llvm-commits mailing list