]> granicus.if.org Git - clang/commit
[analyzer] Clean up modeling of strcmp, including cases where a string literal has...
authorJordy Rose <jediknil@belkadan.com>
Thu, 16 Jun 2011 07:13:34 +0000 (07:13 +0000)
committerJordy Rose <jediknil@belkadan.com>
Thu, 16 Jun 2011 07:13:34 +0000 (07:13 +0000)
commitadc42d412d747391dbcee234610f00b0f087cf7b
tree6979bd907165dc5a5c140c55a1e8de54a98e53ad
parentb11382497a923b0d7009e85a1d8eb7bf93ec6d0d
[analyzer] Clean up modeling of strcmp, including cases where a string literal has an embedded null character, and where both arguments are the same buffer. Also use nested ifs rather than early returns; in this case early returns will lose any assumptions we've made earlier in the function.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133154 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/CStringChecker.cpp
test/Analysis/string.c