]> granicus.if.org Git - clang/commit
[analyzer] UnixAPIChecker: Don't diagnose for functions in C++ namespaces
authorDevin Coughlin <dcoughlin@apple.com>
Sat, 17 Dec 2016 01:08:17 +0000 (01:08 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Sat, 17 Dec 2016 01:08:17 +0000 (01:08 +0000)
commitac7583ae2b142a8e95a2150ef5f702eea6fee827
tree9d804988ccc7bc9f6ac0f1c327497f1f62d1523d
parent66d4c44d3886ba8b612286230c6f8b64c4cb97c4
[analyzer] UnixAPIChecker: Don't diagnose for functions in C++ namespaces

Update the UnixAPIChecker to not diagnose for calls to functions that
are declared in C++ namespaces. This avoids false positives when a
namespaced function has the same name as a Unix API.

This address PR28331.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290023 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
test/Analysis/unix-api.cpp [new file with mode: 0644]