summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorAdam Balogh <adam.balogh@ericsson.com>2018-10-13 10:34:52 +0000
committerAdam Balogh <adam.balogh@ericsson.com>2018-10-13 10:34:52 +0000
commitd053f5c616d64289f54f71fb891437941acddf8f (patch)
tree5bb29f68732177f18a8cb04bce6776a76cecdc03 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent45ca9b705cb814c4b7ed71cd7d5a64efe5da5d07 (diff)
[clang-tidy] Optimize query in bugprone-exception-escape
Checking whether a functions throws indirectly may be very expensive because it needs to visit its whole call graph. Therefore we should first check whether the function is forbidden to throw and only check whether it throws afterward. This also seems to solve bug https://bugs.llvm.org/show_bug.cgi?id=39167 where the execution time is so long that it seems to hang. Differential Revision: https://reviews.llvm.org/D53187 llvm-svn: 344444
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions