[PATCH] D66303: [LifetimeAnalysis] Add support for free functions

Gábor Horváth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 15 09:14:29 PDT 2019


xazax.hun created this revision.
xazax.hun added reviewers: mgehre, gribozavr.
xazax.hun added a project: clang.
Herald added subscribers: Szelethus, Charusso, gamesh411, dkrupp, rnkovacs.

This patch adds support to the idiom when people using the free version of `begin`, `end` and the like instead of the member functions. Moreover, some containers, like `any` or `variant` only support this idiom.

Once this patch is accepted we do not anticipate adding more hard coded rules. Hopefully, they will all be subsumed by function annotations in the future.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D66303

Files:
  clang/lib/Sema/SemaInit.cpp
  clang/test/Sema/warn-lifetime-analysis-nocfg.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66303.215413.patch
Type: text/x-patch
Size: 3737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190815/6555493e/attachment.bin>


More information about the cfe-commits mailing list