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

References

examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h
   60     auto DL = JTMB->getDefaultDataLayoutForTarget();
examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h
   71     auto DL = JTMB->getDefaultDataLayoutForTarget();
examples/SpeculativeJIT/SpeculativeJIT.cpp
   47     auto DL = JTMB->getDefaultDataLayoutForTarget();
   54         JTMB->getTargetTriple(), *ES,
   60         createLocalIndirectStubsManagerBuilder(JTMB->getTargetTriple());
   67             DL->getGlobalPrefix());
include/llvm/DebugInfo/CodeView/CVRecord.h
  124     Len = ExpectedRec->length();
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
  537           if (RS->size() == Symbols.size())
  542             if (!RS->count(S))
  706           if (RS->size() == Symbols.size())
  711             if (!RS->count(S))
include/llvm/Object/COFF.h
 1019     Res = reinterpret_cast<const T *>(S->getRawPtr());
include/llvm/Object/ELF.h
   58     return "[index " + std::to_string(Sec - &TableOrErr->front()) + "]";
include/llvm/Object/ELFObjectFile.h
  469   if (Name && !Name->empty())
  713   const Elf_Shdr *First = SectionsOrErr->begin();
include/llvm/Object/Minidump.h
  210   return ArrayRef<T>(reinterpret_cast<const T *>(Slice->data()), Count);
include/llvm/Object/ObjectFile.h
  453   return StringRef(reinterpret_cast<const char *>(Res->data()), Res->size());
  453   return StringRef(reinterpret_cast<const char *>(Res->data()), Res->size());
lib/Bitcode/Reader/BitcodeReader.cpp
 6321   return std::move(FOrErr->Mods);
 6627   if (MsOrErr->size() != 1)
 6640   return BM->getLazyModule(Context, ShouldLazyLoadMetadata, IsImporting);
 6666   return BM->parseModule(Context);
 6700   return BM->readSummary(CombinedIndex, BM->getModuleIdentifier(), ModuleId);
 6700   return BM->readSummary(CombinedIndex, BM->getModuleIdentifier(), ModuleId);
 6709   return BM->getSummary();
 6717   return BM->getLTOInfo();
lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
  666   EntryOr->dump(W);
