llvm-project/clang/test/Analysis/diagnostics
Anna Zaks 4e16b29c13 [analyzer] Refactor BugReport::getLocation and PathDiagnosticLocation::createEndOfPath for greater code reuse
The 2 functions were computing the same location using different logic (each one had edge case bugs that the other
one did not). Refactor them to rely on the same logic.

The location of the warning reported in text/command line output format will now match that of the plist file.

There is one change in the plist output as well. When reporting an error on a BinaryOperator, we use the location of the
operator instead of the beginning of the BinaryOperator expression. This matches our output on command line and
looks better in most cases.

llvm-svn: 180165
2013-04-23 23:57:43 +00:00
..
Inputs/include/sys Move an input header file under an Inputs directory to be consistent 2013-01-19 06:31:24 +00:00
deref-track-symbolic-region.c [analyzer] Allow TrackConstraintBRVisitor to work when the value it’s tracking is not live in the last node of the path 2013-04-17 22:29:47 +00:00
deref-track-symbolic-region.cpp [analyzer] BugReporter - more precise tracking of C++ references 2013-03-13 20:20:14 +00:00
explicit-suppression.cpp Extended VerifyDiagnosticConsumer to also verify source file for diagnostic. 2013-04-17 08:06:46 +00:00
false-positive-suppression.c Move an input header file under an Inputs directory to be consistent 2013-01-19 06:31:24 +00:00
no-prune-paths.c [analyzer] Add 'prune-paths' config option to disable path pruning. 2013-01-26 01:28:15 +00:00
shortest-path-suppression.c [analyzer] Add a test case for diagnostic suppression on a graph with cycles. 2013-03-19 22:10:44 +00:00
undef-value-callee.h
undef-value-caller.c [analyzer] Use 'MemRegion::printPretty()' instead of assuming the region is a VarRegion. 2013-02-26 19:44:38 +00:00
undef-value-param.c [analyzer] Refactor BugReport::getLocation and PathDiagnosticLocation::createEndOfPath for greater code reuse 2013-04-23 23:57:43 +00:00
undef-value-param.m [analyzer] Show "Returning from ..." note at caller's depth, not callee's. 2013-04-12 00:44:17 +00:00