aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorMike Crowe <mac@mcrowe.com>2023-07-11 18:58:09 +0000
committerPiotr Zegar <me@piotrzegar.pl>2023-07-11 19:22:32 +0000
commitb389a62518ad54ae5a183efa43f8408571b2b8cb (patch)
treef73d58498ca6e1ea1878f9d89d0c9bac07626ca4 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent2ce765eb2f4feb7555d1416842c542743990b004 (diff)
downloadllvm-b389a62518ad54ae5a183efa43f8408571b2b8cb.zip
llvm-b389a62518ad54ae5a183efa43f8408571b2b8cb.tar.gz
llvm-b389a62518ad54ae5a183efa43f8408571b2b8cb.tar.bz2
[clang-tidy] Make MatchesAnyListedNameMatcher cope with unnamed Decl
If MatchesAnyListedNameMatcher::NameMatcher::match() is called in MatchMode::MatchUnqualified mode with a NamedDecl that has no name then calling NamedDecl::getName() will assert with: `Name.isIdentifier() && "Name is not a simple identifier"' It seems unfair to force all matchers using matchers::matchesAnyListedName to defend against this, particularly since test cases are unlikely to provoke the problem. Let's just check whether the identifier has a name before attempting to use it instead. Add test case that reproduces the problem to the use-std-print-custom.cpp lit check. Reviewed By: PiotrZSL Differential Revision: https://reviews.llvm.org/D154884
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions