Home
last modified time | relevance | path

Searched refs:ConstString (Results 1 – 25 of 461) sorted by relevance

12345678910>>...19

/llvm-project/lldb/unittests/Utility/
H A DConstStringTest.cpp16 EXPECT_EQ("foo", llvm::formatv("{0}", ConstString("foo")).str()); in TEST()
20 ConstString uvw("uvw"); in TEST()
21 ConstString counterpart; in TEST()
25 ConstString xyz; in TEST()
38 ConstString some1; in TEST()
39 some1.SetStringWithMangledCounterpart("some", ConstString("")); in TEST()
42 ConstString some2; in TEST()
43 some2.SetStringWithMangledCounterpart("some", ConstString("one")); in TEST()
46 ConstString some2; in TEST()
47 some2.SetStringWithMangledCounterpart("some", ConstString("one")); in TEST()
[all …]
/llvm-project/lldb/unittests/Target/
H A DPathMappingListTest.cpp29 llvm::ArrayRef<ConstString> fails) { in TestPathMappings()
30 ConstString actual_remapped; in TestPathMappings()
40 map.RemapPath(ConstString(match.original.GetPath()), actual_remapped)); in TestPathMappings()
60 ConstString fails[] = { in TEST()
62 ConstString("C:\\"), in TEST()
63 ConstString("C:\\a"), in TEST()
65 ConstString("/a"), in TEST()
66 ConstString("/"), in TEST()
88 ConstString fails[] = { in TEST()
89 ConstString("/foo"), in TEST()
[all …]
/llvm-project/lldb/include/lldb/Utility/
H A DConstString.h40 class ConstString {
45 ConstString() = default;
47 explicit ConstString(llvm::StringRef s);
57 explicit ConstString(const char *cstr);
79 explicit ConstString(const char *cstr, size_t max_cstr_len);
109 bool operator==(ConstString rhs) const {
151 bool operator!=(ConstString rhs) const { return m_string != rhs.m_string; }
166 bool operator<(ConstString rhs) const;
252 static bool Equals(ConstString lhs, ConstString rhs,
276 static int Compare(ConstString lhs, ConstString rhs,
[all …]
/llvm-project/lldb/unittests/Symbol/
H A DTestType.cpp92 return CompilerContext(CompilerContextKind::Module, ConstString(name));
96 ConstString(name));
99 return CompilerContext(CompilerContextKind::AnyType, ConstString(name));
102 return CompilerContext(CompilerContextKind::Enum, ConstString(name));
105 return CompilerContext(CompilerContextKind::Namespace, ConstString(name));
/llvm-project/lldb/source/Utility/
H A DConstString.cpp165 ConstString::MemoryStats GetMemoryStats() const { in GetMemoryStats()
166 ConstString::MemoryStats stats; in GetMemoryStats()
211 ConstString::ConstString(const char *cstr) in ConstString() function in ConstString
214 ConstString::ConstString(const char *cstr, size_t cstr_len) in ConstString() function in ConstString
217 ConstString::ConstString(llvm::StringRef s) in ConstString() function in ConstString
220 bool ConstString::operator<(ConstString rhs) const { in operator <()
235 Stream &lldb_private::operator<<(Stream &s, ConstString str) { in operator <<()
243 size_t ConstString::GetLength() const { in GetLength()
247 bool ConstString::Equals(ConstString lhs, ConstString rhs, in Equals()
264 int ConstString::Compare(ConstString lhs, ConstString rhs, in Compare()
[all …]
/llvm-project/lldb/unittests/Core/
H A DMangledTest.cpp32 ConstString MangledName("_ZN1a1b1cIiiiEEvm"); in TEST()
34 ConstString TheDemangled = TheMangled.GetDemangledName(); in TEST()
36 ConstString ExpectedResult("void a::b::c<int, int, int>(unsigned long)"); in TEST()
41 ConstString MangledName("___Z1fU13block_pointerFviE_block_invoke"); in TEST()
43 ConstString TheDemangled = TheMangled.GetDemangledName(); in TEST()
45 ConstString ExpectedResult( in TEST()
51 ConstString MangledName("_ZN1a1b1cmxktpEEvm"); in TEST()
53 ConstString TheDemangled = TheMangled.GetDemangledName(); in TEST()
59 ConstString mangled_name("_RNvC1a4main"); in TEST()
61 ConstString the_demangled = the_mangled.GetDemangledName(); in TEST()
[all …]
H A DRichManglingContextTest.cpp20 ConstString mangled("_ZN3foo3barEv"); in TEST()
31 ConstString mangled("_ZN3foo3barEv"); in TEST()
35 ConstString demangled("foo::bar()"); in TEST()
48 EXPECT_TRUE(CxxMethodRMC.FromCxxMethodName(ConstString("X"))); in TEST()
55 ConstString("void * operator new(unsigned __int64)"))); in TEST()
67 EXPECT_TRUE(RMC.FromItaniumName(ConstString(mangled))); in TEST()
70 EXPECT_TRUE(RMC.FromCxxMethodName(ConstString(demangled))); in TEST()
73 EXPECT_TRUE(RMC.FromItaniumName(ConstString(mangled))); in TEST()
101 EXPECT_TRUE(RMC.FromItaniumName(ConstString(ShortMangled))); in TEST()
105 EXPECT_TRUE(RMC.FromItaniumName(ConstString(LongMangled))); in TEST()
/llvm-project/lldb/include/lldb/Core/
H A DMangled.h62 explicit Mangled(ConstString name);
129 ConstString GetDemangledName() const;
135 ConstString GetDisplayDemangledName() const;
137 void SetDemangledName(ConstString name) { m_demangled = name; } in SetDemangledName()
139 void SetMangledName(ConstString name) { m_mangled = name; } in SetMangledName()
145 ConstString &GetMangledName() { return m_mangled; } in GetMangledName()
151 ConstString GetMangledName() const { return m_mangled; } in GetMangledName()
162 ConstString GetName(NamePreference preference = ePreferDemangled) const;
171 bool NameMatches(ConstString name) const { in NameMatches()
195 void SetValue(ConstString name);
[all …]
H A DUniqueCStringMap.h29 Entry(ConstString cstr, const T &v) : cstring(cstr), value(v) {} in Entry()
31 ConstString cstring;
42 void Append(ConstString unique_cstr, const T &value) { in Append()
62 ConstString GetCStringAtIndexUnchecked(uint32_t idx) const { in GetCStringAtIndexUnchecked()
76 ConstString GetCStringAtIndex(uint32_t idx) const { in GetCStringAtIndex()
77 return ((idx < m_map.size()) ? m_map[idx].cstring : ConstString()); in GetCStringAtIndex()
86 T Find(ConstString unique_cstr, T fail_value) const { in Find()
98 const Entry *FindFirstValueForName(ConstString unique_cstr) const { in FindFirstValueForName()
124 size_t GetValues(ConstString unique_cstr, std::vector<T> &values) const { in GetValues()
203 equal_range(ConstString unique_cstr) const { in equal_range()
[all …]
H A DValueObjectConstResult.h
H A DModule.h21 #include "lldb/Utility/ConstString.h"
128 ConstString object_name = ConstString(), lldb::offset_t object_offset = 0,
261 ConstString name, lldb::SymbolType symbol_type = lldb::eSymbolTypeAny);
263 void FindSymbolsWithNameAndType(ConstString name,
284 void FindFunctionSymbols(ConstString name, uint32_t name_type_mask,
335 void FindFunctions(ConstString name,
406 void FindGlobalVariables(ConstString name,
532 ConstString GetObjectName() const;
767 void SetFileSpecAndObjectName(const FileSpec &file, ConstString object_nam
[all...]
/llvm-project/lldb/source/Plugins/Language/ObjC/
H A DNSDictionary.h14 #include "lldb/Utility/ConstString.h"
46 virtual bool Match(ConstString class_name) = 0;
52 Prefix(ConstString p);
54 bool Match(ConstString class_name) override;
57 ConstString m_prefix;
61 Full(ConstString n);
63 bool Match(ConstString class_name) override;
66 ConstString m_name;
70 MatcherUP GetFullMatch(ConstString n) { return std::make_unique<Full>(n); } in GetFullMatch()
72 MatcherUP GetPrefixMatch(ConstString
[all...]
H A DNSArray.cpp34 std::map<ConstString, CXXFunctionSummaryFormat::Callback> &
36 static std::map<ConstString, CXXFunctionSummaryFormat::Callback> g_map; in GetAdditionalSummaries()
40 std::map<ConstString, CXXSyntheticChildren::CreateFrontEndCallback> &
42 static std::map<ConstString, CXXSyntheticChildren::CreateFrontEndCallback> in GetAdditionalSynthetics()
61 size_t GetIndexOfChildWithName(ConstString name) override;
225 size_t GetIndexOfChildWithName(ConstString name) override;
313 size_t GetIndexOfChildWithName(ConstString name) override;
330 size_t GetIndexOfChildWithName(ConstString name) override;
363 ConstString class_name(descriptor->GetClassName()); in NSArraySummaryProvider()
365 static const ConstString g_NSArray in NSArraySummaryProvider()
[all...]
/llvm-project/lldb/unittests/Process/Utility/
H A DLinuxProcMapsTest.cpp63 // Note: ConstString("") != ConstString(nullptr)
94 ConstString("[abc]"), MemoryRegionInfo::eDontKnow, 0,
107 MemoryRegionInfo::eYes, ConstString("[heap]"),
123 MemoryRegionInfo::eYes, ConstString(nullptr),
130 MemoryRegionInfo::eYes, ConstString(nullptr),
137 MemoryRegionInfo::eYes, ConstString("[vsyscall]"),
164 ConstString("[foo]"), MemoryRegionInfo::eDontKnow, 0,
185 ConstString("[foo]"), MemoryRegionInfo::eDontKnow, 0,
198 ConstString("[fo
[all...]
/llvm-project/lldb/include/lldb/DataFormatters/
H A DDataVisualization.h62 static bool GetSummaryFormat(ConstString type,
65 static void Add(ConstString type,
68 static bool Delete(ConstString type);
81 static bool GetCategory(ConstString category,
88 static void Add(ConstString category);
90 static bool Delete(ConstString category);
94 static void Clear(ConstString category);
96 static void Enable(ConstString category,
101 static void Disable(ConstString category);
H A DFormatManager.h53 EnableCategory(ConstString category_name,
58 void EnableCategory(ConstString category_name, in EnableCategory()
67 void DisableCategory(ConstString category_name) { in DisableCategory()
85 bool DeleteCategory(ConstString category_name) { in DeleteCategory()
103 return GetCategory(ConstString(category_name));
106 lldb::TypeCategoryImplSP GetCategory(ConstString category_name,
170 static ConstString GetTypeForCache(ValueObject &, lldb::DynamicValueType);
192 ConstString m_default_category_name;
193 ConstString m_system_category_name;
194 ConstString m_vectortypes_category_name;
/llvm-project/lldb/include/lldb/Symbol/
H A DType.h18 #include "lldb/Utility/ConstString.h"
53 CompilerContext(CompilerContextKind t, ConstString n) : kind(t), name(n) {} in CompilerContext()
63 ConstString name;
169 TypeQuery(const CompilerDeclContext &decl_ctx, ConstString type_basename, in LLDB_MARK_AS_BITMASK_ENUM()
248 ConstString GetTypeBasename() const; in LLDB_MARK_AS_BITMASK_ENUM()
479 ConstString GetName(); in SetSymbolContextScope()
481 ConstString GetBaseName();
498 ConstString GetName() const { return m_name; }
500 ConstString GetQualifiedName();
577 ConstString m_nam
[all...]
/llvm-project/lldb/include/lldb/Target/
H A DPathMappingList.h12 #include "lldb/Utility/ConstString.h"
64 bool GetPathsAtIndex(uint32_t idx, ConstString &path,
65 ConstString &new_path) const;
72 bool Remove(ConstString path, bool notify);
78 bool RemapPath(ConstString path, ConstString &new_path) const;
142 typedef std::pair<ConstString, ConstString> pair; in GetModificationID()
151 iterator FindIteratorForPath(ConstString path);
153 const_iterator FindIteratorForPath(ConstString pat
[all...]
H A DLanguage.h200 ConstString m_name;
204 MethodNameVariant(ConstString name, lldb::FunctionNameType type) in MethodNameVariant()
206 ConstString GetName() const { return m_name; } in GetName()
213 GetMethodNameVariants(ConstString method_name) const { in GetMethodNameVariants()
249 ConstString demangled) const;
276 virtual ConstString
278 if (ConstString demangled = mangled.GetDemangledName()) in GetDemangledFunctionNameWithoutArguments()
284 virtual ConstString GetDisplayDemangledName(Mangled mangled) const { in GetDisplayDemangledName()
344 virtual std::vector<ConstString>
345 GenerateAlternateFunctionManglings(const ConstString mangle
[all...]
/llvm-project/lldb/unittests/SymbolFile/DWARF/
H A DDWARFIndexCachingTest.cpp103 map.Insert(ConstString("hello"), in TEST()
105 map.Insert(ConstString("workd"), in TEST()
140 ConstString("a"), in TEST()
147 ConstString("a"), in TEST()
154 ConstString("a"), in TEST()
161 ConstString("a"), in TEST()
168 ConstString("a"), in TEST()
175 ConstString("a"), in TEST()
182 ConstString("a"), in TEST()
189 ConstString("a"), in TEST()
[all …]
/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangExpressionDeclMap.h127 ConstString name, TypeFromParser type,
150 bool AddValueToStruct(const clang::NamedDecl *decl, ConstString name,
208 lldb::offset_t &offset, ConstString &name,
245 ConstString name, lldb::SymbolType symbol_type,
248 lldb::addr_t GetSymbolAddress(ConstString name,
291 virtual clang::NamedDecl *GetPersistentDecl(ConstString name);
366 ConstString
401 void SearchPersistenDecls(NameSearchContext &context, const ConstString name);
432 void LookupInModulesDeclVendor(NameSearchContext &context, ConstString name);
450 bool LookupLocalVariable(NameSearchContext &context, ConstString name,
[all …]
/llvm-project/lldb/include/lldb/Expression/
H A DIRExecutionUnit.h62 std::unique_ptr<llvm::Module> &module_up, ConstString &name,
69 ConstString GetFunctionName() { return m_name; } in GetFunctionName()
104 lldb::addr_t FindSymbol(ConstString name, bool &missing_weak);
116 ConstString m_name; ///< The function's name
217 void CollectCandidateCNames(std::vector<ConstString> &C_names,
218 ConstString name);
220 void CollectCandidateCPlusPlusNames(std::vector<ConstString> &CPP_names,
221 const std::vector<ConstString> &C_names,
224 lldb::addr_t FindInSymbols(const std::vector<ConstString> &names,
228 lldb::addr_t FindInRuntimes(const std::vector<ConstString> &names,
[all …]
/llvm-project/lldb/source/Target/
H A DAssertFrameRecognizer.cpp31 location.symbols.push_back(ConstString("__pthread_kill"));
35 location.symbols.push_back(ConstString("raise"));
36 location.symbols.push_back(ConstString("__GI_raise"));
37 location.symbols.push_back(ConstString("gsignal")); in GetAbortLocation()
38 location.symbols.push_back(ConstString("pthread_kill")); in GetAbortLocation()
64 location.symbols.push_back(ConstString("__assert_rtn"));
68 location.symbols.push_back(ConstString("__assert_fail"));
69 location.symbols.push_back(ConstString("__GI___assert_fail"));
155 ConstString func_name = sym_ctx.GetFunctionName(); in RecognizeFrame()
/llvm-project/lldb/unittests/Language/CPlusPlus/
H A DCPlusPlusLanguageTest.cpp215 CPlusPlusLanguage::MethodName method(ConstString(test.input)); in TEST()
246 CPlusPlusLanguage::MethodName method{ConstString(name)}; in TEST()
253 reference_1(ConstString("int foo::bar::func01(int a, double b)")); in TEST()
255 reference_2(ConstString("int foofoo::bar::func01(std::string a, int b)")); in TEST()
256 CPlusPlusLanguage::MethodName reference_3(ConstString("int func01()")); in TEST()
258 reference_4(ConstString("bar::baz::operator bool()")); in TEST()
260 ConstString("bar::baz::operator bool<int, Type<double>>()")); in TEST()
261 CPlusPlusLanguage::MethodName reference_6(ConstString( in TEST()
372 std::vector<ConstString> Results = in GenerateAlternate()
373 CPlusPlusLang->GenerateAlternateFunctionManglings(ConstString(Name)); in GenerateAlternate()
[all …]
/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DCPlusPlusLanguage.h33 MethodName(ConstString s) in MethodName()
47 ConstString GetFullName() const { return m_full; } in GetFullName()
86 ConstString m_full; // Full name:
136 ConstString demangled) const override;
138 ConstString
164 std::vector<ConstString>
165 GenerateAlternateFunctionManglings(const ConstString mangled) const override;
167 ConstString FindBestAlternateFunctionMangledName(

12345678910>>...19