| /llvm-project-15.0.7/llvm/unittests/BinaryFormat/ |
| H A D | MsgPackDocumentTest.cpp | 16 Document Doc; in TEST() local 18 DocNode Int1 = Doc.getNode(1), Int2 = Doc.getNode(2); in TEST() 19 DocNode Str1 = Doc.getNode("ab"), Str2 = Doc.getNode("ab"); in TEST() 26 Document Doc; in TEST() local 34 Document Doc; in TEST() local 70 Document Doc; in TEST() local 103 Document Doc; in TEST() local 185 Document Doc; in TEST() local 193 Document Doc; in TEST() local 203 Document Doc; in TEST() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/ObjectYAML/ |
| H A D | yaml2obj.cpp | 28 yaml::YamlObjectFile Doc; in convertYAML() local 29 YIn >> Doc; in convertYAML() 35 if (Doc.Arch) in convertYAML() 37 if (Doc.Elf) in convertYAML() 39 if (Doc.Coff) in convertYAML() 41 if (Doc.MachO || Doc.FatMachO) in convertYAML() 43 if (Doc.Minidump) in convertYAML() 45 if (Doc.Offload) in convertYAML() 47 if (Doc.Wasm) in convertYAML() 49 if (Doc.Xcoff) in convertYAML() [all …]
|
| H A D | OffloadEmitter.cpp | 21 bool yaml2offload(Binary &Doc, raw_ostream &Out, ErrorHandler EH) { in yaml2offload() argument 22 for (const auto &Member : Doc.Members) { in yaml2offload() 52 if (Doc.Version) in yaml2offload() 53 TheHeader->Version = *Doc.Version; in yaml2offload() 54 if (Doc.Size) in yaml2offload() 55 TheHeader->Size = *Doc.Size; in yaml2offload() 56 if (Doc.EntryOffset) in yaml2offload() 57 TheHeader->EntryOffset = *Doc.EntryOffset; in yaml2offload() 58 if (Doc.EntrySize) in yaml2offload() 59 TheHeader->EntrySize = *Doc.EntrySize; in yaml2offload()
|
| H A D | ArchiveEmitter.cpp | 20 bool yaml2archive(ArchYAML::Archive &Doc, raw_ostream &Out, ErrorHandler EH) { in yaml2archive() argument 21 Out.write(Doc.Magic.data(), Doc.Magic.size()); in yaml2archive() 23 if (Doc.Content) { in yaml2archive() 24 Doc.Content->writeAsBinary(Out); in yaml2archive() 28 if (!Doc.Members) in yaml2archive() 37 for (const Archive::Child &C : *Doc.Members) { in yaml2archive()
|
| H A D | ELFEmitter.cpp | 202 ELFYAML::Object &Doc; member in __anon2264ce4a0111::ELFState 355 Doc.Chunks.insert( in ELFState() 396 if (Doc.Symbols) { in ELFState() 402 if (Doc.DWARF) in ELFState() 443 Doc.Chunks.insert(Doc.Chunks.end() - 1, std::move(Sec)); in ELFState() 482 if (Doc.Header.EPhOff) in writeELFHeader() 496 if (Doc.Header.EPhNum) in writeELFHeader() 985 (IsStatic && Doc.Symbols) || (!IsStatic && Doc.DynamicSymbols); in initSymtabSectionHeader() 1104 if (Doc.DWARF && shouldEmitDWARF(*Doc.DWARF, Name)) { in initDWARFSectionHeader() 1869 if (Doc.Symbols) in buildSymbolIndexes() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | JSONTest.cpp | 260 EXPECT_TRUE(!!Doc); in TEST() 262 Object *O = Doc->getAsObject(); in TEST() 351 EXPECT_TRUE(!!Doc) << T.Desc; in TEST() 354 EXPECT_EQ(T.Val, *Doc) << T.Desc; in TEST() 374 EXPECT_TRUE(!!Doc); in TEST() 383 EXPECT_TRUE(!!Doc); in TEST() 393 EXPECT_TRUE(!!Doc); in TEST() 403 EXPECT_TRUE(!!Doc); in TEST() 413 EXPECT_TRUE(!!Doc); in TEST() 417 EXPECT_TRUE(!!Doc->getAsNumber()); in TEST() [all …]
|
| H A D | YAMLParserTest.cpp | 161 yaml::Document &Doc = *Stream.begin(); in TEST() local 162 yaml::MappingNode *Map = cast<yaml::MappingNode>(Doc.getRoot()); in TEST() 340 yaml::Document &Doc = *Stream.begin(); in TEST() local 341 EXPECT_FALSE(Doc.skip()); in TEST()
|
| /llvm-project-15.0.7/llvm/include/llvm/ObjectYAML/ |
| H A D | yaml2obj.h | 65 bool yaml2archive(ArchYAML::Archive &Doc, raw_ostream &Out, ErrorHandler EH); 66 bool yaml2coff(COFFYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH); 67 bool yaml2elf(ELFYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH, 69 bool yaml2macho(YamlObjectFile &Doc, raw_ostream &Out, ErrorHandler EH); 70 bool yaml2minidump(MinidumpYAML::Object &Doc, raw_ostream &Out, 72 bool yaml2offload(OffloadYAML::Binary &Doc, raw_ostream &Out, ErrorHandler EH); 73 bool yaml2wasm(WasmYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH); 74 bool yaml2xcoff(XCOFFYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH); 75 bool yaml2dxcontainer(DXContainerYAML::Object &Doc, raw_ostream &Out,
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | ReplacementsYamlTest.cpp | 21 TranslationUnitReplacements Doc; in TEST() local 23 Doc.MainSourceFile = "/path/to/source.cpp"; in TEST() 24 Doc.Replacements.emplace_back("/path/to/file1.h", 232, 56, "replacement #1"); in TEST() 25 Doc.Replacements.emplace_back("/path/to/file2.h", 301, 2, "replacement #2"); in TEST() 31 YAML << Doc; in TEST() 50 TranslationUnitReplacements Doc; in TEST() local 52 Doc.MainSourceFile = "/path/to/source.cpp"; in TEST() 53 Doc.Replacements.emplace_back("/path/to/file1.h", 0, 0, "#include <utility>\n"); in TEST() 59 YAML << Doc; in TEST()
|
| /llvm-project-15.0.7/clang/utils/TableGen/ |
| H A D | ClangSyntaxEmitter.cpp | 177 static void printDoc(llvm::StringRef Doc, llvm::raw_ostream &OS) { in printDoc() argument 178 Doc = Doc.rtrim(); in printDoc() 180 while (Line.trim().empty() && !Doc.empty()) in printDoc() 181 std::tie(Line, Doc) = Doc.split('\n'); in printDoc() 183 for (; !Line.empty() || !Doc.empty(); std::tie(Line, Doc) = Doc.split('\n')) { in printDoc()
|
| H A D | ClangOptionDocEmitter.cpp | 399 void emitDocumentation(int Depth, const Documentation &Doc, 423 void emitDocumentation(int Depth, const Documentation &Doc, in emitDocumentation() argument 425 for (auto &O : Doc.Options) in emitDocumentation() 427 for (auto &G : Doc.Groups) in emitDocumentation()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | YAMLParser.h | 180 std::unique_ptr<Document> &Doc; 596 return Doc == Other.Doc; 603 assert(Doc && "incrementing iterator past the end."); 604 if (!(*Doc)->skip()) { 605 Doc->reset(nullptr); 607 Stream &S = (*Doc)->stream; 608 Doc->reset(new Document(S)); 613 Document &operator*() { return *Doc->get(); } 615 std::unique_ptr<Document> &operator->() { return *Doc; } 618 bool isAtEnd() const { return !Doc || !*Doc; } in isAtEnd() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | CodeCompletionStrings.cpp | 87 std::string Doc = in getDeclComment() local 89 if (!looksLikeDocComment(Doc)) in getDeclComment() 92 if (!llvm::json::isUTF8(Doc)) in getDeclComment() 93 Doc = llvm::json::fixUTF8(Doc); in getDeclComment() 94 return Doc; in getDeclComment()
|
| H A D | JSONTransport.cpp | 117 if (auto Doc = llvm::json::parse(JSON)) { in loop() local 118 vlog(Pretty ? "<<< {0:2}\n" : "<<< {0}\n", *Doc); in loop() 119 if (!handleMessage(std::move(*Doc), Handler)) in loop() 124 elog("JSON parse error: {0}", llvm::toString(Doc.takeError())); in loop()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/ |
| H A D | PostingList.cpp | 78 for (const DocID Doc : C.decompress()) { in dump() local 79 OS << Sep << Doc; in dump() 172 for (DocID Doc : Documents.drop_front()) { in encodeStream() local 173 if (!encodeVByte(Doc - Last, RemainingPayload)) { // didn't fit, flush chunk in encodeStream() 175 Result.back().Head = Doc; in encodeStream() 178 Last = Doc; in encodeStream()
|
| /llvm-project-15.0.7/clang/unittests/Basic/ |
| H A D | SarifTest.cpp | 34 static std::string serializeSarifDocument(llvm::json::Object &&Doc) { in serializeSarifDocument() argument 36 llvm::json::Value value(std::move(Doc)); in serializeSarifDocument() 105 const llvm::json::Object &Doc = Writer.createDocument(); in TEST_F() local 106 const llvm::json::Array *Runs = Doc.getArray("runs"); in TEST_F() 166 const llvm::json::Object &Doc = Writer.createDocument(); in TEST_F() local 170 ASSERT_THAT(Doc.get("$schema"), ::testing::NotNull()); in TEST_F() 171 ASSERT_THAT(Doc.get("version"), ::testing::NotNull()); in TEST_F() 172 const llvm::json::Array *Runs = Doc.getArray("runs"); in TEST_F()
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/ |
| H A D | ReplacementsYaml.h | 64 clang::tooling::TranslationUnitReplacements &Doc) { in LLVM_YAML_IS_SEQUENCE_VECTOR() 65 Io.mapRequired("MainSourceFile", Doc.MainSourceFile); in LLVM_YAML_IS_SEQUENCE_VECTOR() 66 Io.mapRequired("Replacements", Doc.Replacements); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| H A D | DiagnosticsYaml.h | 98 static void mapping(IO &Io, clang::tooling::TranslationUnitDiagnostics &Doc) { in LLVM_YAML_IS_SEQUENCE_VECTOR() 99 Io.mapRequired("MainSourceFile", Doc.MainSourceFile); in LLVM_YAML_IS_SEQUENCE_VECTOR() 100 Io.mapRequired("Diagnostics", Doc.Diagnostics); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/ |
| H A D | AtomicChange.cpp | 55 static void mapping(IO &Io, NormalizedAtomicChange &Doc) { in mapping() 56 Io.mapRequired("Key", Doc.Key); in mapping() 57 Io.mapRequired("FilePath", Doc.FilePath); in mapping() 58 Io.mapRequired("Error", Doc.Error); in mapping() 59 Io.mapRequired("InsertedHeaders", Doc.InsertedHeaders); in mapping() 60 Io.mapRequired("RemovedHeaders", Doc.RemovedHeaders); in mapping() 61 Io.mapRequired("Replacements", Doc.Replaces); in mapping() 68 static void mapping(IO &Io, clang::tooling::AtomicChange &Doc) { in mapping() 70 Keys(Io, Doc); in mapping()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/xpc/ |
| H A D | XPCTransport.cpp | 169 const json::Value Doc = xpcToJson(message); in connection_handler() 170 if (Doc == json::Value(nullptr)) { in connection_handler() 176 vlog("<<< {0}\n", Doc); in connection_handler() 178 if (!TransportObject->handleMessage(std::move(Doc), *HandlerPtr)) { in connection_handler()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | YAMLParser.cpp | 1935 for (Document &Doc : *this) in skip() 1936 Doc.skip(); in skip() 1941 : Doc(D), TypeID(Type), Anchor(A), Tag(T) { in Node() 1961 Doc->getTagMap().find(TagHandle); in getVerbatimTag() 1962 if (It != Doc->getTagMap().end()) in getVerbatimTag() 1992 return Doc->peekNext(); in peekNext() 1996 return Doc->getNext(); in getNext() 2000 return Doc->parseBlockNode(); in parseBlockNode() 2004 return Doc->NodeAllocator; in getAllocator() 2008 Doc->setError(Msg, Tok); in setError() [all …]
|
| /llvm-project-15.0.7/llvm/utils/TableGen/ |
| H A D | DXILEmitter.cpp | 37 StringRef Doc; // the documentation description of this parameter member 51 StringRef Doc; // the documentation description of this instruction member 88 Doc = R->getValueAsString("doc"); in DXILOperationData() 110 Doc = R->getValueAsString("doc"); in DXILParam() 152 OS << DXILOp.Name << " = " << DXILOp.DXILOpID << ", // " << DXILOp.Doc in emitDXILOpEnum()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/ |
| H A D | TraceTests.cpp | 93 auto Doc = Stream.begin(); in TEST() local 94 ASSERT_NE(Doc, Stream.end()); in TEST() 95 auto *Root = llvm::dyn_cast_or_null<llvm::yaml::MappingNode>(Doc->getRoot()); in TEST()
|
| /llvm-project-15.0.7/llvm/tools/llvm-tapi-diff/ |
| H A D | DiffEngine.cpp | 222 for (auto Doc : Interface->documents()) { in getSingleIF() local 226 InlineDoc(Doc->getInstallName(), getSingleIF(Doc.get(), Order)))); in getSingleIF() 534 if (InlineDoc *Doc = dyn_cast<InlineDoc>(Item.get())) in printDifferences() local 535 if (!Doc->DocValues.empty()) { in printDifferences() 536 OS << Indent << "\t" << Doc->InstallName << "\n"; in printDifferences() 537 printDifferences(OS, std::move(Doc->DocValues), 2); in printDifferences()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | Sarif.cpp | 382 json::Object Doc{ in createDocument() local 387 Doc["runs"] = json::Array(Runs); in createDocument() 388 return Doc; in createDocument()
|