Home
last modified time | relevance | path

Searched refs:NameMatch (Results 1 – 17 of 17) sorted by relevance

/external/llvm-project/lldb/unittests/Utility/
DNameMatchesTest.cpp15 EXPECT_TRUE(NameMatches("foo", NameMatch::Ignore, "bar")); in TEST()
19 EXPECT_TRUE(NameMatches("foo", NameMatch::Equals, "foo")); in TEST()
20 EXPECT_FALSE(NameMatches("foo", NameMatch::Equals, "bar")); in TEST()
24 EXPECT_TRUE(NameMatches("foobar", NameMatch::Contains, "foo")); in TEST()
25 EXPECT_TRUE(NameMatches("foobar", NameMatch::Contains, "oob")); in TEST()
26 EXPECT_TRUE(NameMatches("foobar", NameMatch::Contains, "bar")); in TEST()
27 EXPECT_TRUE(NameMatches("foobar", NameMatch::Contains, "foobar")); in TEST()
28 EXPECT_TRUE(NameMatches("", NameMatch::Contains, "")); in TEST()
29 EXPECT_FALSE(NameMatches("", NameMatch::Contains, "foo")); in TEST()
30 EXPECT_FALSE(NameMatches("foobar", NameMatch::Contains, "baz")); in TEST()
[all …]
DProcessInstanceInfoTest.cpp100 match.SetNameMatchType(NameMatch::Equals); in TEST()
/external/llvm-project/lldb/source/Utility/
DNameMatches.cpp15 bool lldb_private::NameMatches(llvm::StringRef name, NameMatch match_type, in NameMatches()
18 case NameMatch::Ignore: in NameMatches()
20 case NameMatch::Equals: in NameMatches()
22 case NameMatch::Contains: in NameMatches()
24 case NameMatch::StartsWith: in NameMatches()
26 case NameMatch::EndsWith: in NameMatches()
28 case NameMatch::RegularExpression: { in NameMatches()
DProcessInfo.cpp253 if (m_name_match_type == NameMatch::Ignore) in NameMatches()
301 if (m_name_match_type != NameMatch::Ignore) in MatchAllProcesses()
333 m_name_match_type = NameMatch::Ignore; in Clear()
/external/llvm-project/lldb/include/lldb/Utility/
DProcessInfo.h168 : m_match_info(), m_name_match_type(NameMatch::Ignore),
172 NameMatch process_name_match_type)
187 NameMatch GetNameMatchType() const { return m_name_match_type; }
189 void SetNameMatchType(NameMatch name_match_type) {
214 NameMatch m_name_match_type;
DNameMatches.h15 enum class NameMatch { enum
24 bool NameMatches(llvm::StringRef name, NameMatch match_type,
/external/llvm-project/clang-tools-extra/clangd/
DFindSymbols.cpp141 if (auto NameMatch = Filter.match(Sym.Name)) in getWorkspaceSymbols() local
142 Relevance.NameMatch = *NameMatch; in getWorkspaceSymbols()
162 Info.score = Score / Relevance.NameMatch; in getWorkspaceSymbols()
DQuality.cpp375 Score *= NameMatch; in evaluateHeuristics()
451 OS << llvm::formatv("\tName match: {0}\n", S.NameMatch); in operator <<()
529 Scores.Total = Relevance.NameMatch * Scores.ExcludingName; in evaluateDecisionForest()
DQuality.h91 float NameMatch = 1; member
DCodeComplete.cpp1653 Scores.ExcludingName = Relevance.NameMatch in evaluateCompletion()
1654 ? Scores.Total / Relevance.NameMatch in evaluateCompletion()
1686 Relevance.NameMatch = *FuzzyScore; in addCandidate()
/external/llvm-project/lldb/source/Commands/
DCommandObjectPlatform.cpp1149 case NameMatch::Ignore: in DoExecute()
1151 case NameMatch::Equals: in DoExecute()
1154 case NameMatch::Contains: in DoExecute()
1157 case NameMatch::StartsWith: in DoExecute()
1160 case NameMatch::EndsWith: in DoExecute()
1163 case NameMatch::RegularExpression: in DoExecute()
1290 match_info.SetNameMatchType(NameMatch::Equals); in SetOptionValue()
1296 match_info.SetNameMatchType(NameMatch::EndsWith); in SetOptionValue()
1302 match_info.SetNameMatchType(NameMatch::StartsWith); in SetOptionValue()
1308 match_info.SetNameMatchType(NameMatch::Contains); in SetOptionValue()
[all …]
/external/llvm-project/lldb/source/Plugins/Process/gdb-remote/
DGDBRemoteCommunicationServerCommon.cpp353 NameMatch name_match = llvm::StringSwitch<NameMatch>(value) in Handle_qfProcessInfo()
354 .Case("equals", NameMatch::Equals) in Handle_qfProcessInfo()
355 .Case("starts_with", NameMatch::StartsWith) in Handle_qfProcessInfo()
356 .Case("ends_with", NameMatch::EndsWith) in Handle_qfProcessInfo()
357 .Case("contains", NameMatch::Contains) in Handle_qfProcessInfo()
358 .Case("regex", NameMatch::RegularExpression) in Handle_qfProcessInfo()
359 .Default(NameMatch::Ignore); in Handle_qfProcessInfo()
361 if (name_match == NameMatch::Ignore) in Handle_qfProcessInfo()
DGDBRemoteCommunicationClient.cpp2180 NameMatch name_match_type = match_info.GetNameMatchType(); in FindProcesses()
2182 case NameMatch::Ignore: in FindProcesses()
2186 case NameMatch::Equals: in FindProcesses()
2190 case NameMatch::Contains: in FindProcesses()
2194 case NameMatch::StartsWith: in FindProcesses()
2198 case NameMatch::EndsWith: in FindProcesses()
2202 case NameMatch::RegularExpression: in FindProcesses()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DQualityTests.cpp123 EXPECT_EQ(Relevance.NameMatch, SymbolRelevanceSignals().NameMatch); in TEST()
248 PoorNameMatch.NameMatch = 0.2f; in TEST()
/external/llvm-project/lldb/source/Host/freebsd/
DHost.cpp180 match_info_noname.SetNameMatchType(NameMatch::Ignore); in FindProcessesImpl()
/external/llvm-project/lldb/source/Host/netbsd/
DHostNetBSD.cpp204 match_info_noname.SetNameMatchType(NameMatch::Ignore); in FindProcessesImpl()
/external/llvm-project/lldb/source/Target/
DProcess.cpp2912 match_info.SetNameMatchType(NameMatch::Equals); in Attach()