Structsยง
- Dangling
Pointer ๐Local Context - Dangling
Pointer ๐Return Searcher - Dangling
Pointer ๐Searcher - This produces a dangling pointer:
- Dangling
Pointers ๐ - FIXME: false negatives (i.e. the lint is not emitted when it should be)
Staticsยง
- DANGLING_
POINTERS_ FROM_ LOCALS - The
dangling_pointers_from_locals
lint detects getting a pointer to data of a local that will be dropped at the end of the function. - DANGLING_
POINTERS_ FROM_ TEMPORARIES - The
dangling_pointers_from_temporaries
lint detects getting a pointer to data of a temporary that will immediately get dropped.
Functionsยง
- is_
temporary_ ๐rvalue - lint_
addr_ ๐of_ local - Look for
&<path_to_local_in_same_body>
pattern and emit lint for it - lint_
expr ๐ - owns_
allocation ๐