Searched refs:Buf (Results 1 - 25 of 104) sorted by relevance

12345

/external/clang/test/CodeGen/
H A D2002-07-30-VarArgsCallFailure.c6 char Buf[10]; local
7 test(Buf, "n%%%d", tcount++);
/external/clang/unittests/Rewrite/
H A DRewriteBufferTest.cpp19 RewriteBuffer &Buf) {
25 Buf.InsertTextAfter(Offset, BeginTag);
26 Buf.InsertTextBefore(Offset+Len, EndTag);
33 RewriteBuffer Buf; local
34 Buf.Initialize(Input);
37 Buf.RemoveText(Pos, RemoveStr.size());
41 tagRange(Pos, TagStr.size(), "outer", Buf);
42 tagRange(Pos, TagStr.size(), "inner", Buf);
46 Buf.write(OS);
18 tagRange(unsigned Offset, unsigned Len, StringRef tagName, RewriteBuffer &Buf) argument
/external/llvm/unittests/Support/
H A DStreamingMemoryObject.cpp35 uint8_t Buf[32]; local
36 EXPECT_EQ((uint64_t) 16, O.readBytes(Buf, 16, 0));
38 EXPECT_EQ((uint64_t) 8, O.readBytes(Buf, 16, 16));
/external/clang/lib/Lex/
H A DScratchBuffer.cpp34 SourceLocation ScratchBuffer::getToken(const char *Buf, unsigned Len, argument
47 memcpy(CurBuffer+BytesUsed, Buf, Len);
71 llvm::MemoryBuffer &Buf = *OwnBuf; local
74 CurBuffer = const_cast<char*>(Buf.getBufferStart());
/external/llvm/unittests/MC/
H A DYAMLTest.cpp33 SmallVector<char, 32> Buf; local
34 llvm::raw_svector_ostream OS(Buf);
/external/clang/lib/Frontend/
H A DTextDiagnosticBuffer.cpp27 SmallString<100> Buf; local
28 Info.FormatDiagnostic(Buf);
33 Notes.emplace_back(Info.getLocation(), Buf.str());
36 Warnings.emplace_back(Info.getLocation(), Buf.str());
39 Remarks.emplace_back(Info.getLocation(), Buf.str());
43 Errors.emplace_back(Info.getLocation(), Buf.str());
/external/clang/tools/libclang/
H A DCIndexUSRs.cpp35 bool cxcursor::getDeclCursorUSR(const Decl *D, SmallVectorImpl<char> &Buf) { argument
36 return generateUSRForDecl(D, Buf);
96 SmallString<128> Buf(getUSRSpacePrefix());
97 llvm::raw_svector_ostream OS(Buf);
106 SmallString<128> Buf(getUSRSpacePrefix());
107 llvm::raw_svector_ostream OS(Buf);
114 SmallString<128> Buf(getUSRSpacePrefix());
115 llvm::raw_svector_ostream OS(Buf);
121 SmallString<128> Buf(getUSRSpacePrefix());
122 llvm::raw_svector_ostream OS(Buf);
[all...]
H A DBuildSystem.cpp76 llvm::SmallString<256> Buf;
77 llvm::raw_svector_ostream OS(Buf);
132 llvm::SmallString<256> Buf;
133 llvm::raw_svector_ostream OS(Buf);
/external/lzma/CPP/7zip/Common/
H A DCWrappers.h54 Byte *Buf; member in struct:CByteInBufWrap
67 Lim = Cur = Buf;
72 UInt64 GetProcessed() const { return Processed + (Cur - Buf); }
87 Byte *Buf; member in struct:CByteOutBufWrap
99 Cur = Buf;
100 Lim = Buf + Size;
104 UInt64 GetProcessed() const { return Processed + (Cur - Buf); }
H A DCWrappers.cpp140 ::MidFree(Buf);
141 Buf = 0;
146 if (Buf == 0 || size != Size)
149 Lim = Cur = Buf = (Byte *)::MidAlloc((size_t)size);
152 return (Buf != 0);
160 Processed += (Cur - Buf);
161 Res = Stream->Read(Buf, Size, &avail);
162 Cur = Buf;
163 Lim = Buf + avail;
179 CByteInBufWrap::CByteInBufWrap(): Buf(
[all...]
/external/giflib/
H A Ddgif_lib.c41 static int DGifBufferedInput(GifFileType *GifFile, GifByteType *Buf,
73 char Buf[GIF_STAMP_LEN + 1]; local
120 if (READ(GifFile, (unsigned char *)Buf, GIF_STAMP_LEN) != GIF_STAMP_LEN) {
130 Buf[GIF_STAMP_LEN] = 0;
131 if (strncmp(GIF_STAMP, Buf, GIF_VERSION_POS) != 0) {
150 Private->gif89 = (Buf[GIF_VERSION_POS] == '9');
161 char Buf[GIF_STAMP_LEN + 1]; local
197 if (READ(GifFile, (unsigned char *)Buf, GIF_STAMP_LEN) != GIF_STAMP_LEN) {
206 Buf[GIF_STAMP_LEN] = '\0';
207 if (strncmp(GIF_STAMP, Buf, GIF_VERSION_PO
240 GifByteType Buf[3]; local
301 GifByteType Buf; local
343 GifByteType Buf[3]; local
525 GifByteType Buf; local
552 GifByteType Buf; local
725 GifByteType Buf; local
1042 DGifBufferedInput(GifFileType *GifFile, GifByteType *Buf, GifByteType *NextByte) argument
[all...]
H A Degif_lib.c40 static int EGifBufferedOutput(GifFileType * GifFile, GifByteType * Buf,
272 GifByteType Buf[3]; local
322 Buf[0] = (ColorMap ? 0x80 : 0x00) | /* Yes/no global colormap */
327 Buf[0] |= 0x08;
328 Buf[1] = BackGround; /* Index into the ColorTable for background color */
329 Buf[2] = GifFile->AspectByte; /* Pixel Aspect Ratio */
330 InternalWrite(GifFile, Buf, 3);
337 Buf[0] = ColorMap->Colors[i].Red;
338 Buf[1] = ColorMap->Colors[i].Green;
339 Buf[
366 GifByteType Buf[3]; local
550 GifByteType Buf[3]; local
574 GifByteType Buf; local
596 GifByteType Buf; local
624 GifByteType Buf[3]; local
736 GifByteType Buf; local
763 GifByteType Buf; local
837 GifByteType Buf; local
1018 EGifBufferedOutput(GifFileType *GifFile, GifByteType *Buf, int c) argument
[all...]
H A Dgif_lib_private.h49 GifByteType Buf[256]; /* Compressed input is buffered here. */ member in struct:GifFilePrivateType
/external/clang/include/clang/Lex/
H A DScratchBuffer.h37 SourceLocation getToken(const char *Buf, unsigned Len, const char *&DestPtr);
/external/llvm/include/llvm/Support/
H A DMemoryObject.h41 /// @param Buf - A pointer to a buffer to be filled in. Must be non-NULL
47 virtual uint64_t readBytes(uint8_t *Buf, uint64_t Size,
/external/llvm/include/llvm/Object/
H A DBinary.h142 std::unique_ptr<MemoryBuffer> Buf; member in class:llvm::object::OwningBinary
146 OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf);
158 std::unique_ptr<MemoryBuffer> Buf)
159 : Bin(std::move(Bin)), Buf(std::move(Buf)) {}
165 : Bin(std::move(Other.Bin)), Buf(std::move(Other.Buf)) {}
170 Buf = std::move(Other.Buf);
177 return std::make_pair(std::move(Bin), std::move(Buf));
157 OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf) argument
[all...]
/external/lzma/CPP/Windows/
H A DCommonDialog.cpp26 LPTSTR Buf; member in class:NWindows::CDoubleZeroStringListA
29 CDoubleZeroStringListA(LPSTR buf, unsigned size): Buf(buf), Size(size) {}
31 void Finish() { *Buf = 0; }
39 MyStringCopy(Buf, s);
40 Buf += len;
49 LPWSTR Buf; member in class:NWindows::CDoubleZeroStringListW
52 CDoubleZeroStringListW(LPWSTR buf, unsigned size): Buf(buf), Size(size) {}
54 void Finish() { *Buf = 0; }
62 MyStringCopy(Buf, s);
63 Buf
[all...]
/external/clang/include/clang/Index/
H A DUSRGeneration.h29 bool generateUSRForDecl(const Decl *D, SmallVectorImpl<char> &Buf);
56 const SourceManager &SM, SmallVectorImpl<char> &Buf);
/external/llvm/lib/AsmParser/
H A DParser.cpp28 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F); local
29 SM.AddNewSourceBuffer(std::move(Buf), SMLoc());
73 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); local
74 SM.AddNewSourceBuffer(std::move(Buf), SMLoc());
/external/llvm/lib/Support/
H A DStreamingMemoryObject.cpp28 uint64_t readBytes(uint8_t *Buf, uint64_t Size,
49 uint64_t RawMemoryObject::readBytes(uint8_t *Buf, uint64_t Size, argument
61 memcpy(Buf, Address + FirstChar, Size);
87 uint64_t StreamingMemoryObject::readBytes(uint8_t *Buf, uint64_t Size, argument
103 memcpy(Buf, &Bytes[Address + BytesSkipped], Size);
H A DMemoryBuffer.cpp120 std::unique_ptr<MemoryBuffer> Buf = local
122 if (!Buf)
124 memcpy(const_cast<char*>(Buf->getBufferStart()), InputData.data(),
126 return Buf;
148 char *Buf = Mem + AlignedStringLen; local
149 Buf[Size] = 0; // Null terminate buffer.
151 auto *Ret = new (Mem) MemoryBufferMem(StringRef(Buf, Size), true);
369 std::unique_ptr<MemoryBuffer> Buf = local
371 if (!Buf) {
377 char *BufPtr = const_cast<char *>(Buf
[all...]
/external/llvm/tools/yaml2obj/
H A Dyaml2obj.cpp95 ErrorOr<std::unique_ptr<MemoryBuffer>> Buf = local
97 if (!Buf)
110 yaml::Input YIn(Buf.get()->getBuffer());
/external/llvm/include/llvm/MC/MCParser/
H A DAsmLexer.h45 void setBuffer(StringRef Buf, const char *ptr = nullptr);
50 size_t peekTokens(MutableArrayRef<AsmToken> Buf,
/external/llvm/lib/ProfileData/
H A DCoverageMappingReader.cpp318 for (const char *Buf = Data.data(), *End = Buf + Data.size(); Buf < End;) {
319 if (Buf + 4 * sizeof(uint32_t) > End)
321 uint32_t NRecords = endian::readNext<uint32_t, Endian, unaligned>(Buf);
322 uint32_t FilenamesSize = endian::readNext<uint32_t, Endian, unaligned>(Buf);
323 uint32_t CoverageSize = endian::readNext<uint32_t, Endian, unaligned>(Buf);
324 uint32_t Version = endian::readNext<uint32_t, Endian, unaligned>(Buf);
334 const char *FunBuf = Buf;
335 Buf
[all...]
/external/llvm/lib/Bitcode/Reader/
H A DBitReader.cpp49 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); local
58 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = parseBitcodeFile(Buf, Ctx);
76 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); local
79 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = parseBitcodeFile(Buf, Ctx);

Completed in 3316 milliseconds

12345