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

References

include/llvm/ADT/SmallString.h
  135     return str().endswith(Suffix);
include/llvm/ADT/StringRef.h
  680       if (!endswith(Suffix))
include/llvm/ADT/StringSwitch.h
   75     if (!Result && Str.endswith(S)) {
include/llvm/Passes/PassBuilder.h
  744   if (!PipelineName.endswith(">"))
include/llvm/Support/TypeName.h
   36   assert(Name.endswith("]") && "Name doesn't end in the substitution key!");
lib/DebugInfo/DWARF/DWARFDie.cpp
  142   if (!TagStr.startswith("DW_TAG_") || !TagStr.endswith("_type"))
lib/DebugInfo/PDB/Native/TpiHashing.cpp
   22          Name.endswith("::<unnamed-tag>") || Name.endswith("::__unnamed");
   22          Name.endswith("::<unnamed-tag>") || Name.endswith("::__unnamed");
lib/DebugInfo/Symbolize/Symbolize.cpp
  501   if (SymbolName.endswith("@"))
lib/IR/AutoUpgrade.cpp
 2168       if (Name.endswith("ub") || Name.endswith("uw") || Name.endswith("ud") ||
 2168       if (Name.endswith("ub") || Name.endswith("uw") || Name.endswith("ud") ||
 2168       if (Name.endswith("ub") || Name.endswith("uw") || Name.endswith("ud") ||
 2169           Name.endswith("uq"))
 2171       else if (Name.endswith("b") || Name.endswith("w") || Name.endswith("d") ||
 2171       else if (Name.endswith("b") || Name.endswith("w") || Name.endswith("d") ||
 2171       else if (Name.endswith("b") || Name.endswith("w") || Name.endswith("d") ||
 2172                Name.endswith("q"))
 2730       if (Name.endswith(".512")) {
 2746       if (Name.endswith(".512")) {
 2762       if (Name.endswith(".512")) {
 2778       if (Name.endswith(".512")) {
 2843       } else if (Name.endswith(".128")) {
 2855       } else if (Name.endswith(".256")) {
 2911       } else if (Name.endswith(".128")) {
 2923       } else if (Name.endswith(".256")) {
 2975       } else if (Name.endswith(".128")) {
 2988       } else if (Name.endswith(".256")) {
 3022     } else if (IsX86 && Name.endswith(".movntdqa")) {
 3440       Value *Cmp = Name.endswith(".ui") || Name.endswith(".ull")
 3440       Value *Cmp = Name.endswith(".ui") || Name.endswith(".ull")
 3448       Value *Cmp = Name.endswith(".ui") || Name.endswith(".ull")
 3448       Value *Cmp = Name.endswith(".ui") || Name.endswith(".ull")
lib/IR/PassTimingInfo.cpp
  235   return Prefix.endswith("PassManager") || Prefix.endswith("PassAdaptor") ||
  235   return Prefix.endswith("PassManager") || Prefix.endswith("PassAdaptor") ||
  236          Prefix.endswith("AnalysisManagerProxy");
lib/MC/ELFObjectWriter.cpp
   76   return Sec.getSectionName().endswith(".dwo");
lib/MC/StringTableBuilder.cpp
  146       if (Previous.endswith(S)) {
lib/Option/ArgList.cpp
  179       Cur.startswith(LHS) && Cur.endswith(RHS))
lib/Passes/PassBuilder.cpp
 1409   return Name.startswith("<") && Name.endswith(">");
lib/Support/AArch64TargetParser.cpp
  195     if (A.getName().endswith(Syn))
lib/Support/ARMTargetParser.cpp
   31     if (A.getName().endswith(Syn))
  232     if (Arch.endswith("eb"))
  302   else if (A.endswith("eb"))
lib/Support/DebugCounter.cpp
   87   if (CounterPair.first.endswith("-skip")) {
  100   } else if (CounterPair.first.endswith("-count")) {
lib/Support/GlobPattern.cpp
  120   if (S.endswith("*") && !S.endswith("\\*") && !hasWildcard(S.drop_back())) {
  120   if (S.endswith("*") && !S.endswith("\\*") && !hasWildcard(S.drop_back())) {
  149     return S.endswith(*Suffix);
lib/Support/Host.cpp
  168     if (Hardware.endswith("MSM8994") || Hardware.endswith("MSM8996"))
  168     if (Hardware.endswith("MSM8994") || Hardware.endswith("MSM8996"))
lib/Support/Path.cpp
  262         (real_style(S) == Style::windows && Component.endswith(":"))) {
  351     bool has_drive = (real_style(style) == Style::windows) && b->endswith(":");
  377     bool has_drive = (real_style(style) == Style::windows) && b->endswith(":");
  394     bool has_drive = (real_style(style) == Style::windows) && b->endswith(":");
lib/Support/SpecialCaseList.cpp
  142       if (!I->endswith("]")) {
lib/Support/Triple.cpp
  563       (SubArchName.endswith("r6el") || SubArchName.endswith("r6")))
  563       (SubArchName.endswith("r6el") || SubArchName.endswith("r6")))
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
 4465   if (Name.endswith("_e64")) {
 4468   } else if (Name.endswith("_e32")) {
 4471   } else if (Name.endswith("_dpp")) {
 4474   } else if (Name.endswith("_sdwa")) {
 4619         } else if (Tok.startswith("no") && Tok.endswith(Name)) {
 4892   bool Sat = CntName.endswith("_sat");
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
 6272   if (Mnemonic.endswith("s") &&
 6371       (FullInst.startswith("vmull") && FullInst.endswith(".p64")) ||
lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp
 1042   if (Name.endswith(".r")) {
 1072       (!Mnemonic.endswith(".f") && !Mnemonic.startswith("st"))) {
lib/Target/RISCV/Utils/RISCVBaseInfo.cpp
   40   } else if (ABIName.endswith("f") && !FeatureBits[RISCV::FeatureStdExtF]) {
   45   } else if (ABIName.endswith("d") && !FeatureBits[RISCV::FeatureStdExtD]) {
lib/Target/X86/AsmParser/X86AsmParser.cpp
 2413   if (PatchedName.startswith("set") && PatchedName.endswith("b") &&
 2421       (PatchedName.endswith("ss") || PatchedName.endswith("sd") ||
 2421       (PatchedName.endswith("ss") || PatchedName.endswith("sd") ||
 2422        PatchedName.endswith("ps") || PatchedName.endswith("pd"))) {
 2422        PatchedName.endswith("ps") || PatchedName.endswith("pd"))) {
 2476       if (PatchedName.endswith("ss"))
 2478       else if (PatchedName.endswith("sd"))
 2480       else if (PatchedName.endswith("ps"))
 2482       else if (PatchedName.endswith("pd"))
lib/TextAPI/MachO/Target.cpp
   39     if (PlatformStr.startswith("<") && PlatformStr.endswith(">")) {
lib/Transforms/Instrumentation/InstrProfiling.cpp
  684   if (Name.endswith((Twine(".") + Twine(FuncHash)).toStringRef(HashPostfix)))
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  316       if (SectionName.endswith(
tools/clang/include/clang/Basic/IdentifierTable.h
  384     return getName().startswith("<#") && getName().endswith("#>");
tools/clang/lib/ARCMigrate/ObjCMT.cpp
  577     return Name.endswith("Deprecated");
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
  149           if (fname.endswith("Retain") ||
tools/clang/lib/ARCMigrate/Transforms.cpp
   97         if (fname.endswith("Retain") ||
tools/clang/lib/AST/ASTContext.cpp
 6871       if (StringRef(S).endswith("nr"))
tools/clang/lib/AST/DeclPrinter.cpp
 1553   if (!StringRef(TypeStr).endswith("*"))
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  358   if (!Name.endswith(Suffix))
  362     if (!Name.endswith("::"))
  529       } else if (FullName.endswith(Pattern) &&
  530                  FullName.drop_back(Pattern.size()).endswith("::")) {
tools/clang/lib/Analysis/CocoaConventions.cpp
   29     if (TDName.startswith(Prefix) && TDName.endswith("Ref"))
tools/clang/lib/Analysis/RetainSummaryManager.cpp
  248       if (FName.endswith("Matching")) {
tools/clang/lib/Basic/Attributes.cpp
   13   if (Name.size() >= 4 && Name.startswith("__") && Name.endswith("__"))
   65       AttrName.endswith("__"))
tools/clang/lib/CodeGen/TargetInfo.cpp
 9812     if (ABIStr.endswith("f"))
 9814     else if (ABIStr.endswith("d"))
tools/clang/lib/Driver/Driver.cpp
  867   if (!StringRef(CfgFileName).endswith(".cfg"))
 1375     if (StringRef(TempFile).endswith(".cache")) {
 1582   const bool HasSpace = PassedFlags.endswith(",");
 1622   if (SuggestedCompletions.empty() && !Cur.endswith("=")) {
tools/clang/lib/Driver/ToolChain.cpp
  158     if (ProgName.endswith(Suffix)) {
tools/clang/lib/Driver/ToolChains/Cuda.cpp
  187         if (!(FileName.startswith(LibDeviceName) && FileName.endswith(".bc")))
tools/clang/lib/Driver/ToolChains/Darwin.cpp
  821   else if (Arch.startswith("armv6") && !Arch.endswith("6m"))
  824   else if (Arch.endswith("v7a"))
 1069     if (SDK.endswith(".sdk"))
tools/clang/lib/Driver/ToolChains/MSVC.cpp
  476       if (Lib.endswith(".lib"))
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
  699       if (text.endswith(suff)) {
tools/clang/lib/Format/BreakableToken.cpp
  241   assert(Tok.TokenText.startswith(Prefix) && Tok.TokenText.endswith(Postfix));
  327          !Content.endswith("\\") &&
  344   assert(TokenText.startswith("/*") && TokenText.endswith("*/"));
  467                          Encoding, Style, Decoration.endswith("*"));
  478   if (InPPDirective && Lines[LineIndex - 1].endswith("\\"))
tools/clang/lib/Format/ContinuationIndenter.cpp
  151       || !TokenText.startswith("R\"") || !TokenText.endswith("\""))
  493        (Previous.Tok.isLiteral() && (Previous.TokenText.endswith("\\n\"") ||
 1795     if ((Text.endswith(Postfix = "\"") &&
 1800         (Text.startswith(Prefix = "_T(\"") && Text.endswith(Postfix = "\")"))) {
tools/clang/lib/Format/Format.cpp
 2020     if (!FormattingOff && !Line.endswith("\\")) {
 2527   if (FileName.endswith(".java"))
 2532   if (FileName.endswith(".m") || FileName.endswith(".mm"))
 2532   if (FileName.endswith(".m") || FileName.endswith(".mm"))
tools/clang/lib/Format/FormatToken.h
  386     if (is(TT_TemplateString) && TokenText.endswith("${"))
  465     if (Content.endswith("\"") || Content.endswith("'"))
  465     if (Content.endswith("\"") || Content.endswith("'"))
tools/clang/lib/Format/TokenAnnotator.cpp
 1429         if (Current.TokenText.endswith("*/"))
 2334     if ((Left.is(TT_TemplateString) && Left.TokenText.endswith("${")) ||
 2648            !Left.TokenText.endswith("=*/");
 2771     if ((Left.is(TT_TemplateString) && Left.TokenText.endswith("${")) ||
tools/clang/lib/Format/UnwrappedLineParser.cpp
  947       Previous->is(TT_TemplateString) && Previous->TokenText.endswith("${");
tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
  318     if (EnsureNewline && !TextToWrite.endswith(LocalEOL))
  331     if (TextToWrite.endswith(LocalEOL) || EnsureNewline)
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
  446     if (DToken.endswith("-re")) {
  455     if (DToken.endswith(DType="-error"))
  457     else if (DToken.endswith(DType="-warning"))
  459     else if (DToken.endswith(DType="-remark"))
  461     else if (DToken.endswith(DType="-note"))
  463     else if (DToken.endswith(DType="-no-diagnostics")) {
tools/clang/lib/Lex/HeaderSearch.cpp
  674     if (I->endswith(".framework")) {
 1503       if (DirName.endswith(".framework"))
tools/clang/lib/Lex/ModuleMap.cpp
  232   if (M && !NormalHdrFile && Directory->getName().endswith(".framework")) {
  955           bool IsFrameworkDir = Parent.endswith(".framework");
 1045     if (!StringRef(Dir->path()).endswith(".framework"))
 1981   if (MapFileName.endswith("module.private.modulemap") ||
 1982       MapFileName.endswith("module_private.map")) {
tools/clang/lib/Lex/PPDirectives.cpp
  136       !CurrentModule.endswith("_Private") && TopLevelName.endswith("_Private"))
  136       !CurrentModule.endswith("_Private") && TopLevelName.endswith("_Private"))
 2432         if (TrimmedValue.endswith("__"))
tools/clang/lib/Lex/PPMacroExpansion.cpp
 1099   if (Feature.startswith("__") && Feature.endswith("__") && Feature.size() >= 4)
 1125   if (Extension.startswith("__") && Extension.endswith("__") &&
tools/clang/lib/Parse/ParseDecl.cpp
   73   if (Name.size() >= 4 && Name.startswith("__") && Name.endswith("__"))
tools/clang/lib/Parse/Parser.cpp
 2358                   .endswith(".framework"))
tools/clang/lib/Sema/SemaDeclAttr.cpp
 1630       AttrName.endswith("__")) {
tools/clang/lib/Sema/SemaDeclObjC.cpp
  298       if (RealizedPlatform.endswith("_app_extension"))
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
 2963     if (FirstSlot.endswith("NoCopy"))
 3014   if (FName.endswith("NoCopy")) {
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
 2751     if (SM.getFilename(Loc).endswith("sys/queue.h")) {
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp
  639   if (FName.endswith("NoCopy"))
tools/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp
   85   if (FName.startswith("__") && FName.endswith("_chk") &&
tools/clang/lib/Tooling/Core/Lookup.cpp
  130   assert(QName.endswith(Spelling));
tools/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
  183   IsMainFile = FileName.endswith(".c") || FileName.endswith(".cc") ||
  183   IsMainFile = FileName.endswith(".c") || FileName.endswith(".cc") ||
  184                FileName.endswith(".cpp") || FileName.endswith(".c++") ||
  184                FileName.endswith(".cpp") || FileName.endswith(".c++") ||
  185                FileName.endswith(".cxx") || FileName.endswith(".m") ||
  185                FileName.endswith(".cxx") || FileName.endswith(".m") ||
  186                FileName.endswith(".mm");
tools/clang/tools/arcmt-test/arcmt-test.cpp
  232     if (!fname.endswith(".result")) {
tools/clang/tools/driver/driver.cpp
  118   } else if (Edit[0] == 's' && Edit[1] == '/' && Edit.endswith("/") &&
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  842         assert(StringRef(AliasQualifiedName).endswith("::" + AliasName));
tools/clang/tools/extra/clang-include-fixer/IncludeFixerContext.cpp
   45          !llvm::StringRef(QualifiedName).endswith(SymbolQualifiers.back())) {
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/PathConfig.cpp
   26     if (!FilePath.endswith(".inc"))
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
   51     if (Message.endswith(CheckNameInMessage))
  452     if (FileName.endswith(Filter.Name)) {
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
  822   else if (Name.endswith("ncmp"))
  824   else if (Name.endswith("xfrm"))
  833   if (Name.endswith("chr")) {
  847   if (Name.endswith("cpy")) {
  849   } else if (Name.endswith("cpy_s")) {
  851   } else if (Name.endswith("move")) {
  853   } else if (Name.endswith("move_s")) {
tools/clang/tools/extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp
  115   if (getCurrentMainFile().endswith(".c"))
  122   if (SM.getFilename(SM.getSpellingLoc(CastExpr->getBeginLoc())).endswith(".c"))
tools/clang/tools/extra/clang-tidy/google/NonConstReferences.cpp
  134   if (StringRef(ReferencedType.getAsString()).endswith("stream"))
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp
   68       ReplacementFound = FileName.endswith("gtest/gtest-typed-test.h") &&
  104     if (!FileName.endswith("gtest/gtest-typed-test.h"))
tools/clang/tools/extra/clang-tidy/google/UsingNamespaceDirectiveCheck.cpp
   49   if (!NS->getName().endswith("literals"))
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
  853   if (Len > 1 && ContainerName.endswith(Style == NS_UpperCase ? "S" : "s")) {
  860   if (Len > 2 && ContainerName.endswith(Style == NS_UpperCase ? "S_" : "s_")) {
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  271   if (Name.endswith(Style.Suffix))
  278   if (Name.startswith("_") || Name.endswith("_"))
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
  239                        .concat(Snippets[0].endswith(" ") ? "" : " ")
tools/clang/tools/extra/clang-tidy/utils/HeaderGuard.cpp
  155           (EndIfStr.startswith("/*") && EndIfStr.endswith("*/"))))
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.cpp
   20     if (Str.endswith(Suffix)) {
   59     return IncludeFile.endswith(".h") ? IncludeSorter::IK_CSystemInclude
   63   if (CanonicalFile.endswith(CanonicalInclude)
   64       || CanonicalInclude.endswith(CanonicalFile)) {
tools/clang/tools/extra/clangd/CodeComplete.cpp
  447       bool EmptyArgs = llvm::StringRef(*Snippet).endswith("()");
  462       if (llvm::StringRef(*Snippet).endswith("<>"))
 1721   while (Rest.consume_back("::") && !Rest.endswith(":")) // reject ::::
tools/clang/tools/extra/clangd/CodeCompletionStrings.cpp
   24          llvm::StringRef(Chunk.Text).endswith("::");
  130       if (!llvm::StringRef(Chunk.Text).endswith(":")) { // Treat as C++.
tools/clang/tools/extra/clangd/FSProvider.cpp
   39     if (FileName.startswith("preamble-") && FileName.endswith(".pch"))
tools/clang/tools/extra/clangd/Format.cpp
  170   if (CommentMarker.empty() && Leading.endswith("{") &&
tools/clang/tools/extra/clangd/FormattedString.cpp
   57   if (llvm::StringRef(R).startswith("`") || llvm::StringRef(R).endswith("`"))
   62   if (llvm::StringRef(R).startswith(" ") && llvm::StringRef(R).endswith(" "))
  132       if (!R.empty() && !llvm::StringRef(R).endswith("\n"))
tools/clang/tools/extra/clangd/IncludeFixer.cpp
  259         if (llvm::StringRef(SpecifiedNS).endswith(Spelling))
tools/clang/tools/extra/clangd/Protocol.cpp
  590     if (!ContNameRef.endswith("::")) {
tools/clang/tools/extra/clangd/index/Merge.cpp
  159                          return llvm::StringRef(Loc.FileURI).endswith(Suffix);
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp
   86   if (!FileName.endswith(".proto.h") && !FileName.endswith(".pb.h"))
   86   if (!FileName.endswith(".proto.h") && !FileName.endswith(".pb.h"))
  667     if (Filename.endswith(".inc") || Filename.endswith(".def"))
  667     if (Filename.endswith(".inc") || Filename.endswith(".def"))
tools/clang/tools/extra/clangd/unittests/TweakTesting.cpp
   47   if (Outer.startswith(Wrapping.first) && Outer.endswith(Wrapping.second) &&
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp
   78     if (InputPath.endswith(".modulemap")) {
  280     if (DirName.endswith(".framework")) {
  446   if (Path.endswith("/") || Path.endswith("\\"))
  446   if (Path.endswith("/") || Path.endswith("\\"))
tools/clang/tools/extra/unittests/clang-tidy/GoogleModuleTest.cpp
   69     if (!StringRef(Filename).endswith(".cpp")) {
tools/clang/unittests/Driver/ModuleCacheTest.cpp
   25   EXPECT_TRUE(Path.endswith("ModuleCache"));  
tools/clang/unittests/libclang/LibclangTest.cpp
  471   ASSERT_TRUE(llvm::StringRef(clang_getCString(cxname)).endswith("main.cpp"));
tools/clang/utils/TableGen/ClangAttrEmitter.cpp
  151   if (AttrSpelling.startswith("__") && AttrSpelling.endswith("__")) {
tools/clang/utils/TableGen/ClangTypeNodesEmitter.cpp
   77 	if (!fullName.endswith("Type"))
tools/clang/utils/TableGen/MveEmitter.cpp
  756         if (!StringRef(Type).endswith("*"))
 1320         if (!StringRef(RetTypeName).endswith("*"))
 1631         if (!Type.endswith("*"))
tools/clang/utils/TableGen/NeonEmitter.cpp
 1391     assert(N.endswith("_n"));
tools/dsymutil/BinaryHolder.cpp
   29 static bool isArchive(StringRef Filename) { return Filename.endswith(")"); }
tools/dsymutil/DwarfLinker.cpp
  262   if (!Path.endswith(".swiftinterface"))
 2257     bool isArchive = ObjFile.endswith(")");
tools/llc/llc.cpp
  197       if (IFN.endswith(".bc") || IFN.endswith(".ll"))
  197       if (IFN.endswith(".bc") || IFN.endswith(".ll"))
  199       else if (IFN.endswith(".mir"))
  404         (InputLanguage == "" && StringRef(InputFilename).endswith(".mir"))) {
tools/lld/COFF/Driver.cpp
  112   if (!s.endswith(".o"))
  115   if (s.endswith("crtend"))
  117   return !s.empty() && s.drop_back().endswith("crtend");
tools/lld/COFF/DriverUtils.cpp
  307     if (newArg.empty() && arg.endswith(","))
tools/lld/COFF/MinGW.cpp
  127     if (sym->getName().endswith(suffix))
tools/lld/Common/Reproduce.cpp
   35   if (root.endswith(":"))
tools/lld/ELF/Driver.cpp
  124   if (s.endswith("_fbsd")) {
tools/lld/lib/Driver/DarwinLdDriver.cpp
  225       if (!prefix.endswith(".o") && !prefix.endswith(".o)")) {
  225       if (!prefix.endswith(".o") && !prefix.endswith(".o)")) {
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  534   if (libName.endswith(".o")) {
  702   if (leafName.startswith("lib") && leafName.endswith(".dylib")) {
  827   if (sym.endswith(".eh") || sym.startswith(".objc_category_name_")) {
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
 1355     return name.endswith(".objtxt") || name.endswith(".yaml");
 1355     return name.endswith(".objtxt") || name.endswith(".yaml");
tools/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp
  139       if (!sc_dir.endswith(relative_path)) {
tools/lldb/source/Commands/CommandObjectType.cpp
 1595   if (type_name_ref.endswith("[]")) {
tools/lldb/source/Host/posix/HostProcessPosix.cpp
   70   if (file_spec.GetFilename().GetStringRef().endswith(" (deleted)")) {
tools/lldb/source/Interpreter/CommandAlias.cpp
  182         llvm::StringRef(value).endswith("--")) {
tools/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp
   49   if (posix_dir.endswith("/usr/include/bits"))
   51   if (posix_dir.endswith("/usr/include"))
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  163     result |= mangled_symbol.endswith("@4IA"); // Microsoft ABI
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
 1949     if (platform_plugin_name_sr.endswith("-simulator"))
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
 1225       if (name_ref.endswith(expand)) {
 3616     if (!func_name.GetStringRef().endswith(".expand"))
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
 1646                     .endswith(dwo_module_spec.GetFileSpec().GetPath())) {
tools/lldb/source/Utility/CompletionRequest.cpp
   39   if (partial_command.endswith(" ") &&
   40       !GetCursorArgumentPrefix().endswith(" "))
tools/lldb/source/Utility/NameMatches.cpp
   27     return name.endswith(match);
tools/lldb/tools/lldb-vscode/IOStream.cpp
  141     if (llvm::StringRef(line).endswith("\r\n"))
tools/lli/lli.cpp
  547     if (StringRef(InputFile).endswith(".bc"))
tools/llvm-as/llvm-as.cpp
   78       OutputFilename = (IFN.endswith(".ll") ? IFN.drop_back(3) : IFN).str();
tools/llvm-config/llvm-config.cpp
  426       if (Lib.endswith(StaticExt)) {
  428       } else if (Lib.endswith(SharedExt)) {
  451         assert(Lib.endswith(SharedExt) && "DyLib is missing suffix");
tools/llvm-dis/llvm-dis.cpp
  182       OutputFilename = (IFN.endswith(".bc") ? IFN.drop_back(3) : IFN).str();
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
   62   return StringRef(Sec.Name).endswith(".dwo");
unittests/ADT/StringRefTest.cpp
  383   EXPECT_TRUE(Str.endswith(""));
  384   EXPECT_TRUE(Str.endswith("lo"));
  385   EXPECT_FALSE(Str.endswith("helloworld"));
  386   EXPECT_FALSE(Str.endswith("worldhello"));
  387   EXPECT_FALSE(Str.endswith("so"));
unittests/CodeGen/MachineInstrTest.cpp
  340       StringRef(OS.str()).endswith("filename:1:5"));
unittests/Support/SpecialCaseListTest.cpp
   95   EXPECT_TRUE(((StringRef)Error).endswith("Supplied regexp was blank"));
unittests/Support/TypeNameTest.cpp
   32   EXPECT_TRUE(S1Name.endswith("::N1::S1")) << S1Name.str();
   33   EXPECT_TRUE(C1Name.endswith("::N1::C1")) << C1Name.str();
   34   EXPECT_TRUE(U1Name.endswith("::N1::U1")) << U1Name.str();
   36   EXPECT_TRUE(S2Name.endswith("S2")) << S2Name.str();
unittests/Support/VirtualFileSystemTest.cpp
  497   EXPECT_TRUE(I->path().endswith("a") || I->path().endswith("c"));
  497   EXPECT_TRUE(I->path().endswith("a") || I->path().endswith("c"));
  501   EXPECT_TRUE(I->path().endswith("a") || I->path().endswith("c"));
  501   EXPECT_TRUE(I->path().endswith("a") || I->path().endswith("c"));