Home
last modified time | relevance | path

Searched refs:JSONWriter (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/Support/
H A DScopedPrinterTest.cpp66 JSONScopedPrinter JSONWriter; member in ScopedPrinterTest
71 : OS(StreamBuffer), Writer(OS), JSONWriter(OS, /*PrettyPrint=*/true), in ScopedPrinterTest()
85 DictScope D(JSONWriter); in verifyJSONScopedPrinter()
86 Func(JSONWriter); in verifyJSONScopedPrinter()
88 JSONWriter.flush(); in verifyJSONScopedPrinter()
103 JSONWriter.printString(""); in TearDown()
109 EXPECT_EQ(ScopedPrinter::ScopedPrinterKind::JSON, JSONWriter.getKind()); in TEST_F()
114 EXPECT_TRUE(JSONScopedPrinter::classof(&JSONWriter)); in TEST_F()
115 EXPECT_FALSE(ScopedPrinter::classof(&JSONWriter)); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Support/
H A DVirtualFileSystem.cpp2590 class JSONWriter { class
2603 JSONWriter(llvm::raw_ostream &OS) : OS(OS) {} in JSONWriter() function in __anon2f7918780e11::JSONWriter
2612 bool JSONWriter::containedIn(StringRef Parent, StringRef Path) { in containedIn()
2626 StringRef JSONWriter::containedPart(StringRef Parent, StringRef Path) { in containedPart()
2632 void JSONWriter::startDirectory(StringRef Path) { in startDirectory()
2643 void JSONWriter::endDirectory() { in endDirectory()
2651 void JSONWriter::writeEntry(StringRef VPath, StringRef RPath) { in writeEntry()
2661 void JSONWriter::write(ArrayRef<YAMLVFSEntry> Entries, in write()
2754 JSONWriter(OS).write(Mappings, UseExternalNames, IsCaseSensitive, in write()