lib/DebugInfo/DWARF/DWARFContext.cpp
 1476     if (auto Err = Decompressor->resizeAndDecompress(Out))
 1669               RelocAddrEntry{SymInfoOrErr->SectionIndex, Reloc,
 1670                              SymInfoOrErr->Address,
 1684             entry.SymbolValue2 = SymInfoOrErr->Address;
lib/DebugInfo/DWARF/DWARFVerifier.cpp
 1219     uint32_t CUIndex = *EntryOr->getCUIndex();
 1228     uint64_t DIEOffset = CUOffset + *EntryOr->getDIEUnitOffset();
 1244     if (DIE.getTag() != EntryOr->tag()) {
 1247                          NI.getUnitOffset(), EntryID, DIEOffset, EntryOr->tag(),
lib/DebugInfo/GSYM/GsymReader.cpp
  256       if (ExpectedFI->Range.contains(Addr) || ExpectedFI->Range.size() == 0)
  256       if (ExpectedFI->Range.contains(Addr) || ExpectedFI->Range.size() == 0)
lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
   70     return IS->getAge();
   82     return IS->getGuid();
   90     return Dbi->hasCTypes();
   98     return !Dbi->isStripped();
lib/DebugInfo/PDB/Native/PDBFile.cpp
  264         safelyCreateIndexedStream(DbiS->getGlobalSymbolStreamIndex());
  337         safelyCreateIndexedStream(DbiS->getPublicSymbolStreamIndex());
  354     uint32_t SymbolStreamNum = DbiS->getSymRecordStreamIndex();
  406   PDB_Machine Machine = DbiS->getMachineType();
  423   return DbiS->getGlobalSymbolStreamIndex() < getNumStreams();
  445   return DbiS->getPublicSymbolStreamIndex() < getNumStreams();
  452   return DbiS->getSymRecordStreamIndex() < getNumStreams();
  461   Expected<uint32_t> ExpectedNSI = IS->getNamedStreamIndex("/names");
  474   Expected<uint32_t> ExpectedNSI = IS->getNamedStreamIndex("/src/headerblock");
  501   Expected<uint32_t> ExpectedNSI = IS->getNamedStreamIndex(Name);
lib/DebugInfo/PDB/Native/SymbolCache.cpp
   85   auto &Types = Tpi->typeCollection();
  162   codeview::LazyRandomTypeCollection &Types = Tpi->typeCollection();
  166     Expected<TypeIndex> EFD = Tpi->findFullDeclForForwardRef(Index);
lib/DebugInfo/PDB/Native/TpiStream.cpp
  192   uint32_t BucketIdx = ForwardTRH->FullRecordHash % Header->NumHashBuckets;
  202     if (ForwardTRH->FullRecordHash != FullTRH->FullRecordHash)
  202     if (ForwardTRH->FullRecordHash != FullTRH->FullRecordHash)
  204     TagRecord &ForwardTR = ForwardTRH->getRecord();
  205     TagRecord &FullTR = FullTRH->getRecord();
lib/DebugInfo/Symbolize/Symbolize.cpp
  397     ObjectFile *Res = ObjOrErr->get();
lib/ExecutionEngine/JITLink/EHFrameSupport.cpp
  180   if (AugInfo->EHDataFieldPresent)
  216   uint8_t *NextField = &AugInfo->Fields[0];
lib/ExecutionEngine/JITLink/MachO_arm64.cpp
  151       FromSymbol = FromSymbolOrErr->GraphSymbol;
  168         ToSymbol = ToSymbolOrErr->GraphSymbol;
  234           BlockToFix = &SymbolToFixOrErr->getBlock();
  287             TargetSymbol = TargetSymbolOrErr->GraphSymbol;
  298             TargetSymbol = TargetSymbolOrErr->GraphSymbol;
  305             TargetSymbol = TargetSymbolOrErr->GraphSymbol;
  322             TargetSymbol = TargetSymbolOrErr->GraphSymbol;
  334             TargetSymbol = TargetSymbolOrErr->GraphSymbol;
  341             TargetSymbol = TargetSymbolOrErr->GraphSymbol;
  353             TargetSymbol = TargetSymbolOrErr->GraphSymbol;
lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
  153       FromSymbol = FromSymbolOrErr->GraphSymbol;
  170         ToSymbol = ToSymbolOrErr->GraphSymbol;
  242           BlockToFix = &SymbolToFixOrErr->getBlock();
  264             TargetSymbol = TargetSymbolOrErr->GraphSymbol;
  271             TargetSymbol = TargetSymbolOrErr->GraphSymbol;
  278             TargetSymbol = TargetSymbolOrErr->GraphSymbol;
  296             TargetSymbol = TargetSymbolOrErr->GraphSymbol;
lib/ExecutionEngine/Orc/Core.cpp
  639           assert(Result->count(KV.second.Aliasee) &&
  689   if (Flags->size() != Symbols.size()) {
  698     assert(Flags->count(Name) && "Missing entry in flags map");
 1360       if (Unresolved->empty())
 1368       if (!NewDefs->empty()) {
 1373         assert(Unresolved2->empty() &&
 1378         Unresolved->erase(Name);
 1424     if (!NewDefs->empty()) {
 1433       assert(NewDefs->empty() &&
 1541       if (!NewDefs->empty()) {
 1545         assert(NewDefs->empty() &&
 2086     assert(ResultMap->size() == 1 && "Unexpected number of results");
 2087     assert(ResultMap->count(Name) && "Missing result for symbol");
 2088     return std::move(ResultMap->begin()->second);
lib/ExecutionEngine/Orc/ExecutionUtils.cpp
  136         assert(CtorDtorMap->count(Name) && "No entry for Name");
  271         {ChildBuffer->getBuffer(), ChildBuffer->getBufferIdentifier()});
  271         {ChildBuffer->getBuffer(), ChildBuffer->getBufferIdentifier()});
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
  105     return Sym->getAddress();
lib/ExecutionEngine/Orc/LazyReexports.cpp
   61   auto ResolvedAddr = LookupResult->getAddress();
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
  266     if (JITSymFlags->isWeak() || JITSymFlags->isCommon()) {
  266     if (JITSymFlags->isWeak() || JITSymFlags->isCommon()) {
  277       if (JITSymFlags->isWeak())
  279       if (JITSymFlags->isCommon()) {
 1175       assert(NewResolverResults->size() == NewSymbols.size() &&
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
  744   if (SymInfo->isZeroFill())
  748       reinterpret_cast<uintptr_t>(SymInfo->getContent().data()));
  758   return SymInfo->getTargetAddress();
  786   return SymInfo->getContent();
  809     if (SecInfo->isZeroFill())
  812       Addr = pointerToJITTargetAddress(SecInfo->getContent().data());
  814     Addr = SecInfo->getTargetAddress();
  839     if (StubInfo->isZeroFill())
  841     Addr = pointerToJITTargetAddress(StubInfo->getContent().data());
  843     Addr = StubInfo->getTargetAddress();
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h
   40     Flags->getTargetFlags() = ARMJITSymbolFlags::fromObjectSymbol(SR);
lib/LTO/Caching.cpp
  146           std::make_unique<raw_fd_ostream>(Temp->FD, /* ShouldClose */ false),
lib/LTO/LTO.cpp
  436   File->TargetTriple = FOrErr->TheReader.getTargetTriple();
  437   File->SourceFileName = FOrErr->TheReader.getSourceFileName();
  438   File->COFFLinkerOpts = FOrErr->TheReader.getCOFFLinkerOpts();
  439   File->DependentLibraries = FOrErr->TheReader.getDependentLibraries();
  440   File->ComdatTable = FOrErr->TheReader.getComdatTable();
  442   for (unsigned I = 0; I != FOrErr->Mods.size(); ++I) {
  445          FOrErr->TheReader.module_symbols(I))
  453   File->Mods = FOrErr->Mods;
  454   File->Strtab = std::move(FOrErr->Strtab);
  598     if (EnableSplitLTOUnit.getValue() != LTOInfo->EnableSplitLTOUnit)
  601     EnableSplitLTOUnit = LTOInfo->EnableSplitLTOUnit;
  606                        LTOInfo->IsThinLTO ? ThinLTO.ModuleMap.size() + 1 : 0,
  607                        LTOInfo->HasSummary);
  609   if (LTOInfo->IsThinLTO)
  617   if (!LTOInfo->HasSummary)
lib/LTO/LTOModule.cpp
   78   return Result->IsThinLTO;
  662     return ObjOrErr->release();
lib/Object/ArchiveWriter.cpp
  612   raw_fd_ostream Out(Temp->FD, false);
  638   return Temp->keep(ArcName);
lib/Object/COFFObjectFile.cpp
 1828     if (std::error_code EC = Obj->getSection(Sym->getSectionNumber(), Section))
 1832     uint64_t Offset = Entry.DataRVA + Sym->getValue();
 1857         return Contents->slice(Offset, Offset + Entry.DataSize);
lib/Object/ELF.cpp
  357   const uint8_t *Cur = ContentsOrErr->begin();
  358   const uint8_t *End = ContentsOrErr->end();
  359   if (ContentsOrErr->size() < 4 || Cur[0] != 'A' || Cur[1] != 'P' ||
lib/Object/IRObjectFile.cpp
   80       if (Contents->size() <= 1)
  102     return findBitcodeInObject(*ObjFile->get());
  150   F.Mods = std::move(BFCOrErr->Mods);
  151   F.Symtab = std::move(FCOrErr->Symtab);
  152   F.Strtab = std::move(FCOrErr->Strtab);
  153   F.TheReader = std::move(FCOrErr->TheReader);
lib/Object/IRSymtab.cpp
  359     Mods.push_back(MOrErr->get());
lib/Object/MachOObjectFile.cpp
  186     if (CmdOrErr->cmdsize + Ptr > Obj.getData().end())
  189     if (CmdOrErr->cmdsize < 8)
lib/Object/MachOUniversal.cpp
  234   return O->getAsObjectFile();
  242   return O->getAsArchive();
lib/Object/Object.cpp
  257   return NameOrErr->data();
  266     return E->data();
  310   return Ret->data();
lib/Object/SymbolicFile.cpp
   88         IRObjectFile::findBitcodeInObject(*Obj->get());
   95         MemoryBufferRef(BCData->getBuffer(), Object.getBufferIdentifier()),
lib/ObjectYAML/MinidumpYAML.cpp
  471         File.getRawData(ExpectedExceptionStream->ThreadContext);
  523     auto ExpectedCSDVersion = File.getString(ExpectedInfo->CSDVersionRVA);
lib/ProfileData/Coverage/CoverageMappingReader.cpp
  719   auto CoverageMappingOrErr = CoverageSection->getContents();
lib/Remarks/BitstreamRemarkParser.cpp
  164   if (Next->Kind != BitstreamEntry::SubBlock || Next->ID != BlockID)
  164   if (Next->Kind != BitstreamEntry::SubBlock || Next->ID != BlockID)
  180     switch (Next->Kind) {
  189       if (Error E = parseRecord(ParserHelper, Next->ID))
  226   if (Next->Kind != BitstreamEntry::SubBlock ||
  227       Next->ID != llvm::bitc::BLOCKINFO_BLOCK_ID)
  255   switch (Next->Kind) {
  258     Result = Next->ID == BlockID;
  293   if (Error E = validateMagicNumber(StringRef(Magic->data(), Magic->size())))
  293   if (Error E = validateMagicNumber(StringRef(Magic->data(), Magic->size())))
  316   if (Error E = validateMagicNumber(StringRef(Magic->data(), Magic->size())))
  316   if (Error E = validateMagicNumber(StringRef(Magic->data(), Magic->size())))
lib/Remarks/RemarkParser.cpp
  161   return wrap(MaybeRemark->release());
lib/Support/FileCheck.cpp
  123   StringRef Name = ParseVarResult->Name;
  125   if (ParseVarResult->IsPseudo)
  197       return parseNumericVariableUse(ParseVarResult->Name,
  198                                      ParseVarResult->IsPseudo, LineNumber,
  456         StringRef Name = ParseVarResult->Name;
  457         bool IsPseudo = ParseVarResult->IsPseudo;
  653                     Value->begin(), Value->end());
  653                     Value->begin(), Value->end());
  654       InsertOffset += Value->size();
 1873       if (ParseVarResult->IsPseudo || !CmdlineName.empty()) {
 1881       StringRef Name = ParseVarResult->Name;
lib/Support/GlobPattern.cpp
   91       return BV->flip();
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
  142     Def->OutputFile = Arg->getValue();
  144   if (Def->OutputFile.empty()) {
  156   for (COFFShortExport& E : Def->Exports) {
  164     for (COFFShortExport& E : Def->Exports) {
  181       writeImportLibrary(Def->OutputFile, Path, Def->Exports, Machine, true))
  181       writeImportLibrary(Def->OutputFile, Path, Def->Exports, Machine, true))
tools/bugpoint/ExecutionDriver.cpp
  281   if (writeProgramToFile(Temp->FD, M)) {
  282     errs() << ToolName << ": Error emitting bitcode to file '" << Temp->TmpName
  288   return Interpreter->compileProgram(Temp->TmpName, Timeout, MemoryLimit);
tools/bugpoint/ExtractFunction.cpp
  392   raw_fd_ostream OS(Temp->FD, /*shouldClose*/ false);
  409   uniqueFN += Temp->TmpName;
tools/bugpoint/OptimizerDriver.cpp
  156   raw_fd_ostream OS(Temp->FD, /*shouldClose*/ false);
  161     errs() << "Error writing bitcode file: " << Temp->TmpName << "\n";
  224   Args.push_back(Temp->TmpName.c_str());
tools/clang/examples/clang-interpreter/main.cpp
   78     auto TM = JTMB->createTargetMachine();
  109     return Sym->getAddress();
tools/clang/include/clang/Tooling/Refactoring/RefactoringActionRulesInternal.h
   63   Rule->invoke(Consumer, Context);
tools/clang/lib/AST/ASTImporter.cpp
 8204                                          TyOrErr->getTypePtr());
 8284                         ToSourceRangeOrErr->getBegin(),
 8285                         ToSourceRangeOrErr->getEnd());
tools/clang/lib/Basic/FileManager.cpp
  190     return &Result->getDirEntry();
  198     return &Result->getFileEntry();
tools/clang/lib/CodeGen/BackendUtil.cpp
 1082       PassPlugin->registerPassBuilderCallbacks(PB);
 1356     if (LTOInfo && LTOInfo->IsThinLTO)
tools/clang/lib/Driver/DarwinSDKInfo.cpp
   33   if (const auto *Obj = Result->getAsObject()) {
tools/clang/lib/Format/ContinuationIndenter.cpp
 1641       ContentStartsOnNewline || (NewCode->find('\n') != std::string::npos);
tools/clang/lib/Lex/HeaderSearch.cpp
  341           &File->getFileEntry(), Dir ? Dir : File->getFileEntry().getDir(),
  341           &File->getFileEntry(), Dir ? Dir : File->getFileEntry().getDir(),
tools/clang/lib/Tooling/Core/Replacement.cpp
  339     Replaces.insert(Merged->begin(), Merged->end());
  339     Replaces.insert(Merged->begin(), Merged->end());
tools/clang/lib/Tooling/Refactoring/ASTSelectionRequirements.cpp
   26         Range->getBegin(), diag::err_refactor_selection_invalid_ast);
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp
  112     return CharSourceRange::getCharRange(SelectedRange->getBegin());
  121     if (SelectedRange->isCharRange())
  122       return CharSourceRange::getCharRange(SelectedRange->getEnd());
  124         SelectedRange->getEnd(), 0, Result.Context->getSourceManager(),
  134     return Node->get<Stmt>() != nullptr && Node->get<Expr>() == nullptr
  134     return Node->get<Stmt>() != nullptr && Node->get<Expr>() == nullptr
  137                : CharSourceRange::getTokenRange(Node->getSourceRange());
  159     SourceLocation B = BeginRange->getBegin();
  160     SourceLocation E = EndRange->getEnd();
  166     return CharSourceRange(SourceRange(B, E), EndRange->isTokenRange());
  179     if (auto *M = Node->get<clang::MemberExpr>())
  182     return typeError(ID, Node->getNodeKind(), "MemberExpr");
  241     if (const auto *Arg = N->get<T>())
  243     return typeError(ID, N->getNodeKind());
tools/clang/lib/Tooling/Transformer/Stencil.cpp
  160   NodeOrErr->print(Os, PrintingPolicy(Match.Context->getLangOpts()));
tools/clang/lib/Tooling/Transformer/Transformer.cpp
   40   if (Transformations->empty()) {
tools/clang/tools/clang-format/ClangFormat.cpp
  414     FormatStyle->SortIncludes = SortIncludes;
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  387     if (!NameOrErr->startswith(OFFLOAD_BUNDLER_MAGIC_STR))
  391     return NameOrErr->substr(sizeof(OFFLOAD_BUNDLER_MAGIC_STR) - 1);
  439     OS.write(Content->data(), Content->size());
  439     OS.write(Content->data(), Content->size());
  631       std::unique_ptr<ObjectFile>(cast<ObjectFile>(BinaryOrErr->release())));
tools/clang/tools/clang-refactor/ClangRefactor.cpp
  631   if (Tool.run(ActionFactory->get()) != 0) {
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  993       std::string MovedCode = ChangedCode->substr(NewOffset, NewLength);
tools/clang/tools/extra/clang-doc/tool/ClangDocMain.cpp
  211       Exec->get()->getExecutionContext(),
  242       Exec->get()->execute(doc::newMapperActionFactory(CDCtx), ArgAdjuster);
  259   Exec->get()->getToolResults()->forEachResult(
  286         std::move(ReadInfos->begin(), ReadInfos->end(),
  286         std::move(ReadInfos->begin(), ReadInfos->end(),
  318       if (auto Err = G->get()->generateDocForInfo(I, InfoOS, CDCtx))
  329   Err = G->get()->createResources(CDCtx);
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp
  126   if (!Reps || Reps->size() != 1)
  135   const tooling::Replacement &Placed = *Reps->begin();
tools/clang/tools/extra/clang-tidy/utils/TransformerClangTidyCheck.cpp
   85   if (Transformations->empty())
tools/clang/tools/extra/clangd/ClangdLSPServer.cpp
  657           if (!Response->applied) {
  658             std::string Reason = Response->failureReason
  659                                      ? *Response->failureReason
  694       assert(R->ShowMessage ||
  695              (!R->ApplyEdits.empty() && "tweak has no effect"));
  697       if (R->ShowMessage) {
  699         Msg.message = *R->ShowMessage;
  704       if (R->ApplyEdits.empty())
  712       for (const auto &It : R->ApplyEdits) {
  930         Actions.reserve(Actions.size() + Tweaks->size());
  961                          LSPList.isIncomplete = List->HasMore;
  962                          for (const auto &R : List->Completions) {
  983                           for (auto &SigInfo : Signature->signatures) {
tools/clang/tools/extra/clangd/ClangdServer.cpp
  202     if (!IP->Preamble) {
  220         File, IP->Command, IP->Preamble, IP->Contents, Pos, FS,
  220         File, IP->Command, IP->Preamble, IP->Contents, Pos, FS,
  220         File, IP->Command, IP->Preamble, IP->Contents, Pos, FS,
  255     auto PreambleData = IP->Preamble;
  256     CB(clangd::signatureHelp(File, IP->Command, PreambleData, IP->Contents, Pos,
  256     CB(clangd::signatureHelp(File, IP->Command, PreambleData, IP->Contents, Pos,
  310     auto &AST = InpAST->AST;
  339     auto Changes = renameWithinFile(InpAST->AST, File, Pos, NewName, Index);
  344       auto Style = getFormatStyleForFile(File, InpAST->Inputs.Contents,
  345                                          InpAST->Inputs.FS.get());
  347               cleanupAndFormat(InpAST->Inputs.Contents, *Changes, Style))
  355       Edits.push_back(replacementToEdit(InpAST->Inputs.Contents, Rep));
  408         for (auto &It : Effect->ApplyEdits) {
  431     clangd::dumpAST(InpAST->AST, ResultOS);
  446     CB(clangd::locateSymbolAt(InpAST->AST, Pos, Index));
  467     CB(getCorrespondingHeaderOrSource(Path, InpAST->AST, Index));
  496         CB(clangd::findDocumentHighlights(InpAST->AST, Pos));
  509         File, InpAST->Inputs.Contents, InpAST->Inputs.FS.get());
  509         File, InpAST->Inputs.Contents, InpAST->Inputs.FS.get());
  510     CB(clangd::getHover(InpAST->AST, Pos, std::move(Style), Index));
  523     CB(clangd::getTypeHierarchy(InpAST->AST, Pos, Resolve, Direction, Index,
  559         CB(clangd::getDocumentSymbols(InpAST->AST));
  570     CB(clangd::findReferences(InpAST->AST, Pos, Limit, Index));
  582         CB(clangd::getSymbolInfo(InpAST->AST, Pos));
  594         CB(clangd::getSemanticRanges(InpAST->AST, Pos));
tools/clang/tools/extra/clangd/CodeComplete.cpp
  342         Include.Header = ToInclude->first;
  343         if (ToInclude->second && ShouldInsert)
  344           Include.Insertion = Includes.insert(ToInclude->first);
tools/clang/tools/extra/clangd/FileDistance.cpp
  154     dlog("distance({0} = {1})", URI, U->body());
  155     R.first->second = forScheme(U->scheme()).distance(U->body());
  155     R.first->second = forScheme(U->scheme()).distance(U->body());
  168         SchemeSources.try_emplace(U->body(), Source.getValue());
tools/clang/tools/extra/clangd/Headers.cpp
   88   if (!IncludePath->empty())
tools/clang/tools/extra/clangd/IncludeFixer.cpp
  171         if (ToInclude->second) {
  172           auto I = InsertedHeaders.try_emplace(ToInclude->first);
  175           if (auto Edit = Inserter->insert(ToInclude->first))
  178                                   ToInclude->first, Sym.Scope, Sym.Name),
tools/clang/tools/extra/clangd/Protocol.cpp
   60     if (Parsed->scheme() != "file" && Parsed->scheme() != "test") {
   60     if (Parsed->scheme() != "file" && Parsed->scheme() != "test") {
tools/clang/tools/extra/clangd/RIFF.cpp
   55   if (RIFF->ID != fourCC("RIFF"))
   57   if (RIFF->Data.size() < 4)
   60   std::copy(RIFF->Data.begin(), RIFF->Data.begin() + 4, F.Type.begin());
   60   std::copy(RIFF->Data.begin(), RIFF->Data.begin() + 4, F.Type.begin());
   61   for (llvm::StringRef Body = RIFF->Data.drop_front(4); !Body.empty();)
tools/clang/tools/extra/clangd/URI.cpp
  204   return S->get()->uriFromAbsolutePath(AbsolutePath);
  238   return S->get()->getAbsolutePath(Uri.Authority, Uri.Body, HintPath);
  255     return S->getAbsolutePath(U->Authority, U->Body, HintPath);
  255     return S->getAbsolutePath(U->Authority, U->Body, HintPath);
  265   return S->get()->getIncludeSpelling(Uri);
tools/clang/tools/extra/clangd/XRefs.cpp
 1095   THI.selectionRange = Loc->range;
 1099   THI.uri = Loc->uri;
tools/clang/tools/extra/clangd/benchmarks/IndexBenchmark.cpp
   50   if (!JSONArray->getAsArray()) {
   56   for (const auto &Item : *JSONArray->getAsArray()) {
tools/clang/tools/extra/clangd/index/Serialization.cpp
  428   if (RIFF->Type != riff::fourCC("CdIx"))
  431   for (const auto &Chunk : RIFF->Chunks)
  452       auto IGN = readIncludeGraphNode(SrcsReader, Strings->Strings);
  469       Symbols.insert(readSymbol(SymbolReader, Strings->Strings));
  478       auto RefsBundle = readRefs(RefsReader, Strings->Strings);
  502         readCompileCommand(CmdReader, Strings->Strings);
  678       if (I->Symbols)
  679         Symbols = std::move(*I->Symbols);
  680       if (I->Refs)
  681         Refs = std::move(*I->Refs);
  682       if (I->Relations)
  683         Relations = std::move(*I->Relations);
tools/clang/tools/extra/clangd/index/dex/Dex.cpp
  306   llvm::StringRef Body = ParsedURI->body();
  315   Result.emplace_back(ParsedURI->toString());
  322           URI(ParsedURI->scheme(), ParsedURI->authority(), Body).toString());
  322           URI(ParsedURI->scheme(), ParsedURI->authority(), Body).toString());
tools/clang/tools/extra/clangd/index/dex/dexp/Dexp.cpp
  249       if (RegexFilter.match(U->body()))
tools/clang/tools/extra/clangd/indexer/IndexerMain.cpp
  121   auto Err = Executor->get()->execute(
tools/clang/tools/extra/clangd/refactor/Rename.cpp
   38   return U->file().str();
tools/clang/tools/extra/clangd/refactor/Tweak.cpp
  111   E.ApplyEdits.try_emplace(PathAndEdit->first, PathAndEdit->second);
  111   E.ApplyEdits.try_emplace(PathAndEdit->first, PathAndEdit->second);
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp
  226   return QualifiedFunc->substr(BodyBegin, BodyEnd - BodyBegin + 1);
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp
  544   EXPECT_THAT(SigHelp->signatures, IsEmpty());
tools/clang/tools/extra/clangd/unittests/FormatTests.cpp
   37   NewCode->insert(transformCursorPosition(Cursor, Changes), "^");
tools/clang/tools/extra/clangd/unittests/SerializationTests.cpp
  112   ASSERT_TRUE(bool(ParsedYAML->Symbols));
  114       *ParsedYAML->Symbols,
  117   auto Sym1 = *ParsedYAML->Symbols->find(
  119   auto Sym2 = *ParsedYAML->Symbols->find(
  143   ASSERT_TRUE(bool(ParsedYAML->Refs));
  145       *ParsedYAML->Refs,
  148   auto Ref1 = ParsedYAML->Refs->begin()->second.front();
  154   ASSERT_TRUE(bool(ParsedYAML->Relations));
  156       *ParsedYAML->Relations,
  191   ASSERT_TRUE(In2->Symbols);
  192   ASSERT_TRUE(In2->Refs);
  193   ASSERT_TRUE(In2->Relations);
  196   EXPECT_THAT(YAMLFromSymbols(*In2->Symbols),
  197               UnorderedElementsAreArray(YAMLFromSymbols(*In->Symbols)));
  198   EXPECT_THAT(YAMLFromRefs(*In2->Refs),
  199               UnorderedElementsAreArray(YAMLFromRefs(*In->Refs)));
  200   EXPECT_THAT(YAMLFromRelations(*In2->Relations),
  201               UnorderedElementsAreArray(YAMLFromRelations(*In->Relations)));
  226     ASSERT_TRUE(In->Symbols);
  227     ASSERT_TRUE(In->Refs);
  228     ASSERT_TRUE(In->Sources);
  229     ASSERT_TRUE(In->Sources->count(IGN.URI));
  231     EXPECT_THAT(YAMLFromSymbols(*In->Symbols),
  232                 UnorderedElementsAreArray(YAMLFromSymbols(*In->Symbols)));
  233     EXPECT_THAT(YAMLFromRefs(*In->Refs),
  234                 UnorderedElementsAreArray(YAMLFromRefs(*In->Refs)));
  235     auto IGNDeserialized = In->Sources->lookup(IGN.URI);
  263     ASSERT_TRUE(In->Cmd);
  265     const tooling::CompileCommand &SerializedCmd = In->Cmd.getValue();
tools/clang/tools/extra/clangd/unittests/TUSchedulerTests.cpp
  276                         EXPECT_THAT(includes(Pre->Preamble),
  284                         EXPECT_THAT(includes(Pre->Preamble),
  426                 EXPECT_EQ(AST->Inputs.FS, Inputs.FS);
  427                 EXPECT_EQ(AST->Inputs.Contents, Inputs.Contents);
  444                 EXPECT_EQ(Preamble->Contents, Inputs.Contents);
tools/clang/tools/extra/clangd/unittests/TweakTesting.cpp
  109   if (Result->ShowMessage)
  110     return "message:\n" + *Result->ShowMessage;
  111   if (Result->ApplyEdits.empty())
  115   for (auto &It : Result->ApplyEdits) {
tools/clang/tools/extra/clangd/unittests/TweakTests.cpp
   72     EXPECT_EQ(Res->first, testPath(Path));
tools/clang/tools/extra/clangd/unittests/URITests.cpp
   35   return Uri->toString();
tools/clang/tools/extra/pp-trace/PPTrace.cpp
  151   clang::tooling::ClangTool Tool(OptionsParser->getCompilations(),
  152                                  OptionsParser->getSourcePathList());
tools/clang/tools/extra/tool-template/ToolTemplate.cpp
  102   ToolTemplateCallback Callback(*Executor->get()->getExecutionContext());
  113   auto Err = Executor->get()->execute(newFrontendActionFactory(&Finder));
  117   Executor->get()->getToolResults()->forEachResult(
tools/clang/unittests/Basic/DiagnosticTest.cpp
   93   EXPECT_EQ(Value->first, 20);
tools/clang/unittests/Format/FormatTestObjC.cpp
   75   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
   80   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
   86   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
   91   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
   96   EXPECT_EQ(FormatStyle::LK_Cpp, Style->Language);
  100   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
  105   EXPECT_EQ(FormatStyle::LK_Cpp, Style->Language);
  109   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
  114   EXPECT_EQ(FormatStyle::LK_Cpp, Style->Language);
  119   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
  124   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
  128   EXPECT_EQ(FormatStyle::LK_Cpp, Style->Language);
  133   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
  138   EXPECT_EQ(FormatStyle::LK_Cpp, Style->Language);
  143   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
  148   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
  153   EXPECT_EQ(FormatStyle::LK_Cpp, Style->Language);
  158   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
  162   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
  166   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
  170   EXPECT_EQ(FormatStyle::LK_ObjC, Style->Language);
  178   EXPECT_EQ(FormatStyle::LK_Cpp, Style->Language);
  184   EXPECT_EQ(FormatStyle::LK_Cpp, Style->Language);
tools/clang/unittests/Tooling/ExecutionTest.cpp
  170   EXPECT_EQ(Executor->get()->getExecutorName(),
  181   EXPECT_EQ(Executor->get()->getExecutorName(), TestToolExecutor::ExecutorName);
tools/dsymutil/DebugMap.cpp
  249     auto Object = ObjectEntry->getObject(Ctxt.BinaryTriple);
  255       for (const auto &Sym : Object->symbols()) {
tools/dsymutil/DwarfLinker.cpp
 2226   auto Object = ObjectEntry->getObject(Map.getTriple());
tools/dsymutil/MachODebugMapParser.cpp
  169   auto Object = ObjectEntry->getObjectAs<MachOObjectFile>(Result->getTriple());
  358   auto Objects = ObjectEntry->getObjectsAs<MachOObjectFile>();
  383   auto Objects = ObjectEntry->getObjectsAs<MachOObjectFile>();
tools/dsymutil/MachOUtils.cpp
  357       ObjectEntry->getObjectAs<object::MachOObjectFile>(DM.getTriple());
tools/dsymutil/dsymutil.cpp
  565       Options.LinkOpts.ResourceDir = OutputLocationOrErr->getResourceDir();
  567       std::string OutputFile = OutputLocationOrErr->DWARFFile;
  623                                                OutputLocationOrErr->DWARFFile,
tools/lld/COFF/InputFiles.cpp
  722       if (sym->kind() == SymbolKind::S_COMPILE3) {
  728       if (sym->kind() == SymbolKind::S_OBJNAME) {
  733       offset += sym->length();
tools/lld/COFF/PDB.cpp
  452     auto tpiHashes = GloballyHashedType::hashTypes(expectedTpi->typeArray());
  457                              expectedTpi->typeArray(), tpiHashes, endPrecomp))
  472                                     expectedTpi->typeArray()))
tools/lld/ELF/Driver.cpp
 1388     if (pat->match(sym->getName()))
tools/lld/lib/ReaderWriter/FileArchive.cpp
   63     const char *memberStart = buf->data();
  181                                           member.getBuffer()->data())
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
  978       tuOrErr->name = copyDebugString(tuOrErr->name, *allocator);
  978       tuOrErr->name = copyDebugString(tuOrErr->name, *allocator);
  979       tuOrErr->path = copyDebugString(tuOrErr->path, *allocator);
  979       tuOrErr->path = copyDebugString(tuOrErr->path, *allocator);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
  792   file = fileOrError->release();
tools/lld/lib/ReaderWriter/MachO/WriterMachO.cpp
   45     return writeBinary(*nFile->get(), path);
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp
   41   nf.reset(r->release());
tools/lldb/source/API/SBHostOS.cpp
  120   return thread->Release();
tools/lldb/source/API/SBModule.cpp
  469       sb_type = SBType(type_system_or_err->GetBuiltinTypeByName(name));
  487           SBType(type_system_or_err->GetBasicTypeFromAST(type)));
  515             type_system_or_err->GetBuiltinTypeByName(name);
tools/lldb/source/Breakpoint/Watchpoint.cpp
   47       m_type = type_system_or_err->GetBuiltinTypeForEncodingAndBitSize(
tools/lldb/source/Core/ValueObjectRegister.cpp
  270               type_system_or_err->GetBuiltinTypeForEncodingAndBitSize(
tools/lldb/source/Expression/Materializer.cpp
  875         type_system_or_err->GetPersistentExpressionState();
tools/lldb/source/Host/common/NativeProcessProtocol.cpp
  450   llvm::SmallVector<uint8_t, 4> saved_opcode_bytes(expected_trap->size(), 0);
  473   error = WriteMemory(addr, expected_trap->data(), expected_trap->size(),
  473   error = WriteMemory(addr, expected_trap->data(), expected_trap->size(),
  479   if (bytes_written != expected_trap->size()) {
  484         expected_trap->size(), bytes_written);
  487   llvm::SmallVector<uint8_t, 4> verify_bp_opcode_bytes(expected_trap->size(),
tools/lldb/source/Host/common/TaskPool.cpp
   73       host_thread->Release();
tools/lldb/source/Plugins/Language/ObjC/CoreMedia.cpp
   40   auto int64_ty = type_system_or_err->GetBuiltinTypeForEncodingAndBitSize(
   42   auto int32_ty = type_system_or_err->GetBuiltinTypeForEncodingAndBitSize(
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
 3337       std::make_shared<DataBufferHeap>(Decompressor->getDecompressedSize(), 0);
 3338   if (auto error = Decompressor->decompress(
tools/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
  174   if (!binary->getBinary()->isCOFF() &&
  175       !binary->getBinary()->isCOFFImportFile())
  179     llvm::cast<llvm::object::COFFObjectFile>(binary->getBinary());
  254   if (!binary->getBinary()->isCOFF() &&
  255       !binary->getBinary()->isCOFFImportFile())
tools/lldb/source/Plugins/Process/POSIX/NativeProcessELF.cpp
  127   info.name = string_or_error->str();
  170     if (!info->name.empty() && info->base_addr != 0)
  170     if (!info->name.empty() && info->base_addr != 0)
  172     link_map = info->next;
tools/lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp
   90             type_system_or_err->GetBasicTypeFromAST(eBasicTypeVoid)
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
 2689       addr = list->m_link_map;
 4826   for (LoadedModuleInfoList::LoadedModuleInfo &modInfo : module_list->m_list) {
tools/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp
  166   switch (system_info->ProcessorArch) {
  185   switch (system_info->PlatformId) {
  210     auto ExpectedCSD = m_file->getString(system_info->CSDVersionRVA);
  216       if (ExpectedCSD->find("Linux") != std::string::npos)
  476   regions.reserve(ExpectedMemory->size());
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.cpp
  121   return type_system_or_err->GetDWARFParser();
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
   91     if (auto *type_unit = llvm::dyn_cast<DWARFTypeUnit>(unit_sp->get())) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
  808           expected_header->GetAbbrOffset());
  814       abbr->GetAbbreviationDeclarationSet(expected_header->GetAbbrOffset());
  819   if (expected_header->IsTypeUnit())
tools/lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
  111         if (entry_or->tag() != DW_TAG_variable)
  131         if (entry_or->tag() != DW_TAG_variable)
  133         if (entry_or->getCUOffset() != cu_offset)
  254         Tag tag = entry_or->tag();
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
  436     type_system_or_err->SetSymbolFile(this);
  806   DWARFASTParser *dwarf_ast = type_system_or_err->GetDWARFParser();
 1744       const dw_offset_t cu_offset = aranges->FindAddress(file_vm_addr);
 2978   DWARFASTParser *dwarf_ast = type_system_or_err->GetDWARFParser();
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
  153   if (expected_info->getGuid() != guid)
  332     ts_or_err->SetSymbolFile(this);
 1583     type_system_or_err->SetSymbolFile(this);
tools/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
 1652     type_system_or_err->SetSymbolFile(this);
tools/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.cpp
  181           type_system_or_err->GetBasicTypeFromAST(eBasicTypeVoid)
tools/lldb/source/Symbol/SymbolFile.cpp
   93     type_system_or_err->SetSymbolFile(this);
tools/lldb/source/Symbol/Type.cpp
  531             type_system_or_err->GetBasicTypeFromAST(eBasicTypeVoid);
tools/lldb/source/Target/Process.cpp
 3535   assert(private_state_thread->IsJoinable());
 6003       type_system_or_err->GetBasicTypeFromAST(eBasicTypeVoid).GetPointerType();
tools/lldb/source/Target/StackFrame.cpp
 1377                   ->GetBasicTypeFromAST(lldb::BasicType::eBasicTypeChar)
tools/lldb/source/Target/Target.cpp
 2183   return type_system_or_err->GetPersistentExpressionState();
 2200   auto *user_expr = type_system_or_err->GetUserExpression(
 2223   auto *persistent_fn = type_system_or_err->GetFunctionCaller(
 2247   auto *utility_fn = type_system_or_err->GetUtilityFunction(text, name);
 2371           type_system_or_err->GetPersistentExpressionState()->GetVariable(expr);
tools/lldb/source/Target/ThreadPlanTracer.cpp
  106             type_system_or_err->GetBuiltinTypeForEncodingAndBitSize(
tools/lldb/tools/lldb-test/lldb-test.cpp
  446         ContextOr->IsValid() ? &*ContextOr : nullptr;
  502       ContextOr->IsValid() ? &*ContextOr : nullptr;
  520       ContextOr->IsValid() ? &*ContextOr : nullptr;
  569         ContextOr->IsValid() ? &*ContextOr : nullptr;
tools/lldb/tools/lldb-vscode/lldb-vscode.cpp
 2642     auto object = json_value->getAsObject();
tools/lldb/unittests/Core/MangledTest.cpp
  161   ModuleSpec Spec{FileSpec(ExpectedFile->name())};
tools/lldb/unittests/ObjectFile/ELF/TestObjectFileELF.cpp
  107   ModuleSpec spec{FileSpec(ExpectedFile->name())};
  108   spec.GetSymbolFileSpec().SetFile(ExpectedFile->name(),
  228   ModuleSpec spec{FileSpec(ExpectedFile->name())};
  229   spec.GetSymbolFileSpec().SetFile(ExpectedFile->name(),
  293   ModuleSpec spec{FileSpec(ExpectedFile->name())};
  294   spec.GetSymbolFileSpec().SetFile(ExpectedFile->name(),
tools/lldb/unittests/ObjectFile/PECOFF/TestPECallFrameInfo.cpp
  203   ModuleSP module_sp = std::make_shared<Module>(ModuleSpec(FileSpec(ExpectedFile->name())));
tools/lldb/unittests/Symbol/TestDWARFCallFrameInfo.cpp
  235       std::make_shared<Module>(ModuleSpec(FileSpec(ExpectedFile->name())));
tools/lldb/unittests/Symbol/TestLineEntry.cpp
   89       line_entry->GetSameLineContiguousAddressRange(include_inlined_functions);
   98       line_entry->GetSameLineContiguousAddressRange(include_inlined_functions);
  107       line_entry->GetSameLineContiguousAddressRange(include_inlined_functions);
tools/lldb/unittests/TestingSupport/Host/NativeProcessTestUtils.h
   74     BytesRead = ExpectedMemory->size();
   76     std::memcpy(Buf, ExpectedMemory->data(), BytesRead);
tools/lldb/unittests/tools/lldb-server/tests/ThreadIdsInJstopinfoTest.cpp
   41   auto stop_reply_pcs = stop_reply->getThreadPcs();
   42   auto thread_infos = jthreads_info->GetThreadInfos();
tools/llvm-ar/llvm-ar.cpp
  646       NMOrErr->MemberName = Saver.save(sys::path::convert_to_slash(*FileNameOrErr));
  652       NMOrErr->MemberName = Saver.save(
  657       identify_magic(NMOrErr->Buf->getBuffer()) == file_magic::archive) {
  684     NMOrErr->MemberName = sys::path::filename(NMOrErr->MemberName);
  684     NMOrErr->MemberName = sys::path::filename(NMOrErr->MemberName);
  687       NMOrErr->MemberName = Saver.save(sys::path::convert_to_slash(FileName));
  691       NMOrErr->MemberName = Saver.save(
  697       identify_magic(NMOrErr->Buf->getBuffer()) == file_magic::archive) {
tools/llvm-cfi-verify/lib/FileAnalysis.cpp
  527       if (LineInfo->FileName == DILineInfo::BadString)
tools/llvm-cfi-verify/llvm-cfi-verify.cpp
  155     if (!InliningInfo || InliningInfo->getNumberOfFrames() == 0) {
  161     const auto &LineInfo = InliningInfo->getFrame(0);
  165       for (uint32_t i = 0; i < InliningInfo->getNumberOfFrames(); ++i) {
  166         const auto &Line = InliningInfo->getFrame(i);
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
  491   if (auto *Obj = dyn_cast<ObjectFile>(BinOrErr->get())) {
  497   else if (auto *Fat = dyn_cast<MachOUniversalBinary>(BinOrErr->get()))
  517   else if (auto *Arch = dyn_cast<Archive>(BinOrErr->get()))
tools/llvm-dwp/llvm-dwp.cpp
  384   if (Error E = Dec->resizeAndDecompress(UncompressedSections.back()))
  540     auto &Obj = *ErrOrObj->getBinary();
  737                         std::make_move_iterator(DWOs->begin()),
  738                         std::make_move_iterator(DWOs->end()));
tools/llvm-elfabi/ELFObjHandler.cpp
  376   Binary *Bin = BinOrErr->get();
tools/llvm-exegesis/llvm-exegesis.cpp
  268       std::move(ConfigsForInstr->begin(), ConfigsForInstr->end(),
  268       std::move(ConfigsForInstr->begin(), ConfigsForInstr->end(),
tools/llvm-jitlink/llvm-jitlink-macho.cpp
   44   auto &TargetSym = E->getTarget();
   65   auto &GOTSym = E->getTarget();
  126           FileInfo.GOTEntryInfos[TS->getName()] = {Sym->getSymbolContent(),
  137           FileInfo.StubInfos[TS->getName()] = {Sym->getSymbolContent(),
tools/llvm-jitlink/llvm-jitlink.cpp
  473   auto SecInfoItr = FI->SectionInfos.find(SectionName);
  474   if (SecInfoItr == FI->SectionInfos.end())
  487   auto StubInfoItr = FI->StubInfos.find(TargetName);
  488   if (StubInfoItr == FI->StubInfos.end())
  501   auto GOTInfoItr = FI->GOTEntryInfos.find(TargetName);
  502   if (GOTInfoItr == FI->GOTEntryInfos.end())
tools/llvm-lipo/llvm-lipo.cpp
  438     const Binary *B = BinaryOrErr->getBinary();
  498         OS << Slice(MachOObjOrError->get()).getArchString() << " ";
  504         OS << Slice(ArchiveOrError->get()).getArchString() << " ";
  568   Binary *B = Obj ? static_cast<Binary *>(Obj->get())
  569                   : static_cast<Binary *>(Ar->get());
tools/llvm-nm/llvm-nm.cpp
  964       if (NameOrErr->startswith(".idata"))
 1804           Expected<StringRef> FileNameOrErr = C->getName();
tools/llvm-objcopy/Buffer.cpp
   26   return Temp ? Temp->keep(FileName) : Temp.takeError();
tools/llvm-objcopy/COFF/COFFObjcopy.cpp
  222   Object *Obj = ObjOrErr->get();
tools/llvm-objcopy/CopyConfig.cpp
  465       Config.OutputFormat = Target->Format;
  466       Config.OutputArch = Target->Machine;
  543     if (!Config.SectionsToRename.try_emplace(SR->OriginalName, *SR).second)
  546                                SR->OriginalName.str().c_str());
  553     Config.SetSectionAlignment[NameAndAlign->first] = NameAndAlign->second;
  553     Config.SetSectionAlignment[NameAndAlign->first] = NameAndAlign->second;
  560     if (!Config.SetSectionFlags.try_emplace(SFU->Name, *SFU).second)
  564           SFU->Name.str().c_str());
tools/llvm-objcopy/CopyConfig.h
  134     if (Matcher->isPositiveMatch())
tools/llvm-objcopy/ELF/Object.cpp
 1648     if (R->Type == IHexRecord::EndOfFile)
 1650     HasSections |= (R->Type == IHexRecord::Data);
tools/llvm-objcopy/MachO/MachOReader.cpp
   92             MachOObj.getSectionContents(SecRef->getRawDataRefImpl()))
   94           StringRef(reinterpret_cast<const char *>(E->data()), E->size());
   94           StringRef(reinterpret_cast<const char *>(E->data()), E->size());
   99     for (auto RI = MachOObj.section_rel_begin(SecRef->getRawDataRefImpl()),
  100               RE = MachOObj.section_rel_end(SecRef->getRawDataRefImpl());
tools/llvm-objcopy/llvm-objcopy.cpp
  194     if (Error E = executeObjcopyOnBinary(Config, *ChildOrErr->get(), MB))
  201     Member->Buf = MB.releaseMemoryBuffer();
  202     Member->MemberName = Member->Buf->getBufferIdentifier();
  202     Member->MemberName = Member->Buf->getBufferIdentifier();
  344   for (CopyConfig &CopyConfig : DriverConfig->CopyConfigs) {
tools/llvm-objdump/COFFDump.cpp
  670            << "(sec " << format("%2d", int(Symbol->getSectionNumber())) << ")"
  672            << "(ty " << format("%3x", unsigned(Symbol->getType())) << ")"
  673            << "(scl " << format("%3x", unsigned(Symbol->getStorageClass()))
  675            << "(nx " << unsigned(Symbol->getNumberOfAuxSymbols()) << ") "
  676            << "0x" << format("%08x", unsigned(Symbol->getValue())) << " "
  694     for (unsigned AI = 0, AE = Symbol->getNumberOfAuxSymbols(); AI < AE; ++AI, ++SI) {
  695       if (Symbol->isSectionDefinition()) {
  701         int32_t AuxNumber = asd->getNumber(Symbol->isBigObj());
  712       } else if (Symbol->isFileRecord()) {
  717         StringRef Name(FileName, Symbol->getNumberOfAuxSymbols() *
  721         SI = SI + Symbol->getNumberOfAuxSymbols();
  723       } else if (Symbol->isWeakExternal()) {
tools/llvm-objdump/MachODump.cpp
  993               name = SymNameNext->data();
tools/llvm-pdbutil/BytesOutputStyle.cpp
  456   auto &Types = Tpi->typeArray();
  457   uint32_t Count = Tpi->getNumTypeRecords();
  458   auto Offsets = Tpi->getTypeIndexOffsets();
tools/llvm-pdbutil/DumpOutputStyle.cpp
  829     for (uint32_t PubSymOff : ExpGlobals->getGlobalsTable()) {
 1178     if (IS->name_ids().empty())
 1182           std::max_element(IS->name_ids().begin(), IS->name_ids().end());
 1182           std::max_element(IS->name_ids().begin(), IS->name_ids().end());
 1188       std::vector<uint32_t> SortedIDs(IS->name_ids().begin(),
 1189                                       IS->name_ids().end());
 1192         auto ES = IS->getStringForID(I);
 1197         } else if (!ES->empty()) {
 1215       P.formatLine("Signature: {0}", IS->getSignature());
 1216       P.formatLine("Hash Version: {0}", IS->getHashVersion());
 1217       P.formatLine("Name Buffer Size: {0}", IS->getByteSize());
 1221     BinaryStreamRef NameBuffer = IS->getStringTable().getBuffer();
 1229       P.formatLine("Bucket Count: {0}", IS->name_ids().size());
 1230       for (const auto &Entry : enumerate(IS->name_ids()))
 1233       P.formatLine("Name Count: {0}", IS->getNameCount());
 1814         ExpectedSyms->getSymbolArray().getUnderlyingStream();
tools/llvm-pdbutil/InputFile.cpp
  173       SC.setStrings(StringTable->getStringTable());
tools/llvm-pdbutil/StreamUtil.cpp
   80     const DbiModuleList &Modules = Dbi->modules();
   91     for (auto &NSE : Info->named_streams()) {
  110     else if (Dbi && StreamIdx == Dbi->getGlobalSymbolStreamIndex())
  113     else if (Dbi && StreamIdx == Dbi->getPublicSymbolStreamIndex())
  116     else if (Dbi && StreamIdx == Dbi->getSymRecordStreamIndex())
  119     else if (Tpi && StreamIdx == Tpi->getTypeHashStreamIndex())
  122     else if (Tpi && StreamIdx == Tpi->getTypeHashStreamAuxIndex())
  125     else if (Ipi && StreamIdx == Ipi->getTypeHashStreamIndex())
  128     else if (Ipi && StreamIdx == Ipi->getTypeHashStreamAuxIndex())
  132              StreamIdx == Dbi->getDebugStreamIndex(DbgHeaderType::Exception))
  135     else if (Dbi && StreamIdx == Dbi->getDebugStreamIndex(DbgHeaderType::Fixup))
  138     else if (Dbi && StreamIdx == Dbi->getDebugStreamIndex(DbgHeaderType::FPO))
  141              StreamIdx == Dbi->getDebugStreamIndex(DbgHeaderType::NewFPO))
  145              StreamIdx == Dbi->getDebugStreamIndex(DbgHeaderType::OmapFromSrc))
  149              StreamIdx == Dbi->getDebugStreamIndex(DbgHeaderType::OmapToSrc))
  152     else if (Dbi && StreamIdx == Dbi->getDebugStreamIndex(DbgHeaderType::Pdata))
  155              StreamIdx == Dbi->getDebugStreamIndex(DbgHeaderType::SectionHdr))
  160                  Dbi->getDebugStreamIndex(DbgHeaderType::SectionHdrOrig))
  164              StreamIdx == Dbi->getDebugStreamIndex(DbgHeaderType::TokenRidMap))
  167     else if (Dbi && StreamIdx == Dbi->getDebugStreamIndex(DbgHeaderType::Xdata))
tools/llvm-pdbutil/YAMLOutputStyle.cpp
  120     if (S->empty())
  248         StringsAndChecksumsRef SC(ExpectedST->getStringTable(),
  310   if (!InfoS->containsIdStream())
  352       ExpectedSyms->getSymbolArray().getUnderlyingStream();
tools/llvm-rc/ResourceScriptParser.cpp
   54   if (NameToken->equalsLower("LANGUAGE"))
   56   else if (NameToken->equalsLower("STRINGTABLE"))
   66   if (TypeToken->equalsLower("ACCELERATORS"))
   68   else if (TypeToken->equalsLower("BITMAP"))
   70   else if (TypeToken->equalsLower("CURSOR"))
   72   else if (TypeToken->equalsLower("DIALOG"))
   74   else if (TypeToken->equalsLower("DIALOGEX"))
   76   else if (TypeToken->equalsLower("HTML"))
   78   else if (TypeToken->equalsLower("ICON"))
   80   else if (TypeToken->equalsLower("MENU"))
   82   else if (TypeToken->equalsLower("RCDATA"))
   84   else if (TypeToken->equalsLower("VERSIONINFO"))
  333       if (!FlagResult->equals_lower(FlagDesc[FlagId]))
  395   if (TypeToken->equals_lower("CHARACTERISTICS"))
  397   if (TypeToken->equals_lower("LANGUAGE"))
  399   if (TypeToken->equals_lower("VERSION"))
  403     if (TypeToken->equals_lower("CAPTION"))
  405     if (TypeToken->equals_lower("CLASS"))
  407     if (TypeToken->equals_lower("EXSTYLE"))
  409     if (TypeToken->equals_lower("FONT"))
  411     if (TypeToken->equals_lower("STYLE"))
  541   std::string ClassUpper = ClassResult->upper();
  638     bool IsMenuItem = ItemTypeResult->equals_lower("MENUITEM");
  639     bool IsPopup = ItemTypeResult->equals_lower("POPUP");
  646       if (SeparatorResult->equals_lower("SEPARATOR")) {
  728   if (TypeResult->equals_lower("BLOCK")) {
  733   if (TypeResult->equals_lower("VALUE")) {
  775     SmallVector<uint32_t, 4> ArgInts(ArgsResult->begin(), ArgsResult->end());
  775     SmallVector<uint32_t, 4> ArgInts(ArgsResult->begin(), ArgsResult->end());
  821       if (Args->size() >= 1)
  823       if (Args->size() >= 2)
  825       if (Args->size() >= 3)
tools/llvm-readobj/ARMEHABIPrinter.h
  464     *reinterpret_cast<const support::ulittle32_t *>(Contents->data() + TableEntryOffset);
  474       PrintOpcodes(Contents->data() + TableEntryOffset, 3, 1);
  479       PrintOpcodes(Contents->data() + TableEntryOffset, 2 + 4 * AdditionalWords,
  518     reinterpret_cast<const support::ulittle32_t *>(Contents->data());
  551       PrintOpcodes(Contents->data() + Entry * IndexTableEntrySize + 4, 3, 1);
tools/llvm-readobj/ARMWinEHPrinter.cpp
 1103     if (NameOrErr->startswith(".pdata"))
tools/llvm-rtdyld/llvm-rtdyld.cpp
  827       auto I = Result->find(Symbol);
  828       assert(I != Result->end() &&
  855     return SymInfo->getTargetAddress() != 0;
tools/llvm-size/llvm-size.cpp
  395       max_name_len = std::max(max_name_len, name_or_err->size());
  434       outs() << format(fmt.str().c_str(), name_or_err->str().c_str(), size, addr);
tools/llvm-symbolizer/llvm-symbolizer.cpp
  246       if (ResOrErr->empty())
tools/llvm-xray/xray-extract.cpp
   88       InstrumentationMapOrError->getFunctionAddresses();
tools/llvm-xray/xray-graph-diff.cpp
  244       GraphT::EdgeIdentifier ID{EdgeTailAttrOrErr->SymbolName,
  245                                 EdgeHeadAttrOrErr->SymbolName};
tools/obj2yaml/elf2yaml.cpp
  564     if (!SymbolName || SymbolName->empty()) {
  804           StringTableOrErr->drop_front(Verdaux->vda_name).data());
  865         StringRef(StringTableOrErr->drop_front(Verneed->vn_file).data());
  877           StringRef(StringTableOrErr->drop_front(Vernaux->vna_name).data());
tools/opt/NewPMDriver.cpp
  276     PassPlugin->registerPassBuilderCallbacks(PB);
tools/sancov/sancov.cpp
  538       CoveredFiles.insert(LineInfo->FileName);
  542       for (uint32_t I = 0; I < InliningInfo->getNumberOfFrames(); ++I) {
  543         auto FrameInfo = InliningInfo->getFrame(I);
  560         CoveredFiles.find(LineInfo->FileName) == CoveredFiles.end())
  562     LineInfo->FileName = normalizeFilename(LineInfo->FileName);
  562     LineInfo->FileName = normalizeFilename(LineInfo->FileName);
  574     for (uint32_t I = 0; I < InliningInfo->getNumberOfFrames(); ++I) {
  575       auto FrameInfo = InliningInfo->getFrame(I);
tools/sanstats/sanstats.cpp
   91       llvm::outs() << format_hex(Addr - 1, 18) << ' ' << LineInfo->FileName
   92                    << ':' << LineInfo->Line << ' ' << LineInfo->FunctionName
   92                    << ':' << LineInfo->Line << ' ' << LineInfo->FunctionName
unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
   45       Gen.reset(ExpectedGenerator->release());
unittests/DebugInfo/GSYM/GSYMTest.cpp
 1136   const Header &Hdr = GR->getHeader();
unittests/ExecutionEngine/JITLink/JITLinkTestCommon.cpp
  225   if (OpIdx >= InstAndSize->first.getNumOperands())
  229   auto &Op = InstAndSize->first.getOperand(OpIdx);
unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp
  274   EXPECT_EQ(Result->count(Baz), 1U) << "No result for \"baz\"";
  275   EXPECT_EQ(Result->count(Qux), 1U) << "No result for \"qux\"";
  289   EXPECT_EQ(Result->count(Bar), 1U) << "No result for \"bar\"";
  290   EXPECT_EQ(Result->count(Baz), 1U) << "No result for \"baz\"";
  863     auto I = Result->find(Foo);
  864     EXPECT_NE(I, Result->end()) << "Could not find symbol definition";
 1192   EXPECT_EQ(Result->count(Foo), 1U) << "\"Foo\" entry missing";
 1193   EXPECT_EQ(Result->count(Bar), 1U) << "\"Bar\" entry missing";
unittests/ExecutionEngine/Orc/LazyCallThroughAndReexportsTest.cpp
   30   auto LCTM = createLocalLazyCallThroughManager(JTMB->getTargetTriple(), ES, 0);
unittests/ExecutionEngine/Orc/LegacyAPIInteropTest.cpp
   50     EXPECT_EQ(Result->size(), 2U) << "Unexpected number of resolved symbols";
   51     EXPECT_EQ(Result->count(Foo), 1U) << "Missing lookup result for foo";
   52     EXPECT_EQ(Result->count(Bar), 1U) << "Missing lookup result for bar";
   93   EXPECT_EQ(RS->size(), 1U) << "Wrong number of symbols returned";
   94   EXPECT_EQ(RS->count(Bar), 1U) << "Incorrect responsibility set returned";
  103     EXPECT_EQ(Result->size(), 2U) << "Wrong number of symbols resolved";
  104     EXPECT_EQ(Result->count(Foo), 1U) << "Result for foo missing";
  105     EXPECT_EQ(Result->count(Bar), 1U) << "Result for bar missing";
unittests/Object/MinidumpTest.cpp
  352     ASSERT_EQ(1u, ExpectedModule->size());
  452     ASSERT_EQ(1u, ExpectedThread->size());
  507     ASSERT_EQ(1u, ExpectedRanges->size());
  592     ASSERT_EQ(1u, std::distance(ExpectedInfo->begin(), ExpectedInfo->end()));
  592     ASSERT_EQ(1u, std::distance(ExpectedInfo->begin(), ExpectedInfo->end()));
  757   EXPECT_EQ(0x04030201u, ExpectedStream->ThreadId);
  758   const minidump::Exception &Exception = ExpectedStream->ExceptionRecord;
  768   EXPECT_EQ(0x84838281, ExpectedStream->ThreadContext.DataSize);
  769   EXPECT_EQ(0x88878685, ExpectedStream->ThreadContext.RVA);
unittests/Passes/PluginsTest.cpp
   52   ASSERT_EQ(TEST_PLUGIN_NAME, Plugin->getPluginName());
   53   ASSERT_EQ(TEST_PLUGIN_VERSION, Plugin->getPluginVersion());
   59   Plugin->registerPassBuilderCallbacks(PB);
unittests/ProfileData/InstrProfTest.cpp
   98   ASSERT_EQ(2U, R->Counts.size());
   99   ASSERT_EQ(1U, R->Counts[0]);
  100   ASSERT_EQ(2U, R->Counts[1]);
  104   ASSERT_EQ(2U, R->Counts.size());
  105   ASSERT_EQ(3U, R->Counts[0]);
  106   ASSERT_EQ(4U, R->Counts[1]);
  214   ASSERT_EQ(1U, R->Counts.size());
  215   ASSERT_EQ(42U, R->Counts[0]);
  219   ASSERT_EQ(2U, R->Counts.size());
  220   ASSERT_EQ(0U, R->Counts[0]);
  221   ASSERT_EQ(0U, R->Counts[1]);
  255   ASSERT_EQ(4U, R->getNumValueSites(IPVK_IndirectCallTarget));
  256   ASSERT_EQ(3U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
  257   ASSERT_EQ(0U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 1));
  258   ASSERT_EQ(2U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 2));
  259   ASSERT_EQ(1U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 3));
  263       R->getValueForSite(IPVK_IndirectCallTarget, 0, &TotalC);
  395   ASSERT_EQ(4U, R->getNumValueSites(IPVK_IndirectCallTarget));
  396   ASSERT_EQ(3U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
  397   ASSERT_EQ(0U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 1));
  398   ASSERT_EQ(2U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 2));
  399   ASSERT_EQ(1U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 3));
  403       R->getValueForSite(IPVK_IndirectCallTarget, 0, &TotalC);
  445   ASSERT_EQ(4U, R->getNumValueSites(IPVK_IndirectCallTarget));
  446   ASSERT_EQ(3U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
  447   ASSERT_EQ(0U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 1));
  448   ASSERT_EQ(2U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 2));
  449   ASSERT_EQ(1U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 3));
  452       R->getValueForSite(IPVK_IndirectCallTarget, 0);
  522   ASSERT_EQ(5U, R->getNumValueSites(IPVK_IndirectCallTarget));
  523   ASSERT_EQ(4U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
  524   ASSERT_EQ(0U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 1));
  525   ASSERT_EQ(4U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 2));
  526   ASSERT_EQ(1U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 3));
  527   ASSERT_EQ(3U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 4));
  530       R->getValueForSite(IPVK_IndirectCallTarget, 0);
  541       R->getValueForSite(IPVK_IndirectCallTarget, 2));
  552       R->getValueForSite(IPVK_IndirectCallTarget, 3));
  557       R->getValueForSite(IPVK_IndirectCallTarget, 4));
  610   ASSERT_EQ(Max, ReadRecord1->Counts[0]);
  615   ASSERT_EQ(1U, ReadRecord2->getNumValueSites(IPVK_IndirectCallTarget));
  617       ReadRecord2->getValueForSite(IPVK_IndirectCallTarget, 0);
  662       R->getValueForSite(IPVK_IndirectCallTarget, 0));
  663   ASSERT_EQ(2U, R->getNumValueSites(IPVK_IndirectCallTarget));
  664   ASSERT_EQ(255U, R->getNumValueDataForSite(IPVK_IndirectCallTarget, 0));
unittests/Support/CachePruningTest.cpp
   18   EXPECT_EQ(std::chrono::seconds(1200), P->Interval);
   19   EXPECT_EQ(std::chrono::hours(7 * 24), P->Expiration);
   20   EXPECT_EQ(75u, P->MaxSizePercentageOfAvailableSpace);
   26   EXPECT_EQ(std::chrono::seconds(1), P->Interval);
   29   EXPECT_EQ(std::chrono::minutes(2), *P->Interval);
   32   EXPECT_EQ(std::chrono::hours(3), *P->Interval);
   38   EXPECT_EQ(std::chrono::seconds(1), P->Expiration);
   44   EXPECT_EQ(100u, P->MaxSizePercentageOfAvailableSpace);
   45   EXPECT_EQ(0u, P->MaxSizeBytes);
   51   EXPECT_EQ(75u, P->MaxSizePercentageOfAvailableSpace);
   52   EXPECT_EQ(1u, P->MaxSizeBytes);
   55   EXPECT_EQ(75u, P->MaxSizePercentageOfAvailableSpace);
   56   EXPECT_EQ(2u * 1024u, P->MaxSizeBytes);
   59   EXPECT_EQ(75u, P->MaxSizePercentageOfAvailableSpace);
   60   EXPECT_EQ(3u * 1024u * 1024u, P->MaxSizeBytes);
   63   EXPECT_EQ(75u, P->MaxSizePercentageOfAvailableSpace);
   64   EXPECT_EQ(4ull * 1024ull * 1024ull * 1024ull, P->MaxSizeBytes);
   70   EXPECT_EQ(std::chrono::seconds(1200), P->Interval);
   71   EXPECT_EQ(std::chrono::seconds(1), P->Expiration);
   72   EXPECT_EQ(50u, P->MaxSizePercentageOfAvailableSpace);
unittests/Support/FileCheckTest.cpp
  150   EXPECT_EQ(ParsedVarResult->Name, OrigVarName);
  152   EXPECT_FALSE(ParsedVarResult->IsPseudo);
  157   EXPECT_EQ(ParsedVarResult->Name, OrigVarName);
  159   EXPECT_FALSE(ParsedVarResult->IsPseudo);
  164   EXPECT_EQ(ParsedVarResult->Name, OrigVarName);
  166   EXPECT_TRUE(ParsedVarResult->IsPseudo);
  180   EXPECT_EQ(ParsedVarResult->Name, "B");
  181   EXPECT_FALSE(ParsedVarResult->IsPseudo);
  187   EXPECT_EQ(ParsedVarResult->Name, "B");
  188   EXPECT_FALSE(ParsedVarResult->IsPseudo);
  194   EXPECT_EQ(ParsedVarResult->Name, "BadVar");
  195   EXPECT_FALSE(ParsedVarResult->IsPseudo);
  201   EXPECT_EQ(ParsedVarResult->Name, "BadVar");
  202   EXPECT_FALSE(ParsedVarResult->IsPseudo);
  208   EXPECT_EQ(ParsedVarResult->Name, "BadVar");
  209   EXPECT_FALSE(ParsedVarResult->IsPseudo);
unittests/Support/GlobPatternTest.cpp
   20   EXPECT_TRUE(Pat1->match(""));
   21   EXPECT_FALSE(Pat1->match("a"));
   27   EXPECT_TRUE(Pat1->match("abcdef"));
   28   EXPECT_TRUE(Pat1->match("abxcxdef"));
   29   EXPECT_FALSE(Pat1->match(""));
   30   EXPECT_FALSE(Pat1->match("xabcdef"));
   31   EXPECT_FALSE(Pat1->match("abcdefx"));
   37   EXPECT_TRUE(Pat1->match("axxc"));
   38   EXPECT_FALSE(Pat1->match("axxx"));
   39   EXPECT_FALSE(Pat1->match(""));
   45   EXPECT_TRUE(Pat1->match("*"));
   46   EXPECT_FALSE(Pat1->match("\\*"));
   47   EXPECT_FALSE(Pat1->match("a"));
   51   EXPECT_TRUE(Pat2->match("ax?c"));
   52   EXPECT_FALSE(Pat2->match("axxc"));
   53   EXPECT_FALSE(Pat2->match(""));
   59   EXPECT_TRUE(Pat1->match("a"));
   60   EXPECT_TRUE(Pat1->match("b"));
   61   EXPECT_TRUE(Pat1->match("c"));
   62   EXPECT_TRUE(Pat1->match("d"));
   63   EXPECT_TRUE(Pat1->match("e"));
   64   EXPECT_TRUE(Pat1->match("f"));
   65   EXPECT_TRUE(Pat1->match("y"));
   66   EXPECT_TRUE(Pat1->match("z"));
   67   EXPECT_FALSE(Pat1->match("g"));
   68   EXPECT_FALSE(Pat1->match(""));
   74   EXPECT_TRUE(Pat1->match("g"));
   75   EXPECT_FALSE(Pat1->match("a"));
   76   EXPECT_FALSE(Pat1->match("b"));
   77   EXPECT_FALSE(Pat1->match("c"));
   78   EXPECT_FALSE(Pat1->match("d"));
   79   EXPECT_FALSE(Pat1->match("e"));
   80   EXPECT_FALSE(Pat1->match("f"));
   81   EXPECT_FALSE(Pat1->match("y"));
   82   EXPECT_FALSE(Pat1->match("z"));
   83   EXPECT_FALSE(Pat1->match(""));
   87   EXPECT_TRUE(Pat2->match("g"));
   88   EXPECT_FALSE(Pat2->match("a"));
   89   EXPECT_FALSE(Pat2->match("b"));
   90   EXPECT_FALSE(Pat2->match("c"));
   91   EXPECT_FALSE(Pat2->match("d"));
   92   EXPECT_FALSE(Pat2->match("e"));
   93   EXPECT_FALSE(Pat2->match("f"));
   94   EXPECT_FALSE(Pat2->match("y"));
   95   EXPECT_FALSE(Pat2->match("z"));
   96   EXPECT_FALSE(Pat2->match(""));
  102   EXPECT_TRUE(Pat1->match("]x"));
  103   EXPECT_TRUE(Pat1->match("ax"));
  104   EXPECT_FALSE(Pat1->match("a]x"));
  105   EXPECT_FALSE(Pat1->match(""));
  111   EXPECT_TRUE(Pat1->match("*"));
  112   EXPECT_TRUE(Pat1->match("?"));
  113   EXPECT_TRUE(Pat1->match("^"));
  114   EXPECT_FALSE(Pat1->match("*?^"));
  115   EXPECT_FALSE(Pat1->match(""));
  131   EXPECT_TRUE(Pat1->match("axxx\xFF"));
  134   EXPECT_TRUE(Pat2->match("\xFF"));
unittests/Support/JSONTest.cpp
  234   Object *O = Doc->getAsObject();
  320     EXPECT_EQ(Doc->getAsInteger(), T.AsInt) << T.Desc;
  321     EXPECT_EQ(Doc->getAsNumber(), T.AsNumber) << T.Desc;
unittests/Support/Path.cpp
  592   ASSERT_EQ(-1, TempFileOrError->FD);
  604   ASSERT_EQ(-1, TempFileOrError->FD);
unittests/XRay/GraphTest.cpp
   74     EXPECT_EQ(VA[u], EVV->VA);
  101               EEV->EA);
  209   EXPECT_EQ(1u, T->VA);
  239   EXPECT_TRUE(T && T->EA == 2u);
utils/TableGen/GlobalISelEmitter.cpp
 5043       if (RuleCoverage->isCovered(MatcherOrErr->getRuleID()))