Home
last modified time | relevance | path

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

12345

/llvm-project/lldb/include/lldb/Utility/
H A DRegularExpression.h18 class RegularExpression {
22 RegularExpression() = default;
38 explicit RegularExpression(
42 ~RegularExpression() = default;
44 RegularExpression(const RegularExpression &rhs);
45 RegularExpression(RegularExpression &&rhs) = default;
47 RegularExpression &operator=(RegularExpression &&rhs) = default;
48 RegularExpression &operator=(const RegularExpression &rhs) = default;
87 bool operator==(const RegularExpression &rhs) const {
/llvm-project/lldb/source/Utility/
H A DRegularExpression.cpp15 RegularExpression::RegularExpression(llvm::StringRef str, in RegularExpression() function in RegularExpression
21 RegularExpression::RegularExpression(const RegularExpression &rhs) in RegularExpression() function in RegularExpression
22 : RegularExpression(rhs.GetText()) {} in RegularExpression()
24 bool RegularExpression::Execute( in Execute()
32 bool RegularExpression::IsValid() const { return m_regex.isValid(); } in IsValid()
34 llvm::StringRef RegularExpression::GetText() const { return m_regex_text; } in GetText()
36 llvm::Error RegularExpression::GetError() const { in GetError()
H A DNameMatches.cpp28 case NameMatch::RegularExpression: { in NameMatches()
29 RegularExpression regex(match); in NameMatches()
/llvm-project/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/lldb/include/lldb/Interpreter/
H A DOptionValueRegex.h40 m_regex = RegularExpression(m_default_regex_str); in Clear()
45 const RegularExpression *GetCurrentValue() const { in GetCurrentValue()
51 m_regex = RegularExpression(llvm::StringRef(value)); in SetCurrentValue()
53 m_regex = RegularExpression(); in SetCurrentValue()
59 RegularExpression m_regex;
/llvm-project/lldb/unittests/DataFormatter/
H A DFormattersContainerTest.cpp56 TypeMatcher matcher(RegularExpression("^a[a-z]c$")); in TEST()
77 TypeMatcher matcher(RegularExpression("a[a-z]c")); in TEST()
104 EXPECT_EQ(TypeMatcher(RegularExpression("aa")).GetMatchString(), "aa"); in TEST()
105 EXPECT_EQ(TypeMatcher(RegularExpression("")).GetMatchString(), ""); in TEST()
106 EXPECT_EQ(TypeMatcher(RegularExpression("[a]")).GetMatchString(), "[a]"); in TEST()
112 TypeMatcher empty_regex(RegularExpression("")); in TEST()
117 TypeMatcher a_regex(RegularExpression("a")); in TEST()
122 TypeMatcher digit_regex(RegularExpression("[0-9]")); in TEST()
162 TypeMatcher without_prefix(RegularExpression("")); in TEST()
/llvm-project/lldb/include/lldb/Breakpoint/
H A DBreakpointResolverFileRegex.h27 const lldb::BreakpointSP &bkpt, RegularExpression regex,
63 RegularExpression
H A DBreakpointResolverName.h49 RegularExpression func_regex,
85 RegularExpression m_regex;
/llvm-project/lldb/include/lldb/Core/
H A DSourceManager.h29 class RegularExpression;
50 void FindLinesMatchingRegex(RegularExpression &regex, uint32_t start_line,
191 RegularExpression &regex, uint32_t start_line,
28 class RegularExpression; global() variable
H A DModuleList.h39 class RegularExpression; variable
296 void FindFunctions(const RegularExpression &name,
326 void FindGlobalVariables(const RegularExpression &regex, size_t max_matches,
360 void FindSymbolsMatchingRegExAndType(const RegularExpression &regex,
H A DModule.h51 class RegularExpression;
268 const RegularExpression &regex, lldb::SymbolType symbol_type,
359 void FindFunctions(const RegularExpression &regex,
422 void FindGlobalVariables(const RegularExpression &regex, size_t max_matches,
50 class RegularExpression; global() variable
/llvm-project/lldb/source/Plugins/InstrumentationRuntime/ASan/
H A DInstrumentationRuntimeASan.cpp47 const RegularExpression &
50 static RegularExpression regex( in GetPatternForRuntimeLibrary()
/llvm-project/lldb/source/Plugins/InstrumentationRuntime/ASanLibsanitizers/
H A DInstrumentationRuntimeASanLibsanitizers.cpp17 #include "lldb/Utility/RegularExpression.h"
54 const RegularExpression &
56 static RegularExpression regex( in GetPatternForRuntimeLibrary()
/llvm-project/lldb/include/lldb/DataFormatters/
H A DFormattersContainer.h25 #include "lldb/Utility/RegularExpression.h"
45 RegularExpression m_type_name_regex;
48 /// - eFormatterMatchRegex: match using the RegularExpression object
82 TypeMatcher(RegularExpression regex) in TypeMatcher()
91 m_type_name_regex = RegularExpression(type_specifier->GetName()); in TypeMatcher()
/llvm-project/lldb/source/Plugins/SymbolFile/CTF/
H A DSymbolFileCTF.h111 void FindTypesByRegex(const lldb_private::RegularExpression &regex,
119 void FindFunctions(const lldb_private::RegularExpression &regex,
129 void FindGlobalVariables(const lldb_private::RegularExpression &regex,
/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFIndex.h40 GetGlobalVariables(const RegularExpression &regex,
87 GetFunctions(const RegularExpression &regex,
H A DManualDWARFIndex.h36 GetGlobalVariables(const RegularExpression &regex,
56 void GetFunctions(const RegularExpression &regex,
H A DAppleDWARFIndex.h48 GetGlobalVariables(const RegularExpression &regex,
68 void GetFunctions(const RegularExpression &regex,
H A DDebugNamesDWARFIndex.h33 GetGlobalVariables(const RegularExpression &regex,
65 void GetFunctions(const RegularExpression &regex, in DebugNamesDWARFIndex()
/llvm-project/lldb/include/lldb/Symbol/
H A DSymtab.h93 const RegularExpression &regex, lldb::SymbolType symbol_type,
97 const RegularExpression &regex, lldb::SymbolType symbol_type,
111 const RegularExpression &regex, lldb::SymbolType symbol_type,
/llvm-project/lldb/source/Plugins/SymbolFile/PDB/
H A DSymbolFilePDB.h119 void FindGlobalVariables(const lldb_private::RegularExpression &regex,
128 void FindFunctions(const lldb_private::RegularExpression &regex,
139 void FindTypesByRegex(const lldb_private::RegularExpression &regex,
/llvm-project/lldb/source/Target/
H A DAssertFrameRecognizer.cpp114 std::make_shared<RegularExpression>(std::move(module_re)), in RegisterAssertFrameRecognizer()
115 std::make_shared<RegularExpression>(std::move(symbol_re)), in RegisterAssertFrameRecognizer()
H A DThreadPlanStepInRange.cpp23 #include "lldb/Utility/RegularExpression.h"
296 *m_avoid_regexp_up = RegularExpression(name); in SetAvoidRegexp()
298 m_avoid_regexp_up = std::make_unique<RegularExpression>(name); in SetAvoidRegexp()
331 const RegularExpression *avoid_regexp_to_use = m_avoid_regexp_up.get(); in FrameMatchesAvoidCriteria()
/llvm-project/lldb/source/Breakpoint/
H A DBreakpointResolverFileRegex.cpp23 const lldb::BreakpointSP &bkpt, RegularExpression regex, in BreakpointResolverFileRegex()
40 RegularExpression regex(regex_string); in CreateFromStructuredData()

12345