[analyzer] Update GTestChecker to tighten API detection
authorDevin Coughlin <dcoughlin@apple.com>
Thu, 22 Dec 2016 17:52:57 +0000 (17:52 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Thu, 22 Dec 2016 17:52:57 +0000 (17:52 +0000)
commite17f6215292a87ac449eae820cb7557f0812f57b
tree378999997f35ffdb39cb89b94504b51082fd9eaf
parent941632839f6f4f122c2f1dd1de369bb304aa6ada
[analyzer] Update GTestChecker to tighten API detection

Update the GTestChecker to tighten up the API detection and make it
cleaner in response to post-commit feedback. Also add tests for when
temporary destructors are enabled to make sure we get the expected behavior
when inlining constructors for temporaries.

llvm-svn: 290352
clang/lib/StaticAnalyzer/Checkers/GTestChecker.cpp
clang/test/Analysis/gtest.cpp