Warning, /sdk/clazy/docs/checks/README-detaching-temporary.md is written in an unsupported language. File is not indexed.

0001 # detaching-temporary
0002 
0003 Finds places where you're calling non-const member functions on temporaries.
0004 For example `getList().first()`, which would detach if the container is shared.
0005 
0006 There can be some false-positives, for example `someHash.values().first()` because refcount is 1.
0007 But `constFirst()` is a good default, so you should try to use it wherever you can, since it's not practical to inspect all code and figure out if the container is shared or not.