aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-07-19 23:19:25 +0000
committerJustin Lebar <jlebar@google.com>2016-07-19 23:19:25 +0000
commit7ab570ec3a229ff30aa8f0122d5df0e27eec1349 (patch)
treef646be22a16537748237d1858fdf175fbe055e26 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
parentea9598b1f4d72d7c87b81bcff30fd3f57f0efd22 (diff)
downloadllvm-7ab570ec3a229ff30aa8f0122d5df0e27eec1349.zip
llvm-7ab570ec3a229ff30aa8f0122d5df0e27eec1349.tar.gz
llvm-7ab570ec3a229ff30aa8f0122d5df0e27eec1349.tar.bz2
[ADT] Warn on unused results from ArrayRef and StringRef functions that read like they might mutate.
Summary: Functions like "slice" and "drop_front" sound like they might mutate the underlying object, but they don't. Warning on unused results would have saved me an hour yesterday, and I'm sure I'm not the only one. LLVM and Clang are clean wrt this warning after D22540. Reviewers: majnemer Subscribers: sanjoy, chandlerc, llvm-commits Differential Revision: https://reviews.llvm.org/D22541 llvm-svn: 276058
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h')
0 files changed, 0 insertions, 0 deletions