/external/llvm-project/lldb/unittests/Utility/ |
D | NameMatchesTest.cpp | 15 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 …]
|
D | ProcessInstanceInfoTest.cpp | 100 match.SetNameMatchType(NameMatch::Equals); in TEST()
|
/external/llvm-project/lldb/source/Utility/ |
D | NameMatches.cpp | 15 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()
|
D | ProcessInfo.cpp | 253 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/ |
D | ProcessInfo.h | 168 : 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;
|
D | NameMatches.h | 15 enum class NameMatch { enum 24 bool NameMatches(llvm::StringRef name, NameMatch match_type,
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | FindSymbols.cpp | 141 if (auto NameMatch = Filter.match(Sym.Name)) in getWorkspaceSymbols() local 142 Relevance.NameMatch = *NameMatch; in getWorkspaceSymbols() 162 Info.score = Score / Relevance.NameMatch; in getWorkspaceSymbols()
|
D | Quality.cpp | 375 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()
|
D | Quality.h | 91 float NameMatch = 1; member
|
D | CodeComplete.cpp | 1653 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/ |
D | CommandObjectPlatform.cpp | 1149 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/ |
D | GDBRemoteCommunicationServerCommon.cpp | 353 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()
|
D | GDBRemoteCommunicationClient.cpp | 2180 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/ |
D | QualityTests.cpp | 123 EXPECT_EQ(Relevance.NameMatch, SymbolRelevanceSignals().NameMatch); in TEST() 248 PoorNameMatch.NameMatch = 0.2f; in TEST()
|
/external/llvm-project/lldb/source/Host/freebsd/ |
D | Host.cpp | 180 match_info_noname.SetNameMatchType(NameMatch::Ignore); in FindProcessesImpl()
|
/external/llvm-project/lldb/source/Host/netbsd/ |
D | HostNetBSD.cpp | 204 match_info_noname.SetNameMatchType(NameMatch::Ignore); in FindProcessesImpl()
|
/external/llvm-project/lldb/source/Target/ |
D | Process.cpp | 2912 match_info.SetNameMatchType(NameMatch::Equals); in Attach()
|