reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/StringRef.h
  111       : Data(Str.data()), Length(Str.length()) {}
include/llvm/Analysis/CFGPrinter.h
   92     for (unsigned i = 0; i != OutStr.length(); ++i) {
include/llvm/Support/raw_ostream.h
  203     return write(Str.data(), Str.length());
lib/CodeGen/MachineFunction.cpp
  550       for (unsigned i = 0; i != OutStr.length(); ++i)
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 4041   if (Constraint.length() > 1) return;
lib/DebugInfo/PDB/PDBSymbolCompiland.cpp
   63         auto Len = EnvWorkingDir.length();
lib/IR/Core.cpp
  245   *Len = Str.length();
  255   *Len = Str.length();
  442   *Len = Str.length();
 2353   *NameLength = Str.length();
lib/Object/COFFImportFile.cpp
   82     B.resize(Pos + S.length() + 1);
   84     Pos += S.length() + 1;
  304       sizeof(uint32_t) + ImportDescriptorSymbolName.length() + 1;
  306       sizeof(uint32_t) + ImportDescriptorSymbolName.length() + 1 +
  307       NullImportDescriptorSymbolName.length() + 1;
lib/ObjectYAML/MachOEmitter.cpp
  148     OS.write(LC.PayloadString.c_str(), LC.PayloadString.length());
  149     BytesWritten = LC.PayloadString.length();
lib/ProfileData/InstrProf.cpp
  390   unsigned EncLen = encodeULEB128(UncompressedNameStrings.length(), P);
lib/Support/GraphWriter.cpp
   37   for (unsigned i = 0; i != Str.length(); ++i)
   50       if (i+1 != Str.length())
lib/Support/Timer.cpp
  312   unsigned Padding = (80-Description.length())/2;
lib/Support/YAMLParser.cpp
 2377     StringRef NullTerminatedStr(T.Value.c_str(), T.Value.length() + 1);
lib/Target/AArch64/AArch64ISelLowering.cpp
 6069   if (Constraint.length() != 1)
lib/Target/ARM/ARMISelLowering.cpp
15758   if (Constraint.length() != 1) return;
lib/Target/AVR/AVRISelLowering.cpp
 1911   if (Constraint.length() != 1) {
lib/Target/Lanai/LanaiISelLowering.cpp
  290   if (Constraint.length() > 1)
lib/Target/Mips/MipsISelLowering.cpp
 4028   if (Constraint.length() > 1) return;
lib/Target/Mips/MipsOs16.cpp
  110   bool usingMask = Mips32FunctionMask.length() > 0;
  128         if (functionIndex == Mips32FunctionMask.length())
lib/Target/NVPTX/NVPTXISelLowering.cpp
 2747   if (Constraint.length() > 1)
lib/Target/PowerPC/PPCISelLowering.cpp
14399   if (Constraint.length() > 1) return;
lib/Target/RISCV/RISCVISelLowering.cpp
 2687   if (Constraint.length() == 1) {
lib/Target/Sparc/SparcISelLowering.cpp
 3230   if (Constraint.length() > 1)
lib/Target/SystemZ/SystemZHazardRecognizer.cpp
  283              if (CurGroupDbg.length()) cgd << ", "; dumpSU(SU, cgd););
lib/Target/SystemZ/SystemZISelLowering.cpp
 1156   if (Constraint.length() == 1) {
lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
  763       Out.EmitBytes(StringRef(S.c_str(), S.length() + 1));
lib/Target/X86/X86ISelLowering.cpp
45620   if (Constraint.length() > 1) return;
tools/clang/lib/AST/ItaniumMangle.cpp
 3167   Out << TypeName.length() << TypeName;
tools/clang/lib/AST/StmtViz.cpp
   49     for (unsigned i = 0; i != OutStr.length(); ++i)
tools/clang/lib/Analysis/CFG.cpp
 5993     for (unsigned i = 0; i != OutStr.length(); ++i)
tools/clang/lib/Basic/Targets/Hexagon.cpp
   87       HVXVersion = F.substr(std::string("+hvxv").length());
tools/clang/lib/CodeGen/CGObjCGNU.cpp
  241       NameAndAttributes += TypeStr.length() + 3;
tools/clang/lib/Driver/ToolChain.cpp
  890     if(LibPath.length() > 0)
tools/clang/lib/Format/Format.cpp
 2060         GroupPrefix.length() > LongestMatchLength) {
 2062       LongestMatchLength = GroupPrefix.length();
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  566       for (unsigned i = 0; i < From.length(); i++) {
 2559   for (i=0; i < tmpName.length(); i++) {
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  472       for (unsigned i = 0; i < From.length(); i++) {
 2484   for (i=0; i < tmpName.length(); i++) {
tools/clang/lib/Sema/SemaExpr.cpp
 3224     unsigned Length = Str.length();
tools/clang/tools/extra/clang-tidy/bugprone/MacroParenthesesCheck.cpp
  150                                           PP->getSpelling(Last).length()),
  246                                           PP->getSpelling(Tok).length()),
tools/clang/tools/extra/clang-tidy/modernize/RawStringLiteralCheck.cpp
  137         Replacement.length() <=
tools/clang/tools/extra/clangd/DraftStore.cpp
   97     NewContents.reserve(*StartIndex + Change.text.length() +
   98                         (Contents.length() - *EndIndex));
tools/clang/tools/extra/modularize/CoverageChecker.cpp
  277   if (ModuleMapDirectory.length() == 0)
  301   if (ModuleMapDirectory.length() == 0)
tools/clang/tools/extra/modularize/Modularize.cpp
  845   if (ModuleMapPath.length() != 0) {
tools/clang/utils/TableGen/ClangAttrEmitter.cpp
 4016   OS << Doc.Heading << "\n" << std::string(Doc.Heading.length(), '-') << "\n";
tools/clang/utils/TableGen/NeonEmitter.cpp
 1165         Name[Name.length() - 2] == 'x' && Name[Name.length() - 3] == '_')
 1165         Name[Name.length() - 2] == 'x' && Name[Name.length() - 3] == '_')
 1166       S.insert(S.length() - 3, "_" + typeCode);
tools/lldb/source/Commands/CommandObjectType.cpp
 1597     type_name_str.resize(type_name_str.length() - 2);
tools/lldb/source/Core/Debugger.cpp
  282       if (str.length())
  352   if (str.length())
tools/lldb/source/Core/Disassembler.cpp
  739   if (m_opcode_name.length() >= opcode_column_width) {
  740     opcode_column_width = m_opcode_name.length() + 1;
tools/lldb/source/Core/SourceManager.cpp
  212         for (size_t i = 0; i + 1 < column && i < src_line.length(); ++i)
tools/lldb/source/Expression/IRInterpreter.cpp
   51     s.resize(s.length() - 1);
   68     s.resize(s.length() - 1);
tools/lldb/source/Host/common/Editline.cpp
  111   while (start < input.length()) {
  276       std::max(3, (int)line_number_stream.str().length() + 1);
  282   if (use_line_numbers && prompt.length() == 0) {
  286   if (m_set_continuation_prompt.length() > 0) {
  290     while (continuation_prompt.length() < prompt.length()) {
  290     while (continuation_prompt.length() < prompt.length()) {
  293     while (prompt.length() < continuation_prompt.length()) {
  293     while (prompt.length() < continuation_prompt.length()) {
  313 int Editline::GetPromptWidth() { return (int)PromptForIndex(0).length(); }
  374         ((m_input_lines[m_input_lines.size() - 1].length() + GetPromptWidth()) %
  401   int line_length = (int)(content.length() + prompt.length());
  401   int line_length = (int)(content.length() + prompt.length());
tools/lldb/source/Interpreter/CommandInterpreter.cpp
 1736     if (actual_cmd_name_len < command_string.length())
tools/lldb/source/Interpreter/Options.cpp
  282   if (static_cast<uint32_t>(actual_text.length() + strm.GetIndentLevel()) <
  293     int final_end = actual_text.length();
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTDumper.cpp
   79   size_t len = m_dump.length() + 1;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
 1081                                                decl_name_string.length() - 1);
 1294       size_t interface_len = interface_name.length();
tools/lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp
  103     s.resize(s.length() - 1);
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
   93       s.resize(s.length() - 1);
  104     s.resize(s.length() - 1);
tools/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/MainThreadCheckerRuntime.cpp
  111       selector = apiName.substr(spacePos + 1, apiName.length() - spacePos - 2);
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
  210         type.PutBack(name.length() +
tools/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
  340       DataBufferSP data_sp(new DataBufferHeap(value.c_str(), value.length()));
tools/lldb/source/Plugins/Platform/Android/AdbClient.cpp
  445   auto error = SendSyncRequest(kRECV, remote_file_path.length(),
  477   auto error = SendSyncRequest(kSEND, file_description_str.length(),
  520   auto error = SendSyncRequest(kSTAT, remote_file_path.length(),
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
  815       packet_str.reserve(m_bytes.length());
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
 3723     if (str.length() == 0) {
 3738       if (str.length() > 1)
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
  621     size_t thread_name_len = thread_name.length();
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
 4014                                              response_string.length());
 4422             size_t dwarf_opcode_len = opcode_string.length() / 2;
 4957   if (m_partial_profile_data.length() > 0) {
 4963   size_t found, pos = 0, len = input.length();
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
 2686     str.replace(pos, oldStr.length(), newStr);
 2687     pos += newStr.length();
 2761           basename.resize(basename.length() - 3);
 2763           basename.resize(basename.length() - 4);
tools/lldb/source/Utility/FileSpec.cpp
  378   return std::min(path_max_len - 1, result.length());
tools/lldb/source/lldb.cpp
   61     if (clang_rev.length() > 0) {
   66     if (llvm_rev.length() > 0) {
tools/lldb/unittests/Editline/EditlineTest.cpp
  148               line.length() * sizeof(std::string::value_type));
tools/lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp
  304   stream.PutEscapedBytes(json_packet.c_str(), json_packet.length());
tools/lli/lli.cpp
  282     size_t PrefixLength = Prefix.length();
  295     CacheName.replace(pos, CacheName.length() - pos, ".o");
  548       InputFile.erase(InputFile.length() - 3);
tools/obj2yaml/macho2yaml.cpp
  451     CurrPtr += Child.Name.length() + 1;
tools/polly/lib/Support/GICHelper.cpp
  166     str.replace(pos, find.length(), replace);
  167     pos += replace.length();
usr/include/c++/7.4.0/bits/basic_string.h
  440       { _M_construct(__str._M_data(), __str._M_data() + __str.length()); }
  548 	_M_length(__str.length());
  764 	    _M_length(__str.length());
 6603       { return std::_Hash_impl::hash(__s.data(), __s.length()); }
 6619                                      __s.length() * sizeof(wchar_t)); }
 6637                                      __s.length() * sizeof(char16_t)); }
 6652                                      __s.length() * sizeof(char32_t)); }
usr/include/c++/7.4.0/bits/basic_string.tcc
   69 	    if (length() && __s.length())
   87 	    else if (length())
   91 		__s._M_length(length());
  125       const size_type __tmp_length = length();
  284       if (__res < length())
  285 	__res = length();
  294 	      this->_S_copy(__tmp, _M_data(), length() + 1);
  301 	      this->_S_copy(_M_local_data(), _M_data(), length() + 1);
  314       const size_type __how_much = length() - __pos - __len1;
  316       size_type __new_capacity = length() + __len2 - __len1;
  337       const size_type __how_much = length() - __pos - __n;
  342       _M_set_length(length() - __n);
usr/include/c++/7.4.0/bits/regex_compiler.tcc
  605 	   __i < _M_value.length(); ++__i)
utils/TableGen/CodeGenInstruction.cpp
  332       eidx = CStr.length();
utils/TableGen/DFAPacketizerEmitter.cpp
  328       dbglen += 3 + UnitName.length();
utils/TableGen/RISCVCompressInstEmitter.cpp
  512              6, CondStream.str().length() -
utils/benchmark/src/commandlineflags.cc
   85   for (size_t i = 0; i != flag_str.length(); ++i)
  143   const size_t flag_len = flag_str.length();
utils/benchmark/src/console_reporter.cc
   68   std::string line = std::string(str.length(), '-');
  152                                           c.first.length());
utils/benchmark/src/string_util.cc
  167     str->replace(start, from.length(), to);
  168     start += to.length();
utils/unittest/googlemock/include/gmock/gmock-matchers.h
  693   return (type_name.length() <= 20 ||
 1259     return s2.length() >= prefix_.length() &&
 1259     return s2.length() >= prefix_.length() &&
 1260         s2.substr(0, prefix_.length()) == prefix_;
 1305     return s2.length() >= suffix_.length() &&
 1305     return s2.length() >= suffix_.length() &&
 1306         s2.substr(s2.length() - suffix_.length()) == suffix_;
 1306         s2.substr(s2.length() - suffix_.length()) == suffix_;
utils/unittest/googlemock/src/gmock.cc
   66   const size_t flag_len = flag_str.length();
utils/unittest/googletest/include/gtest/gtest-printers.h
  157         short_str.length() <= kProtobufOneLinerMaxLength ?
utils/unittest/googletest/src/gtest-filepath.cc
  128         0, pathname_.length() - dot_extension.length()));
  128         0, pathname_.length() - dot_extension.length()));
  260   return pathname_.length() == 1 && IsPathSeparator(pathname_.c_str()[0]);
  302          IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]);
  313   if (pathname_.length() == 0 || this->DirectoryExists()) {
  348       ? FilePath(pathname_.substr(0, pathname_.length() - 1))
  362   char* const dest = new char[pathname_.length() + 1];
  364   memset(dest_ptr, 0, pathname_.length() + 1);
utils/unittest/googletest/src/gtest-internal-inl.h
 1072       const int len = static_cast<int>(message.length());
utils/unittest/googletest/src/gtest-port.cc
 1139   for (size_t i = 0; i != full_flag.length(); i++) {
utils/unittest/googletest/src/gtest.cc
  965   internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this);
 1951   const size_t str_len = str.length();
 1952   const size_t suffix_len = suffix.length();
 1985   const char* const end = start + str.length();
 4187       internal::GTEST_FLAG(internal_run_death_test).length() > 0;
 5023   const size_t flag_len = flag_str.length();