summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py
diff options
context:
space:
mode:
authorDevon Loehr <DKLoehr@users.noreply.github.com>2025-02-21 10:41:04 -0500
committerGitHub <noreply@github.com>2025-02-21 16:41:04 +0100
commit6dca33ce20693381beab9817c12d512dfdac0b02 (patch)
treedf65cdf05acd2bfdeb4621ad1140288757dd2cd4 /lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py
parentd2d1f143e5087e9490416bd98e49fd2f8fb5dd01 (diff)
Check for mutability better (#127843)
This PR adds a function to determine if a type "looks" mutable. Since it's impossible to be totally sure if something can or can't be modified in C++, this makes a best-effort attempt to determine if variables of that type can be modified or not. The motivation for this change is the -Wunique-object-duplication warning, which had a false positive due to a missed case while checking for mutability. Pulling the logic into a separate function allows it to be written much more cleanly. There should be no behavior change, except that we no longer report function references to be mutable.
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions