Sorry, that's not a solution.

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

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to