llvm-project/clang/lib
Jordan Rose e37ab50a6e [analyzer] Report leaks at the closing brace of a function body.
This fixes a few cases where we'd emit path notes like this:

  +---+
 1|   v
  p = malloc(len);
  ^   |2
  +---+

In general this should make path notes more consistent and more correct,
especially in cases where the leak happens on the false branch of an if
that jumps directly to the end of the function. There are a couple places
where the leak is reported farther away from the cause; these are usually
cases where there are several levels of nested braces before the end of
the function. This still matches our current behavior for when there /is/
a statement after all the braces, though.

llvm-svn: 168070
2012-11-15 19:11:43 +00:00
..
ARCMigrate s/tranform/transform/ 2012-11-14 15:08:31 +00:00
AST block extended signatur option. Change previous option 2012-11-15 19:02:45 +00:00
ASTMatchers Do not use data recursion in ASTMatchFinder. 2012-11-15 03:29:05 +00:00
Analysis Fix bad CFG construction bug when handling C++ 'try' statements. 2012-11-13 00:12:13 +00:00
Basic Add -cc1 option -fno-diagnostics-use-presumed-location, a handy mode for 2012-11-14 23:55:25 +00:00
CodeGen Simplify code. No functionality change. 2012-11-15 16:40:35 +00:00
Driver block extended signatur option. Change previous option 2012-11-15 19:02:45 +00:00
Edit Change the representation of builtin functions in the AST 2012-08-31 00:14:07 +00:00
Frontend block extended signatur option. Change previous option 2012-11-15 19:02:45 +00:00
FrontendTool PR14303: Add a NoDriverOption flag to those options which are not accepted by 2012-11-09 22:36:44 +00:00
Headers Code cleanup: Remove trailing whitespace in unwind.h. 2012-11-14 06:33:58 +00:00
Lex Suppress elided variadic macro argument extension diagnostic for macros using 2012-11-14 02:18:46 +00:00
Parse ParseTemplate.cpp: Prune obsolete descriptions in ParseSingleDeclarationAfterTemplate(), for now. [-Wdocumentation] 2012-11-14 21:45:43 +00:00
Rewrite objective-C modern translator. Start the line 2012-11-07 18:15:53 +00:00
Sema Do not cache a pointer to ExprEvalContexts.back(). 2012-11-15 15:18:42 +00:00
Serialization [modules] Use a memory buffer directly as input for the module includes, 2012-11-15 18:57:27 +00:00
StaticAnalyzer [analyzer] Report leaks at the closing brace of a function body. 2012-11-15 19:11:43 +00:00
Tooling Make DiagnosticOptions intrusively reference-counted, and make sure 2012-10-23 22:26:28 +00:00
CMakeLists.txt Adds the AST Matcher library, which provides a in-C++ DSL to express 2012-07-06 05:48:52 +00:00
Makefile Adds the AST Matcher library, which provides a in-C++ DSL to express 2012-07-06 05:48:52 +00:00