Home
last modified time | relevance | path

Searched refs:getMemBuffer (Results 1 – 25 of 45) sorted by relevance

12

/external/llvm/unittests/Support/
DLineIteratorTest.cpp20 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("line 1\n" in TEST()
45 MemoryBuffer::getMemBuffer("line 1\n" in TEST()
74 MemoryBuffer::getMemBuffer("line 1\n" in TEST()
110 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n\n" in TEST()
133 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n" in TEST()
170 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer(""); in TEST()
176 Buffer = MemoryBuffer::getMemBuffer("\n\n\n"); in TEST()
180 Buffer = MemoryBuffer::getMemBuffer("# foo\n" in TEST()
186 Buffer = MemoryBuffer::getMemBuffer("\n" in TEST()
DMemoryBufferTest.cpp45 OwningBuffer MB1(MemoryBuffer::getMemBuffer(data)); in TEST_F()
49 OwningBuffer MB2(MemoryBuffer::getMemBuffer(data, "one", false)); in TEST_F()
53 OwningBuffer MB3(MemoryBuffer::getMemBuffer(data, "two", true)); in TEST_F()
173 OwningBuffer MB(MemoryBuffer::getMemBuffer(data)); in TEST_F()
DSourceMgrTest.cpp27 MemoryBuffer::getMemBuffer(Text, BufferName); in setMainBuffer()
DSpecialCaseListTest.cpp23 std::unique_ptr<MemoryBuffer> MB = MemoryBuffer::getMemBuffer(List); in makeSpecialCaseList()
DYAMLParserTest.cpp257 MemoryBuffer::getMemBuffer("[]", "buffername.yaml"); in TEST()
/external/clang/unittests/Basic/
DVirtualFileSystemTest.cpp558 FS.addFile("c:/windows/system128/foo.cpp", 0, MemoryBuffer::getMemBuffer("")); in TEST_F()
565 FS.addFile("d:/windows/foo.cpp", 0, MemoryBuffer::getMemBuffer("")); in TEST_F()
571 FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a")); in TEST_F()
572 NormalizedFS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a")); in TEST_F()
585 auto Buf = MemoryBuffer::getMemBuffer("a"); in TEST_F()
593 FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a")); in TEST_F()
594 FS.addFile("././c", 0, MemoryBuffer::getMemBuffer("c")); in TEST_F()
595 FS.addFile("./d/../d", 0, MemoryBuffer::getMemBuffer("d")); in TEST_F()
596 NormalizedFS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a")); in TEST_F()
597 NormalizedFS.addFile("././c", 0, MemoryBuffer::getMemBuffer("c")); in TEST_F()
[all …]
DSourceManagerTest.cpp76 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(source); in TEST_F()
129 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Source); in TEST_F()
188 std::unique_ptr<MemoryBuffer> HeaderBuf = MemoryBuffer::getMemBuffer(header); in TEST_F()
189 std::unique_ptr<MemoryBuffer> MainBuf = MemoryBuffer::getMemBuffer(main); in TEST_F()
287 std::unique_ptr<MemoryBuffer> HeaderBuf = MemoryBuffer::getMemBuffer(header); in TEST_F()
288 std::unique_ptr<MemoryBuffer> MainBuf = MemoryBuffer::getMemBuffer(main); in TEST_F()
/external/clang/unittests/Frontend/
DFrontendActionTest.cpp83 MemoryBuffer::getMemBuffer("int main() { float x; }").release()); in TEST()
103 MemoryBuffer::getMemBuffer("int main() { float x; }").release()); in TEST()
124 "test.cc", MemoryBuffer::getMemBuffer( in TEST()
176 MemoryBuffer::getMemBuffer("int main() { float x; }").release()); in TEST()
/external/clang/unittests/Driver/
DToolChainTest.cpp59 llvm::MemoryBuffer::getMemBuffer("\n")); in TEST()
98 llvm::MemoryBuffer::getMemBuffer("\n")); in TEST()
/external/llvm/lib/AsmParser/
DParser.cpp28 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F); in parseAssemblyInto()
73 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseConstantValue()
/external/clang/lib/Tooling/
DTooling.cpp140 llvm::MemoryBuffer::getMemBuffer( in runToolOnCodeWithArgs()
146 llvm::MemoryBuffer::getMemBuffer(FilenameWithContent.second)); in runToolOnCodeWithArgs()
258 llvm::MemoryBuffer::getMemBuffer(It.getValue()); in run()
363 llvm::MemoryBuffer::getMemBuffer(MappedFile.second)); in run()
408 llvm::MemoryBuffer::getMemBuffer(MappedFile.second)); in run()
497 llvm::MemoryBuffer::getMemBuffer( in buildASTFromCodeWithArgs()
/external/llvm/include/llvm/Support/
DMemoryBuffer.h95 getMemBuffer(StringRef InputData, StringRef BufferName = "",
99 getMemBuffer(MemoryBufferRef Ref, bool RequiresNullTerminator = true);
/external/clang/unittests/Tooling/
DToolingTest.cpp167 "test.cpp", 0, llvm::MemoryBuffer::getMemBuffer("#include <abc>\n")); in TEST()
169 llvm::MemoryBuffer::getMemBuffer("\n")); in TEST()
193 "test.cpp", 0, llvm::MemoryBuffer::getMemBuffer("#include <abc>\n")); in TEST()
195 llvm::MemoryBuffer::getMemBuffer("\n")); in TEST()
199 llvm::MemoryBuffer::getMemBuffer("\n")); in TEST()
DRewriterTestContext.h57 llvm::MemoryBuffer::getMemBuffer(Content); in createInMemoryFile()
/external/llvm/unittests/Bitcode/
DBitReaderTest.cpp59 MemoryBuffer::getMemBuffer(Mem.str(), "test", false); in getLazyModuleFromAssembly()
87 MemoryBuffer::getMemBuffer(Mem.str(), "test", false); in getStreamedModuleFromAssembly()
109 auto MemoryBuf = MemoryBuffer::getMemBuffer(Input); in TEST()
/external/clang/unittests/Lex/
DPPCallbacksTest.cpp138 llvm::MemoryBuffer::getMemBuffer("\n")); in AddFakeHeader()
160 llvm::MemoryBuffer::getMemBuffer(SourceText); in InclusionDirectiveFilenameRange()
198 llvm::MemoryBuffer::getMemBuffer(SourceText, "test.cl"); in PragmaOpenCLExtensionCall()
DPPConditionalDirectiveRecordTest.cpp92 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(source); in TEST_F()
/external/llvm/tools/llvm-dwarfdump/fuzzer/
Dllvm-dwarfdump-fuzzer.cpp24 std::unique_ptr<MemoryBuffer> Buff = MemoryBuffer::getMemBuffer( in LLVMFuzzerTestOneInput()
/external/llvm/lib/Support/
DMemoryBuffer.cpp105 MemoryBuffer::getMemBuffer(StringRef InputData, StringRef BufferName, in getMemBuffer() function in MemoryBuffer
113 MemoryBuffer::getMemBuffer(MemoryBufferRef Ref, bool RequiresNullTerminator) { in getMemBuffer() function in MemoryBuffer
114 return std::unique_ptr<MemoryBuffer>(getMemBuffer( in getMemBuffer()
/external/clang/tools/clang-fuzzer/
DClangFuzzer.cpp38 llvm::MemoryBuffer::getMemBuffer(s); in LLVMFuzzerTestOneInput()
/external/clang/unittests/CodeGen/
DBufferSourceTest.cpp74 llvm::MemoryBuffer::getMemBuffer(TestProgram), clang::SrcMgr::C_User)); in TEST()
/external/clang/lib/Index/
DSimpleFormatContext.h50 llvm::MemoryBuffer::getMemBuffer(Content)); in createInMemoryFile()
/external/clang/unittests/AST/
DExternalASTSourceTest.cpp53 "test.cc", MemoryBuffer::getMemBuffer(FileContents).release()); in testExternalASTSource()
/external/mesa3d/src/gallium/state_trackers/clover/llvm/
Dinvocation.cpp78 name, llvm::MemoryBuffer::getMemBuffer(source));
128 llvm::MemoryBuffer::getMemBuffer(source)); in compile()
/external/llvm/lib/Object/
DIRObjectFile.cpp75 std::unique_ptr<MemoryBuffer> Buffer(MemoryBuffer::getMemBuffer(InlineAsm)); in IRObjectFile()
309 MemoryBuffer::getMemBuffer(BCOrErr.get(), false)); in create()

12