diff options
author | Nathan James <n.james93@hotmail.co.uk> | 2020-01-02 13:37:41 -0500 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2020-01-02 13:39:27 -0500 |
commit | ec3d8e61b527c6312f77a4dab095ffc34e954927 (patch) | |
tree | eb8c58dc7399f236ec8288123b581cc0fc4a2008 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h | |
parent | a81cb1b8bf580d6ab15d9ed6ff4f104eeedd3a1d (diff) | |
download | bcm5719-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