aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp
diff options
context:
space:
mode:
authorEmilia Dreamer <emilia@rymiel.space>2022-09-06 12:22:34 +0200
committerBjörn Schäpers <bjoern@hazardy.de>2022-09-06 12:24:19 +0200
commit247613548bac55b47eed88e83d5c8640fd4b200a (patch)
treefe75166f8ed85694e10e7a0eec3217022959cca1 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp
parent2adf241592b38189994c6c9d2dfbfa391ecbe9fa (diff)
downloadllvm-247613548bac55b47eed88e83d5c8640fd4b200a.zip
llvm-247613548bac55b47eed88e83d5c8640fd4b200a.tar.gz
llvm-247613548bac55b47eed88e83d5c8640fd4b200a.tar.bz2
[clang-format] Change heuristic for locating lambda template arguments
Previously, the heuristic was simply to look for template argument- specific keywords, such as typename, class, template and auto that are preceded by a left angle bracket <. This changes the heuristic to instead look for a left angle bracket < preceded by a right square bracket ], since according to the C++ grammar, the template arguments must *directly* follow the introducer. (This sort of check might just end up being *too* aggressive) This patch also adds a bunch more token annotator tests for lambdas, specifically for some of the stranger forms of lambdas now allowed as of C++20 or soon-to-be-allowed as part of C++23. Fixes https://github.com/llvm/llvm-project/issues/57093 This does NOT resolve the FIXME regarding explicit template lists, but perhaps it gets closer Differential Revision: https://reviews.llvm.org/D132295
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp')
0 files changed, 0 insertions, 0 deletions