]> granicus.if.org Git - clang/commit
[analyzer] Fix scan-build to handle missing output directories.
authorDevin Coughlin <dcoughlin@apple.com>
Wed, 11 Nov 2015 20:39:03 +0000 (20:39 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Wed, 11 Nov 2015 20:39:03 +0000 (20:39 +0000)
commit58ac3983f94cf80e33c269e245e57132b76b629d
treea10fbcb85c627a48e2069f114a049e92934f2b07
parent6f286e5ce162894d09b4a3697e6d1c3d9c73cbae
[analyzer] Fix scan-build to handle missing output directories.

Cwd::abs_path has a somewhat tricky semantics: if it's operand directory does not exist,
it'll return undefined (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=257568).
This may cause scan-build to silently ignore output directory (specified with -o) and
use /tmp instead of trying to create directory. This tiny patch fixes the problem.

A patch by Yury Gribov!

Differential Revision: http://reviews.llvm.org/D14535

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252797 91177308-0d34-0410-b5e6-96231b3b80d8
tools/scan-build/scan-build