[PATCH] D53069: [analyzer][www] Update avaible_checks.html

Umann Kristóf via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 24 12:10:12 PDT 2018


Szelethus marked 2 inline comments as done.
Szelethus added inline comments.


================
Comment at: www/analyzer/available_checks.html:1119
+<div class="example"><pre>
+<!-- TODO: Add examples. -->
+</pre></div></div></td></tr>
----------------
george.karpenkov wrote:
> Top of the checker file has a somewhat reasonable description:
> 
> // A checker for detecting leaks resulting from allocating temporary
> // autoreleased objects before starting the main run loop.
> //
> // Checks for two antipatterns:
> // 1. ObjCMessageExpr followed by [[NSRunLoop mainRunLoop] run] in the same
> // autorelease pool.
> // 2. ObjCMessageExpr followed by [[NSRunLoop mainRunLoop] run] in no
> // autorelease pool.
> //
> // Any temporary objects autoreleased in code called in those expressions
> // will not be deallocated until the program exits, and are effectively leaks.
> 
Should be come up with an example for this one too then?


https://reviews.llvm.org/D53069





More information about the cfe-commits mailing list