[PATCH][analyzer] Pass original command line arguments to compilers.

Anton Yartsev anton.yartsev at gmail.com
Wed Oct 15 10:06:02 PDT 2014


The goal of the patch is to pass unmodified arguments to compilers as 
they were written in the makefile. Arguments taken from @ARGV may be 
modified by the system and Perl, at least quotes and backslash sequences 
are processed. Using this arguments may cause compiler errors. Sometimes 
system+Perl corrupt arguments completely, for example, using perl from 
MSYS 1.0 on Windows I got:
Line from makefile:
    $(CXX) -DMACRO=\"string\" file.cpp "asd dff ghh" -o file.exe

arguments red from @ARGV by c++-analyzer:
   "-DMACRO=\string\" file.cpp -o file.exe"

Please review!

-- 
Anton

-------------- next part --------------
A non-text attachment was scrubbed...
Name: scan-build_unmodified_args.patch
Type: text/x-diff
Size: 2630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141015/e4a4317b/attachment.patch>


More information about the cfe-commits mailing list