summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h
diff options
context:
space:
mode:
authorNathan James <n.james93@hotmail.co.uk>2020-01-02 13:37:41 -0500
committerAaron Ballman <aaron@aaronballman.com>2020-01-02 13:39:27 -0500
commitec3d8e61b527c6312f77a4dab095ffc34e954927 (patch)
treeeb8c58dc7399f236ec8288123b581cc0fc4a2008 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h
parenta81cb1b8bf580d6ab15d9ed6ff4f104eeedd3a1d (diff)
downloadbcm5719-llvm-ec3d8e61b527c6312f77a4dab095ffc34e954927.tar.gz
bcm5719-llvm-ec3d8e61b527c6312f77a4dab095ffc34e954927.zip
Handle init statements in readability-else-after-return
Adds a new ASTMatcher condition called 'hasInitStatement()' that matches if, switch and range-for statements with an initializer. Reworked clang-tidy readability-else-after-return to handle variables in the if condition or init statements in c++17 ifs. Also checks if removing the else would affect object lifetimes in the else branch. Fixes PR44364.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud