[PATCH] [analyzer] Prevent ccc/c++-analyzer from hanging on Windows.

Антон Ярцев anton.yartsev at gmail.com
Wed Apr 29 16:57:51 PDT 2015


Fixed an issue with spaces. However additional changes (support for spaces in compiler arguments) are required to fully support spaces in a compiler path.
Giving --use-analyzer="F:/C LANG/clang.exe" to scan-build ends up with
error: error reading 'LANG\..\lib\clang\3.7.0'
That's because -resource-dir F:\C LANG\..\lib\clang\3.7.0 is given to clang.

http://reviews.llvm.org/D9357 has lacking changes that completely fix an issue.

The updated patch also eliminates the regression in case if clang crashes - now the proper value is rad from $?.

Please review!


http://reviews.llvm.org/D8774

Files:
  tools/scan-build/ccc-analyzer
  tools/scan-build/scan-build

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8774.24666.patch
Type: text/x-patch
Size: 4302 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150429/bf4f98d1/attachment.bin>


More information about the cfe-commits mailing list