Home
last modified time | relevance | path

Searched refs:RegularExpression (Results 1 – 25 of 110) sorted by relevance

12345

/llvm-project-15.0.7/lldb/include/lldb/Utility/
H A DRegularExpression.h18 class RegularExpression {
22 RegularExpression() = default;
34 explicit RegularExpression(llvm::StringRef string);
36 ~RegularExpression() = default;
38 RegularExpression(const RegularExpression &rhs);
39 RegularExpression(RegularExpression &&rhs) = default;
41 RegularExpression &operator=(RegularExpression &&rhs) = default;
42 RegularExpression &operator=(const RegularExpression &rhs) = default;
81 bool operator==(const RegularExpression &rhs) const {
H A DNameMatches.h21 RegularExpression enumerator
/llvm-project-15.0.7/lldb/source/Utility/
H A DRegularExpression.cpp15 RegularExpression::RegularExpression(llvm::StringRef str) in RegularExpression() function in RegularExpression
20 RegularExpression::RegularExpression(const RegularExpression &rhs) in RegularExpression() function in RegularExpression
21 : RegularExpression(rhs.GetText()) {} in RegularExpression()
23 bool RegularExpression::Execute( in Execute()
31 bool RegularExpression::IsValid() const { return m_regex.isValid(); } in IsValid()
33 llvm::StringRef RegularExpression::GetText() const { return m_regex_text; } in GetText()
35 llvm::Error RegularExpression::GetError() const { in GetError()
H A DNameMatches.cpp28 case NameMatch::RegularExpression: { in NameMatches()
29 RegularExpression regex(match); in NameMatches()
/llvm-project-15.0.7/lldb/unittests/Utility/
H A DRegularExpressionTest.cpp16 TEST(RegularExpression, Valid) { in TEST() argument
17 RegularExpression r1("^[0-9]+$"); in TEST()
24 TEST(RegularExpression, CopyAssignment) { in TEST() argument
25 RegularExpression r1("^[0-9]+$"); in TEST()
26 RegularExpression r2 = r1; in TEST()
33 TEST(RegularExpression, Empty) { in TEST() argument
34 RegularExpression r1(""); in TEST()
43 TEST(RegularExpression, Invalid) { in TEST() argument
44 RegularExpression r1("a[b-"); in TEST()
53 TEST(RegularExpression, Match) { in TEST() argument
[all …]
H A DNameMatchesTest.cpp49 TEST(NameMatchesTest, RegularExpression) { in TEST() argument
50 EXPECT_TRUE(NameMatches("foobar", NameMatch::RegularExpression, "foo")); in TEST()
51 EXPECT_TRUE(NameMatches("foobar", NameMatch::RegularExpression, "f[oa]o")); in TEST()
52 EXPECT_FALSE(NameMatches("foo", NameMatch::RegularExpression, "")); in TEST()
53 EXPECT_FALSE(NameMatches("", NameMatch::RegularExpression, "")); in TEST()
54 EXPECT_FALSE(NameMatches("foo", NameMatch::RegularExpression, "b")); in TEST()
55 EXPECT_FALSE(NameMatches("", NameMatch::RegularExpression, "b")); in TEST()
56 EXPECT_FALSE(NameMatches("^a", NameMatch::RegularExpression, "^a")); in TEST()
/llvm-project-15.0.7/lldb/include/lldb/Interpreter/
H A DOptionValueRegex.h36 m_regex = RegularExpression(m_default_regex_str); in Clear()
41 const RegularExpression *GetCurrentValue() const { in GetCurrentValue()
47 m_regex = RegularExpression(llvm::StringRef(value)); in SetCurrentValue()
49 m_regex = RegularExpression(); in SetCurrentValue()
55 RegularExpression m_regex;
/llvm-project-15.0.7/lldb/unittests/DataFormatter/
H A DFormattersContainerTest.cpp48 TypeMatcher matcher(RegularExpression("^a[a-z]c$")); in TEST()
69 TypeMatcher matcher(RegularExpression("a[a-z]c")); in TEST()
96 EXPECT_EQ(TypeMatcher(RegularExpression("aa")).GetMatchString(), "aa"); in TEST()
97 EXPECT_EQ(TypeMatcher(RegularExpression("")).GetMatchString(), ""); in TEST()
98 EXPECT_EQ(TypeMatcher(RegularExpression("[a]")).GetMatchString(), "[a]"); in TEST()
104 TypeMatcher empty_regex(RegularExpression("")); in TEST()
109 TypeMatcher a_regex(RegularExpression("a")); in TEST()
114 TypeMatcher digit_regex(RegularExpression("[0-9]")); in TEST()
154 TypeMatcher without_prefix(RegularExpression("")); in TEST()
/llvm-project-15.0.7/lldb/source/DataFormatters/
H A DFormattersHelpers.cpp31 RegularExpression(type_name.GetStringRef()), format_sp); in AddFormat()
42 RegularExpression(type_name.GetStringRef()), summary_sp); in AddSummary()
55 RegularExpression(type_name.GetStringRef()), summary_sp); in AddStringSummary()
69 RegularExpression(type_name.GetStringRef()), summary_sp); in AddOneLineSummary()
83 RegularExpression(type_name.GetStringRef()), summary_sp); in AddCXXSummary()
98 RegularExpression(type_name.GetStringRef()), synth_sp); in AddCXXSynthetic()
113 RegularExpression(type_name.GetStringRef()), filter_sp); in AddFilter()
/llvm-project-15.0.7/lldb/source/Plugins/Language/CPlusPlus/
H A DCPlusPlusLanguage.cpp1004 RegularExpression("^std::vector<.+>(( )?&)?$"), in LoadLibStdcppFormatters()
1009 RegularExpression("^std::map<.+> >(( )?&)?$"), in LoadLibStdcppFormatters()
1014 RegularExpression("^std::deque<.+>(( )?&)?$"), in LoadLibStdcppFormatters()
1019 RegularExpression("^std::set<.+> >(( )?&)?$"), in LoadLibStdcppFormatters()
1024 RegularExpression("^std::multimap<.+> >(( )?&)?$"), in LoadLibStdcppFormatters()
1029 RegularExpression("^std::multiset<.+> >(( )?&)?$"), in LoadLibStdcppFormatters()
1052 RegularExpression("^std::bitset<.+>(( )?&)?$"), in LoadLibStdcppFormatters()
1056 RegularExpression("^std::vector<.+>(( )?&)?$"), in LoadLibStdcppFormatters()
1060 RegularExpression("^std::map<.+> >(( )?&)?$"), in LoadLibStdcppFormatters()
1064 RegularExpression("^std::set<.+> >(( )?&)?$"), in LoadLibStdcppFormatters()
[all …]
/llvm-project-15.0.7/lldb/include/lldb/Breakpoint/
H A DBreakpointResolverFileRegex.h27 const lldb::BreakpointSP &bkpt, RegularExpression regex,
64 RegularExpression
H A DBreakpointResolverName.h49 RegularExpression func_regex,
86 RegularExpression m_regex;
/llvm-project-15.0.7/lldb/include/lldb/Core/
H A DSourceManager.h26 class RegularExpression; variable
47 void FindLinesMatchingRegex(RegularExpression &regex, uint32_t start_line,
148 void FindLinesMatchingRegex(FileSpec &file_spec, RegularExpression &regex,
H A DModuleList.h39 class RegularExpression; variable
274 void FindFunctions(const RegularExpression &name,
304 void FindGlobalVariables(const RegularExpression &regex, size_t max_matches,
338 void FindSymbolsMatchingRegExAndType(const RegularExpression &regex,
H A DModule.h48 class RegularExpression; variable
264 void FindSymbolsMatchingRegExAndType(const RegularExpression &regex,
332 void FindFunctions(const RegularExpression &regex,
395 void FindGlobalVariables(const RegularExpression &regex, size_t max_matches,
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFIndex.h37 GetGlobalVariables(const RegularExpression &regex,
62 GetFunctions(const RegularExpression &regex,
H A DAppleDWARFIndex.h39 GetGlobalVariables(const RegularExpression &regex,
59 void GetFunctions(const RegularExpression &regex,
H A DDebugNamesDWARFIndex.h32 GetGlobalVariables(const RegularExpression &regex,
53 void GetFunctions(const RegularExpression &regex,
H A DManualDWARFIndex.h33 GetGlobalVariables(const RegularExpression &regex,
53 void GetFunctions(const RegularExpression &regex,
H A DHashedNameToDIE.h136 AppendAllDIEsThatMatchingRegex(const lldb_private::RegularExpression &regex,
161 const lldb_private::RegularExpression &regex,
/llvm-project-15.0.7/lldb/include/lldb/Symbol/
H A DSymtab.h93 AppendSymbolIndexesMatchingRegExAndType(const RegularExpression &regex,
97 const RegularExpression &regex, lldb::SymbolType symbol_type,
109 const RegularExpression &regex, lldb::SymbolType symbol_type,
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/PDB/
H A DSymbolFilePDB.h118 void FindGlobalVariables(const lldb_private::RegularExpression &regex,
128 void FindFunctions(const lldb_private::RegularExpression &regex,
150 void FindTypesByRegex(const lldb_private::RegularExpression &regex,
/llvm-project-15.0.7/lldb/source/Target/
H A DAssertFrameRecognizer.cpp124 std::make_shared<RegularExpression>(std::move(module_re)), in RegisterAssertFrameRecognizer()
125 std::make_shared<RegularExpression>(std::move(symbol_re)), in RegisterAssertFrameRecognizer()
/llvm-project-15.0.7/lldb/source/API/
H A DSBTypeCategory.cpp345 RegularExpression(type_name.GetName()), format.GetSP()); in AddTypeFormat()
419 RegularExpression(type_name.GetName()), summary.GetSP()); in AddTypeSummary()
459 RegularExpression(type_name.GetName()), filter.GetSP()); in AddTypeFilter()
533 RegularExpression(type_name.GetName()), synth.GetSP()); in AddTypeSynthetic()
/llvm-project-15.0.7/lldb/source/Breakpoint/
H A DBreakpointResolverFileRegex.cpp23 const lldb::BreakpointSP &bkpt, RegularExpression regex, in BreakpointResolverFileRegex()
41 RegularExpression regex(regex_string); in CreateFromStructuredData()

12345