]> granicus.if.org Git - clang/commit
Teach PathDiagnosticBuilder::getEnclosingStmtLocation() about while/if/do/for,
authorTed Kremenek <kremenek@apple.com>
Sat, 28 Mar 2009 03:37:59 +0000 (03:37 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 28 Mar 2009 03:37:59 +0000 (03:37 +0000)
commitaf3e3d54e990b385e5a653d2994d7d41427a13b8
treefdd2bf437302f2e29e54c3f6eb79b19b572e9953
parente90778716bdc4ddc351f1d38e41c54f1a36466d1
Teach PathDiagnosticBuilder::getEnclosingStmtLocation() about while/if/do/for,
etc., so that the "body" is always considered a top-level statement for edge
transitions (even if it is an expression).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67901 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BugReporter.cpp