summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
diff options
context:
space:
mode:
authorHaojian Wu <hokein.wu@gmail.com>2024-07-01 17:43:07 +0200
committerGitHub <noreply@github.com>2024-07-01 17:43:07 +0200
commit5c287efee77930ab15fe5579bed00b2750bbb254 (patch)
tree2ac3d5a4a56ecae867a8bbfcc5593e0064cc0409 /lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
parent2e81f7db1f1c161a1683bcad55e0c04677a17a9d (diff)
[Clang] Extend lifetime bound analysis to support assignments for the built-in pointer type (#96475)
The lifetime bound warning in Clang currently only considers initializations. This patch extends the warning to include assignments. - **Support for assignments of built-in pointer types**: this is done is by reusing the existing statement-local implementation. Clang now warns if the pointer is assigned to a temporary object that being destoryed at the end of the full assignment expression. With this patch, we will detect more cases under the on-by-default diagnostic `-Wdangling`. I have added a new category for this specific diagnostic so that people can temporarily disable it if their codebase is not yet clean. This is the first step to address #63310, focusing only on pointer types. Support for C++ assignment operators will come in a follow-up patch. Fixes #54492
Diffstat (limited to 'lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py')
0 files changed, 0 insertions, 0 deletions