]> granicus.if.org Git - clang/commit
[analyzer] ccc-analyzer: Fix -isystem value passing.
authorDevin Coughlin <dcoughlin@apple.com>
Mon, 26 Oct 2015 17:19:51 +0000 (17:19 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Mon, 26 Oct 2015 17:19:51 +0000 (17:19 +0000)
commitb564c0a9f8572b8930f7082a3c5a4732a990fbcb
treeb2d5c5fe37155f0fff57f430e19bfd8abb42bdf2
parent7b012b207b1c104c9bbb1ec1cfc42721d6416e4b
[analyzer] ccc-analyzer: Fix -isystem value passing.

The regex for -isystem matching is broken. -[D,I,Usystem] matches "-D", "-,",
"-I", "-U", "-s" "-y", etc. Besides that, "-isystem /foo" gets interpreted as
"-i" with a non-empty value "system" and thus the next "/foo" argument is not
read. This patch corrects the regex.

This fixes PR13237 <https://llvm.org/bugs/show_bug.cgi?id=13237>.

A patch by Peter Wu!

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

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