[cfe-commits] r141205 - /cfe/trunk/lib/Driver/Compilation.cpp

Chad Rosier mcrosier at apple.com
Wed Oct 5 13:09:11 PDT 2011


Author: mcrosier
Date: Wed Oct  5 15:09:11 2011
New Revision: 141205

URL: http://llvm.org/viewvc/llvm-project?rev=141205&view=rev
Log:
[driver] For consistency, handle all shell special characters handled by the
quoting code.

Modified:
    cfe/trunk/lib/Driver/Compilation.cpp

Modified: cfe/trunk/lib/Driver/Compilation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Compilation.cpp?rev=141205&r1=141204&r2=141205&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Compilation.cpp (original)
+++ cfe/trunk/lib/Driver/Compilation.cpp Wed Oct  5 15:09:11 2011
@@ -72,7 +72,7 @@
 
 static bool needsQuote(const char *s) {
   for (const char *c = s; *c; ++c)
-    if (*c == ' ')
+    if (*c == ' ' || *c == '"' || *c == '\\' || *c == '$')
       return true;
   return false;
 }





More information about the cfe-commits mailing list