| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | ConstString.cpp | 90 if (cstr != nullptr) in GetConstCString() 91 return GetConstCStringWithLength(cstr, strlen(cstr)); in GetConstCString() 96 if (cstr != nullptr) in GetConstCStringWithLength() 155 if (cstr != nullptr) { in GetConstTrimmedCStringWithLength() 230 const char *cstr = str.GetCString(); in operator <<() local 231 if (cstr != nullptr) in operator <<() 232 s << cstr; in operator <<() 285 if (cstr != nullptr) in Dump() 286 s->PutCString(cstr); in Dump() 291 const char *cstr = GetCString(); in DumpDebug() local [all …]
|
| H A D | StringExtractor.cpp | 97 const char *cstr = start + m_index; in GetU32() local 100 if (end && end != cstr) { in GetU32() 112 const char *cstr = start + m_index; in GetS32() local 113 int32_t result = static_cast<int32_t>(::strtol(cstr, &end, base)); in GetS32() 115 if (end && end != cstr) { in GetS32() 127 const char *cstr = start + m_index; in GetU64() local 128 uint64_t result = ::strtoull(cstr, &end, base); in GetU64() 130 if (end && end != cstr) { in GetU64() 142 const char *cstr = start + m_index; in GetS64() local 143 int64_t result = ::strtoll(cstr, &end, base); in GetS64() [all …]
|
| H A D | Event.cpp | 103 EventDataBytes::EventDataBytes(const char *cstr) : m_bytes() { in EventDataBytes() argument 104 SetBytesFromCString(cstr); in EventDataBytes() 151 void EventDataBytes::SetBytesFromCString(const char *cstr) { in SetBytesFromCString() argument 152 if (cstr != nullptr && cstr[0]) in SetBytesFromCString() 153 m_bytes.assign(cstr); in SetBytesFromCString()
|
| H A D | DataEncoder.cpp | 127 uint32_t DataEncoder::PutCString(uint32_t offset, const char *cstr) { in PutCString() argument 128 if (cstr != nullptr) in PutCString() 129 return PutData(offset, cstr, strlen(cstr) + 1); in PutCString()
|
| /llvm-project-15.0.7/lldb/source/API/ |
| H A D | SBFunction.cpp | 57 const char *cstr = nullptr; in GetName() local 59 cstr = m_opaque_ptr->GetName().AsCString(); in GetName() 61 return cstr; in GetName() 67 const char *cstr = nullptr; in GetDisplayName() local 69 cstr = m_opaque_ptr->GetMangled().GetDisplayDemangledName().AsCString(); in GetDisplayName() 71 return cstr; in GetDisplayName() 77 const char *cstr = nullptr; in GetMangledName() local 79 cstr = m_opaque_ptr->GetMangled().GetMangledName().AsCString(); in GetMangledName() 80 return cstr; in GetMangledName()
|
| H A D | SBEvent.cpp | 27 SBEvent::SBEvent(uint32_t event_type, const char *cstr, uint32_t cstr_len) in SBEvent() argument 28 : m_event_sp(new Event(event_type, new EventDataBytes(cstr, cstr_len))), in SBEvent() 30 LLDB_INSTRUMENT_VA(this, event_type, cstr, cstr_len); in SBEvent()
|
| H A D | SBValue.cpp | 356 const char *cstr = nullptr; in GetValue() local 360 cstr = value_sp->GetValueAsCString(); in GetValue() 363 return cstr; in GetValue() 381 const char *cstr = nullptr; in GetObjectDescription() local 388 return cstr; in GetObjectDescription() 423 const char *cstr = nullptr; in GetSummary() local 430 return cstr; in GetSummary() 444 const char *cstr = stream.GetData(); in GetSummary() local 445 return cstr; in GetSummary() 451 const char *cstr = nullptr; in GetLocation() local [all …]
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | StdStringExtractor.cpp | 90 const char *cstr = start + m_index; in GetU32() local 93 if (end && end != cstr) { in GetU32() 105 const char *cstr = start + m_index; in GetS32() local 106 int32_t result = static_cast<int32_t>(::strtol(cstr, &end, base)); in GetS32() 108 if (end && end != cstr) { in GetS32() 120 const char *cstr = start + m_index; in GetU64() local 121 uint64_t result = ::strtoull(cstr, &end, base); in GetU64() 123 if (end && end != cstr) { in GetU64() 135 const char *cstr = start + m_index; in GetS64() local 136 int64_t result = ::strtoll(cstr, &end, base); in GetS64() [all …]
|
| H A D | StdStringExtractor.h | 54 const char *cstr = Peek(); variable 55 if (cstr) 56 return cstr[0];
|
| /llvm-project-15.0.7/lldb/source/Host/freebsd/ |
| H A D | Host.cpp | 65 const char *cstr; in GetFreeBSDProcessArgs() local 67 cstr = data.GetCStr(&offset); in GetFreeBSDProcessArgs() 68 if (!cstr) in GetFreeBSDProcessArgs() 78 process_info.GetExecutableFile().SetFile(cstr, FileSpec::Style::native); in GetFreeBSDProcessArgs() 86 process_info.SetArg0(cstr); in GetFreeBSDProcessArgs() 97 cstr = data.GetCStr(&offset); in GetFreeBSDProcessArgs() 98 if (!cstr) in GetFreeBSDProcessArgs() 101 proc_args.AppendArgument(llvm::StringRef(cstr)); in GetFreeBSDProcessArgs()
|
| /llvm-project-15.0.7/lldb/examples/python/ |
| H A D | file_extract.py | 143 cstr, = struct.unpack(self.byte_order + ("%i" % n) + 's', s) 145 cstr = string.strip(cstr, "\0") 147 for c in cstr: 151 return cstr 157 cstr = '' 160 cstr += "%c" % byte 162 return cstr
|
| /llvm-project-15.0.7/lldb/source/Host/openbsd/ |
| H A D | Host.cpp | 70 const char *cstr; in GetOpenBSDProcessArgs() local 72 cstr = data.GetCStr(&offset); in GetOpenBSDProcessArgs() 73 if (cstr) { in GetOpenBSDProcessArgs() 74 process_info.GetExecutableFile().SetFile(cstr, FileSpec::Style::native); in GetOpenBSDProcessArgs() 93 cstr = data.GetCStr(&offset); in GetOpenBSDProcessArgs() 94 if (cstr) in GetOpenBSDProcessArgs() 95 proc_args.AppendArgument(llvm::StringRef(cstr)); in GetOpenBSDProcessArgs()
|
| /llvm-project-15.0.7/lldb/source/Host/netbsd/ |
| H A D | HostNetBSD.cpp | 68 const char *cstr; in GetNetBSDProcessArgs() local 70 cstr = data.GetCStr(&offset); in GetNetBSDProcessArgs() 71 if (!cstr) in GetNetBSDProcessArgs() 74 process_info.GetExecutableFile().SetFile(cstr, in GetNetBSDProcessArgs() 83 process_info.SetArg0(cstr); in GetNetBSDProcessArgs() 94 cstr = data.GetCStr(&offset); in GetNetBSDProcessArgs() 95 if (!cstr) in GetNetBSDProcessArgs() 98 proc_args.AppendArgument(llvm::StringRef(cstr)); in GetNetBSDProcessArgs()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonInstrFormatsV65.td | 24 list<dag> pattern = [], string cstr = "", 26 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_VA>; 29 list<dag> pattern = [], string cstr = "", 31 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_GATHER>;
|
| H A D | HexagonInstrFormats.td | 51 string cstr, InstrItinClass itin, IType type> 59 let Constraints = cstr; 200 string cstr = "", InstrItinClass itin = LD_tc_ld_SLOT01> 204 string cstr = "", InstrItinClass itin = LD_tc_ld_SLOT01> 209 string cstr = "", InstrItinClass itin = ST_tc_st_SLOT01> 214 string cstr = "", InstrItinClass itin = tc_ENDLOOP> 215 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeENDLOOP>, 220 string cstr = ""> 226 string cstr=""> 268 class InstDuplex<bits<4> iClass, string cstr = ""> [all …]
|
| H A D | HexagonInstrFormatsV60.td | 18 list<dag> pattern = [], string cstr = "", 20 : InstHexagon<outs, ins, asmstr, pattern, cstr, itin, TypeCVI_VA>,
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMInstrFormats.td | 436 let Constraints = cstr; 786 opc, asm, cstr, pattern> { 875 opc, asm, cstr, pattern> { 1207 asm, cstr, pattern>; 1594 opc, asm, cstr, pattern> { 1681 cstr, itin> { 2224 cstr, pattern> { 2248 dt, asm, cstr, pattern> { 2282 cstr, pattern> { 2655 dt, asm, cstr, pattern> { [all …]
|
| /llvm-project-15.0.7/lldb/include/lldb/Utility/ |
| H A D | ConstString.h | 57 explicit ConstString(const char *cstr); 79 explicit ConstString(const char *cstr, size_t max_cstr_len); 324 void SetCString(const char *cstr); 381 void SetCStringWithLength(const char *cstr, size_t cstr_len); 387 void SetTrimmedCStringWithLength(const char *cstr, size_t fixed_cstr_len);
|
| H A D | StringExtractor.h | 61 const char *cstr = Peek(); variable 62 if (cstr) 63 return cstr[0];
|
| /llvm-project-15.0.7/lldb/source/Host/macosx/cfcpp/ |
| H A D | CFCString.cpp | 26 CFCString::CFCString(const char *cstr, CFStringEncoding cstr_encoding) in CFCString() argument 28 if (cstr && cstr[0]) { in CFCString() 30 ::CFStringCreateWithCString(kCFAllocatorDefault, cstr, cstr_encoding)); in CFCString()
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/MacOSX/ |
| H A D | CFString.cpp | 30 CFString::CFString(const char *cstr, CFStringEncoding cstr_encoding) in CFString() argument 32 if (cstr && cstr[0]) { in CFString() 34 ::CFStringCreateWithCString(kCFAllocatorDefault, cstr, cstr_encoding)); in CFString()
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/readability/ |
| H A D | redundant-string-cstr.rst | 1 .. title:: clang-tidy - readability-redundant-string-cstr 3 readability-redundant-string-cstr
|
| /llvm-project-15.0.7/mlir/test/python/ir/ |
| H A D | integer_set.py | 124 for cstr in set0.constraints: 125 print(cstr.expr, end='') 126 print(" == 0" if cstr.is_eq else " >= 0")
|
| /llvm-project-15.0.7/llvm/test/TableGen/ |
| H A D | ConstraintChecking.inc | 18 class TestInstructionWithConstraints<string cstr> : Encoding { 23 let Constraints = cstr;
|
| /llvm-project-15.0.7/lldb/source/Core/ |
| H A D | FormatEntity.cpp | 1243 if (cstr && cstr[0]) { in Format() 1244 s.PutCString(cstr); in Format() 1256 if (cstr && cstr[0]) { in Format() 1257 s.PutCString(cstr); in Format() 1620 if (cstr) { in Format() 1641 s.PutCString(cstr); in Format() 1682 s.Write(cstr, open_paren - cstr + 1); in Format() 1684 s.PutCString(cstr); in Format() 1746 s.PutCString(cstr); in Format() 1752 if (cstr) { in Format() [all …]
|