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

Declarations

usr/include/c++/7.4.0/bits/basic_string.h
  101       static const size_type	npos = static_cast<size_type>(-1);

References

include/llvm/TableGen/StringToOffsetTable.h
   84     assert(AggregateString.find(')') == std::string::npos &&
lib/Bitcode/Reader/BitcodeReader.cpp
  294       if (S.find("__DATA,__objc_catlist") != std::string::npos ||
  295           S.find("__OBJC,__category") != std::string::npos)
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  209   while ((Cursor = Filepath.find("\\.\\", Cursor)) != std::string::npos)
  215   while ((Cursor = Filepath.find("\\..\\", Cursor)) != std::string::npos) {
  221     if (PrevSlash == std::string::npos)
  232   while ((Cursor = Filepath.find("\\\\", Cursor)) != std::string::npos)
lib/CodeGen/MIRCanonicalizerPass.cpp
  115     StringInstrMap.push_back({(i == std::string::npos) ? S : S.substr(i), II});
lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
  122         if (Attrs.find("shape=") == std::string::npos)
lib/DebugInfo/Symbolize/Symbolize.cpp
  435   if (ColonPos != std::string::npos) {
lib/IR/AsmWriter.cpp
 2584       M->getModuleIdentifier().find('\n') == std::string::npos)
lib/IR/AutoUpgrade.cpp
 1637       AsmStr->find("objc_retainAutoreleaseReturnValue") != std::string::npos &&
 1638       (Pos = AsmStr->find("# marker")) != std::string::npos) {
lib/ProfileData/InstrProf.cpp
  298   while (found != std::string::npos) {
  351       if (pos != std::string::npos) {
 1120     if (Pos != std::string::npos) {
lib/Support/ScaledNumber.cpp
  193   assert(NonZero != std::string::npos && "no . in floating point string");
lib/Support/Signals.cpp
  112   if (Argv0.find("llvm-symbolizer") != std::string::npos)
lib/Support/SpecialCaseList.cpp
   43   for (size_t pos = 0; (pos = Regexp.find('*', pos)) != std::string::npos;
lib/Support/Unix/Host.inc
   39   if (DarwinDashIdx != std::string::npos) {
   45   if (MacOSDashIdx != std::string::npos) {
lib/TableGen/Record.cpp
 1162         if (found == std::string::npos)
lib/Target/SystemZ/SystemZHazardRecognizer.cpp
  184     if (Pos != std::string::npos)
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 2546   if (F.getName().find(" load]") != std::string::npos) {
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  638   if (Pos != std::string::npos) {
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  571   if (F.getName().find(".module_ctor") != std::string::npos)
tools/clang/include/clang/Basic/JsonSupport.h
   38     if (Pos == std::string::npos)
   57     if (Pos == std::string::npos)
tools/clang/include/clang/Tooling/ReplacementsYaml.h
   40       while (lineBreakPos != std::string::npos) {
tools/clang/lib/Basic/Targets/Hexagon.cpp
   85     else if (F.find("+hvxv") != std::string::npos) {
tools/clang/lib/CodeGen/CodeGenModule.cpp
 1229   if (ReadOnlyPos != std::string::npos)
 1235     if (WriteOnlyPos != std::string::npos)
 1240       if (ReadWritePos != std::string::npos)
 1312         if (pointeeTy.isCanonical() && pos != std::string::npos)
 1324         if (pos != std::string::npos)
 1359         if (ty.isCanonical() && pos != std::string::npos)
 1386         if (pos != std::string::npos)
tools/clang/lib/CodeGen/TargetInfo.cpp
 1172     if (DollarStart == std::string::npos)
 1175     if (DollarEnd == std::string::npos)
 1184       if (DigitEnd == std::string::npos)
tools/clang/lib/CrossTU/CrossTranslationUnit.cpp
  143     if (Pos > 0 && Pos != std::string::npos) {
tools/clang/lib/Driver/Driver.cpp
 4489     std::string::size_type End = std::string::npos;
tools/clang/lib/Driver/ToolChain.cpp
  213   if (LastComponent == std::string::npos)
tools/clang/lib/Format/ContinuationIndenter.cpp
 1641       ContentStartsOnNewline || (NewCode->find('\n') != std::string::npos);
tools/clang/lib/Format/Format.cpp
 1874     if (Pos == std::string::npos) {
 1880   } while (Pos != std::string::npos);
tools/clang/lib/Frontend/ASTConsumers.cpp
   79       return getName(D).find(FilterString) != std::string::npos;
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  630   if (DotPos == std::string::npos) {
 4445   while ((loc = Name.find(':', loc)) != std::string::npos)
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  566   if (DotPos == std::string::npos) {
 3632   while ((loc = Name.find(':', loc)) != std::string::npos)
tools/clang/lib/Frontend/TextDiagnostic.cpp
  493     SourceLine.replace(SourceEnd, std::string::npos, back_ellipse);
tools/clang/lib/Sema/SemaOverload.cpp
12153               NS->getQualifiedNameAsString().find("__") != std::string::npos)
13344         << (qualsString.find(' ') == std::string::npos ? 1 : 2);
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
 1285       if (NormalizedName.find("loc") != std::string::npos) {
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
  538       if (LastColonPos != std::string::npos)
tools/clang/lib/Tooling/RefactoringCallbacks.cpp
  169         if (EndOfIdentifier == std::string::npos) {
tools/clang/tools/extra/clang-tidy/abseil/FasterStrsplitDelimiterCheck.cpp
   47   if (Pos == Result.npos)
   51   if (Pos == Result.npos)
tools/clang/tools/extra/clang-tidy/google/AvoidUnderscoreInGoogletestNameCheck.cpp
   56     if (TestCaseName.find('_') != std::string::npos)
tools/clang/tools/extra/clang-tidy/performance/FasterStringFindCheck.cpp
   32   if (pos == Result.npos)
   36   if (pos == Result.npos)
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp
  282   if (Offset == std::string::npos)
tools/clang/tools/extra/unittests/clang-query/QueryEngineTest.cpp
   70   EXPECT_TRUE(OS.str().find("Available commands:") != std::string::npos);
   77               std::string::npos);
   79               std::string::npos);
   81               std::string::npos);
   83               std::string::npos);
   84   EXPECT_TRUE(OS.str().find("4 matches.") != std::string::npos);
   91               std::string::npos);
   92   EXPECT_TRUE(OS.str().find("1 match.") != std::string::npos);
  101               std::string::npos);
  109   EXPECT_TRUE(OS.str().find("FunctionDecl") != std::string::npos);
  119     EXPECT_TRUE(Output.find("FunctionDecl") != std::string::npos);
  121                 std::string::npos);
  129   EXPECT_TRUE(OS.str().find("No bindings.") != std::string::npos);
  149               std::string::npos);
  150   EXPECT_TRUE(OS.str().find("1 match.") != std::string::npos);
tools/clang/unittests/AST/MatchVerifier.h
  272     if (Dump.str().find(ExpectSubstring) == std::string::npos) {
tools/clang/unittests/Tooling/TransformerTest.cpp
   70   if (I != std::string::npos)
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
 1466         std::string::npos)
tools/clang/utils/TableGen/NeonEmitter.cpp
  358     if (Proto.find('i') != std::string::npos)
  363     if (Proto.find('p') != std::string::npos ||
  364         Proto.find('c') != std::string::npos)
  369     if (OutTS.find('h') != std::string::npos &&
  370         Proto.find('s') != std::string::npos)
  394     return Proto.find('i') != std::string::npos;
  406   bool hasSplat() const { return Proto.find('a') != std::string::npos; }
 1205   while (S.find('$') != std::string::npos) {
 1372   return (Proto.find('s') != std::string::npos ||
 1373           Proto.find('z') != std::string::npos ||
 1374           Proto.find('r') != std::string::npos ||
 1375           Proto.find('b') != std::string::npos ||
 1376           Proto.find('$') != std::string::npos ||
 1377           Proto.find('y') != std::string::npos ||
 1378           Proto.find('o') != std::string::npos);
 1880   assert_with_loc(Idx != std::string::npos, "name should contain '" + ToReplace + "'!");
 2253 		  Def->getName().find('h') != std::string::npos)
 2263       if (Def->getName().find('r') != std::string::npos ||
 2264           Def->getName().find("cvt") != std::string::npos)
 2273       if (Def->getName().find('r') != std::string::npos)
tools/gold/gold-plugin.cpp
  251       if (thinlto_prefix_replace.find(';') == std::string::npos)
  256       if (thinlto_object_suffix_replace.find(';') == std::string::npos)
tools/lldb/source/Commands/CommandObjectCommands.cpp
  566       if ((pos != std::string::npos) && (pos > 0))
 1066     if (second_separator_char_pos == std::string::npos) {
 1079     if (third_separator_char_pos == std::string::npos) {
 1093           std::string::npos) {
tools/lldb/source/Commands/CommandObjectMemory.cpp
  412         while ((idx = type_str.find(keyword, idx)) != std::string::npos) {
  425       if (idx > 0 && idx != std::string::npos)
tools/lldb/source/Core/FormatEntity.cpp
 2156             if (entry.printf_format.find('%') == std::string::npos) {
tools/lldb/source/Core/IOHandler.cpp
  316   if (pos == std::string::npos)
 1485       if (pos != std::string::npos) {
tools/lldb/source/DataFormatters/ValueObjectPrinter.cpp
  262         for (auto iter = type_name_str.find(" *"); iter != std::string::npos;
tools/lldb/source/Expression/IRInterpreter.cpp
   54   while ((offset = s.find('\n')) != s.npos)
tools/lldb/source/Host/common/Editline.cpp
  113     if (end == std::string::npos) {
tools/lldb/source/Interpreter/CommandInterpreter.cpp
 1237     if (start != std::string::npos) {
 1240       if (end == std::string::npos)
 1284     if (pos == std::string::npos)
 1297     if (pos == std::string::npos)
 1310   return std::string::npos;
 1327       if (end_quote_pos == std::string::npos) {
 1341       if (first_space_pos == std::string::npos) {
 1357       if (pos > 0 && pos != std::string::npos) {
 1425       if (strpos != std::string::npos)
 1446   while ((start_backtick = command.find('`', pos)) != std::string::npos) {
 1463     if (end_backtick == std::string::npos) {
 1632     if (non_space == std::string::npos)
 1741     if (pos != 0 && pos != std::string::npos)
 1891       if (pos == std::string::npos) {
 1945         if (strpos != std::string::npos) {
 3072               if (arg_terminator_idx != std::string::npos) {
 3083                   FindArgumentTerminator(cmd) == std::string::npos)
tools/lldb/source/Interpreter/CommandObject.cpp
  820     if (result == std::string::npos) {
tools/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
   44                              percent_var, idx)) != std::string::npos;) {
tools/lldb/source/Interpreter/Options.cpp
 1079       if (pos != std::string::npos)
 1091         if (pos != std::string::npos)
tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
 1046        comments_string.npos;
 1419           if (first_eol_char != std::string::npos) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
  367   if (m_compiler->getTargetOpts().Triple.find("arm64") == std::string::npos &&
  368       m_compiler->getTargetOpts().Triple.find("arm") != std::string::npos &&
  369       m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp
  504   if (start_loc == std::string::npos)
  508   return end_loc != std::string::npos;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
  321   while ((offset = expr.find(from)) != expr.npos)
tools/lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp
  488       if (name_str.find("objc_msgSend") == std::string::npos)
tools/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/MainThreadCheckerRuntime.cpp
  109     if (spacePos != std::string::npos) {
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
  103   const bool is_templated = name.find('<') != std::string::npos;
  229     if (less_than_pos != std::string::npos) {
tools/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
   97     if (last_pos != std::string::npos) {
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
 3903                 if (double_slash_pos != std::string::npos) {
tools/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
  100         if (py_extension_pos != std::string::npos)
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
 1115         if (first_non_newline != std::string::npos) {
 1280     if (pos != std::string::npos) {
tools/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp
  171           if (pos != std::string::npos) {
  193               if (first_non_newline != std::string::npos)
  198               if (pos != std::string::npos)
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
  431   if (hash_mark_idx == std::string::npos)
  666     size_t checksum_idx = std::string::npos;
  692         if (hash_pos != std::string::npos) {
  705             content_length = std::string::npos;
  739     if (content_length == std::string::npos) {
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
  694     response_string.append(this_string, 1, std::string::npos);
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
 1534   while ((comma_pos = value.find(',')) != std::string::npos) {
 1553   while ((comma_pos = value.find(',')) != std::string::npos) {
 1608         if (thread_pcs_pos != std::string::npos) {
 1611           if (end != std::string::npos) {
 1618         if (threads_pos != std::string::npos) {
 1621           if (end != std::string::npos) {
 2641       response.GetStringRef().find(";reason:exec;") != std::string::npos;
 4964   while ((found = input.find(end_delimiter, pos)) != std::string::npos) {
tools/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
  301       corefile_identifier.find("Darwin Kernel") != std::string::npos) {
  304     if (corefile_identifier.find("UUID=") != std::string::npos) {
  309     if (corefile_identifier.find("stext=") != std::string::npos) {
  329       && corefile_identifier.find("EFI ") != std::string::npos) {
  331       if (corefile_identifier.find("UUID=") != std::string::npos) {
tools/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp
  216       if (ExpectedCSD->find("Linux") != std::string::npos)
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
 2684   while ((pos = str.find(oldStr, pos)) != std::string::npos) {
tools/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
  668     if (action_end_pos == std::string::npos) {
  687     if (attribute_end_pos == std::string::npos) {
tools/lldb/source/Symbol/LocateSymbolFile.cpp
  108     if (last_dot != std::string::npos) {
tools/lldb/source/Target/StackFrame.cpp
  610   while (separator_idx != std::string::npos) {
tools/lldb/source/Utility/Args.cpp
  406     if (pos != std::string::npos) {
tools/lldb/source/Utility/StreamString.cpp
   43   if (last_line_begin_pos == std::string::npos) {
   56   if (last_line_begin_pos == std::string::npos) {
tools/lldb/source/Utility/UriParser.cpp
   26   if (pos == std::string::npos)
   33   if (path_pos != std::string::npos)
   40       ((path_pos != std::string::npos) ? path_pos : uri.size()) - host_pos);
   46     if (pos == std::string::npos)
tools/lldb/tools/driver/Driver.cpp
  461   while ((pos = arg.find_first_of("\"\\", pos)) != std::string::npos) {
tools/lldb/tools/lldb-server/lldb-gdbserver.cpp
  270     if (colon_pos != std::string::npos) {
tools/lldb/tools/lldb-vscode/ExceptionBreakpoint.cpp
   17   bool catch_value = filter.find("_catch") != std::string::npos;
   18   bool throw_value = filter.find("_throw") != std::string::npos;
tools/lldb/unittests/Utility/LogTest.cpp
  154   EXPECT_NE(std::string::npos, error.find("unrecognized log category 'baz'"))
  187   EXPECT_NE(std::string::npos, error.find("unrecognized log category 'baz'"))
tools/llvm-config/llvm-config.cpp
  246     if (NextOffset == std::string::npos) {
tools/llvm-cov/CodeCoverage.cpp
  874   ViewOpts.CreatedTimeStr = (found != std::string::npos)
tools/llvm-link/llvm-link.cpp
  229     if (Idx == std::string::npos) {
  234     std::string FileName = Import.substr(Idx + 1, std::string::npos);
tools/polly/lib/Support/GICHelper.cpp
  165   while ((pos = str.find(find, pos)) != std::string::npos) {
tools/polly/lib/Support/ISLTools.cpp
  740     assert(OpenPos != std::string::npos);
  742     assert(ClosePos != std::string::npos);
tools/sancov/sancov.cpp
  419             failIf(ColonPos == std::string::npos, "expected ':': " + InputFile);
  457   if (Pos == std::string::npos)
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
 1802       EXPECT_NE(FormPos, std::string::npos);
 1804       EXPECT_NE(ValPos, std::string::npos);
unittests/IR/AsmWriterTest.cpp
   35   EXPECT_TRUE(r != std::string::npos);
unittests/Option/OptionParsingTest.cpp
   97   EXPECT_NE(std::string::npos, Help.find("-A"));
  101   EXPECT_NE(std::string::npos, Help.find("USAGE: name [options] file...\n"));
unittests/Support/TargetParserTest.cpp
  555         ARM::getFPUName(FK).find("neon") == std::string::npos)
  568         (ARM::getFPUName(FK).find("d16") == std::string::npos &&
  569          ARM::getFPUName(FK).find("vfpv3xd") == std::string::npos))
unittests/Support/YAMLIOTest.cpp
  775   EXPECT_NE(std::string::npos, flowOut.find("'''eee"));
  776   EXPECT_NE(std::string::npos, flowOut.find("'\"fff'"));
  777   EXPECT_NE(std::string::npos, flowOut.find("'`ggg'"));
  778   EXPECT_NE(std::string::npos, flowOut.find("'@hhh'"));
  779   EXPECT_NE(std::string::npos, flowOut.find("''\n"));
  780   EXPECT_NE(std::string::npos, flowOut.find("'0000000004000000'\n"));
  781   EXPECT_NE(std::string::npos, flowOut.find("\"\\0a\\0b\\0\""));
usr/include/c++/7.4.0/bits/basic_string.h
  456 	_M_construct(__start, __start + __str._M_limit(__pos, npos));
  511       { _M_construct(__s, __s ? __s + traits_type::length(__s) : __s+npos); }
 1228       append(const basic_string& __str, size_type __pos, size_type __n = npos)
 1393       assign(const basic_string& __str, size_type __pos, size_type __n = npos)
 1645 	     size_type __pos2, size_type __n = npos)
 1788       erase(size_type __pos = 0, size_type __n = npos)
 1791 	if (__n == npos)
 1893 	      size_type __pos2, size_type __n2 = npos)
 2403       rfind(const basic_string& __str, size_type __pos = npos) const
 2451       rfind(const _CharT* __s, size_type __pos = npos) const
 2468       rfind(_CharT __c, size_type __pos = npos) const _GLIBCXX_NOEXCEPT;
 2566       find_last_of(const basic_string& __str, size_type __pos = npos) const
 2615       find_last_of(const _CharT* __s, size_type __pos = npos) const
 2635       find_last_of(_CharT __c, size_type __pos = npos) const _GLIBCXX_NOEXCEPT
 2731       find_last_not_of(const basic_string& __str, size_type __pos = npos) const
 2780       find_last_not_of(const _CharT* __s, size_type __pos = npos) const
 2798       find_last_not_of(_CharT __c, size_type __pos = npos) const
 2814       substr(size_type __pos = 0, size_type __n = npos) const
 2953 	      size_type __pos2, size_type __n2 = npos) const;
usr/include/c++/7.4.0/bits/basic_string.tcc
 1195 	return __pos <= __size ? __pos : npos;
 1197 	return npos;
 1210 	    return npos;
 1218       return npos;
 1226       size_type __ret = npos;
 1258       return npos;
 1275       return npos;
 1291       return npos;
 1313       return npos;
 1326       return npos;
 1337       return npos;
 1359       return npos;
 1379       return npos;
usr/include/c++/7.4.0/bits/locale_facets_nonio.tcc
  313 		const bool __only_zeros = __first == string::npos;
utils/FileCheck/FileCheck.cpp
  538     if (EqIdx == std::string::npos) {
utils/TableGen/AsmMatcherEmitter.cpp
  822   if (start == std::string::npos)
  824   Ops.first = Ops.first.slice(start + 1, std::string::npos);
  829   if (start == std::string::npos)
  831   Ops.second = Ops.second.slice(start + 1, std::string::npos);
  975     if (Variant.BreakCharacters.find(Char) != std::string::npos) {
  984     if (Variant.TokenizingCharacters.find(Char) != std::string::npos) {
  995     if (Variant.SeparatorCharacters.find(Char) != std::string::npos) {
 1058   if (AsmString.find('\n') != std::string::npos)
utils/TableGen/AsmWriterInst.cpp
   64     if (DollarPos == std::string::npos) DollarPos = AsmString.size();
   93                    != std::string::npos) {
utils/TableGen/CodeGenInstruction.cpp
  184   if (DotIdx != std::string::npos) {
  237     if (wpos == std::string::npos)
  256   if (pos == std::string::npos)
  264   if (wpos == std::string::npos || wpos > pos)
  272   if (wpos == std::string::npos)
  329   while (bidx != std::string::npos) {
  331     if (eidx == std::string::npos)
utils/TableGen/CodeGenSchedule.cpp
  101       if (removeParens(Original).find_first_of("|?") != std::string::npos)
utils/TableGen/FastISelEmitter.cpp
  422   if (pos != std::string::npos)
utils/TableGen/SearchableTableEmitter.cpp
  756       if (FieldName.find(':') != std::string::npos ||
utils/TableGen/SubtargetEmitter.cpp
 1215             std::string::npos) {
utils/TableGen/X86RecognizableInstr.cpp
  112     if (Predicates[i]->getName().find("Not64Bit") != Name.npos ||
  113         Predicates[i]->getName().find("In32Bit") != Name.npos) {
  117     if (Predicates[i]->getName().find("In64Bit") != Name.npos) {
utils/benchmark/src/string_util.cc
  166   while ((start = str->find(from, start)) != std::string::npos) {
utils/benchmark/src/sysinfo.cc
  233   while ((Pos = Val.find(',')) != std::string::npos) {
  405     if (SplitIdx != std::string::npos) value = ln.substr(SplitIdx + 1);
  476     if (SplitIdx != std::string::npos) value = ln.substr(SplitIdx + 1);
utils/unittest/googlemock/include/gmock/gmock-matchers.h
  694           type_name.find_first_of("<(") == string::npos);
 1212     return s2.find(substring_) != StringType::npos;
utils/unittest/googletest/src/gtest-death-test.cc
  509     if (line_end == ::std::string::npos) {
utils/unittest/googletest/src/gtest.cc
  928     if (colon == ::std::string::npos) {
 1575   return haystack.find(needle) != StringType::npos;
 4419     if (pos != std::string::npos) {