DescriptionAdd logic for catching unsafe scoped_refptr conversions to T* in returns
The tool doesn't attempt to handle all potential unsafe conversions. It
only attempts to catch a conservative subset of the conversions that are
definitely unsafe, such as returning a local scoped_refptr<T> or
temporary.
If it encounters something that isn't simple to resolve as safe/unsafe
(for example, a reference may be bound to a variable with local storage,
which is unsafe, or it may be bound to a member, which is probably safe),
it prefers to skip rewriting anything at all, so it can be manually
resolved.
BUG=110610
R=rsleevi@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290225
Patch Set 1 #Patch Set 2 : Cleanup #
Total comments: 4
Patch Set 3 : More comments #
Messages
Total messages: 6 (0 generated)
|