From: Chad Rosier Date: Wed, 5 Oct 2011 20:09:11 +0000 (+0000) Subject: [driver] For consistency, handle all shell special characters handled by the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22807868ad852806fd19e005945a910d3e9ab9ef;p=clang [driver] For consistency, handle all shell special characters handled by the quoting code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141205 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Compilation.cpp b/lib/Driver/Compilation.cpp index 7a62fa4b55..baaba19ed7 100644 --- a/lib/Driver/Compilation.cpp +++ b/lib/Driver/Compilation.cpp @@ -72,7 +72,7 @@ const DerivedArgList &Compilation::getArgsForToolChain(const ToolChain *TC, static bool needsQuote(const char *s) { for (const char *c = s; *c; ++c) - if (*c == ' ') + if (*c == ' ' || *c == '"' || *c == '\\' || *c == '$') return true; return false; }