Lines Matching refs:Buffer

127 static void RenderHex(InternalScopedString *Buffer, UIntMax Val) {  in RenderHex()  argument
129 Buffer->append("0x%08x%08x%08x%08x", (unsigned int)(Val >> 96), in RenderHex()
137 static void RenderLocation(InternalScopedString *Buffer, Location Loc) { in RenderLocation() argument
142 Buffer->append("<unknown>"); in RenderLocation()
144 RenderSourceLocation(Buffer, SLoc.getFilename(), SLoc.getLine(), in RenderLocation()
150 Buffer->append("%p", Loc.getMemoryLocation()); in RenderLocation()
155 RenderSourceLocation(Buffer, Info.file, Info.line, Info.column, in RenderLocation()
159 RenderModuleLocation(Buffer, Info.module, Info.module_offset, in RenderLocation()
162 Buffer->append("%p", Info.address); in RenderLocation()
166 Buffer->append("<unknown>"); in RenderLocation()
171 static void RenderText(InternalScopedString *Buffer, const char *Message, in RenderText() argument
175 Buffer->append("%c", *Msg); in RenderText()
181 Buffer->append("%s", A.String); in RenderText()
186 Buffer->append("'%s'", A.String); in RenderText()
188 Buffer->append("'%s'", Symbolizer::GetOrInit()->Demangle(A.String)); in RenderText()
194 Buffer->append("%lld", (long long)A.SInt); in RenderText()
196 RenderHex(Buffer, A.SInt); in RenderText()
200 Buffer->append("%llu", (unsigned long long)A.UInt); in RenderText()
202 RenderHex(Buffer, A.UInt); in RenderText()
213 Buffer->append("%s", FloatBuffer); in RenderText()
217 Buffer->append("%p", A.Pointer); in RenderText()
271 InternalScopedString Buffer(1024); in PrintMemorySnippet() local
274 Buffer.append("%s%02x", (P % 8 == 0) ? " " : " ", C); in PrintMemorySnippet()
276 Buffer.append("\n"); in PrintMemorySnippet()
279 Buffer.append(Decor.Highlight()); in PrintMemorySnippet()
292 Buffer.append("%c", Pad); in PrintMemorySnippet()
293 Buffer.append("%c", Pad); in PrintMemorySnippet()
294 Buffer.append("%c", P == Loc ? '^' : Byte); in PrintMemorySnippet()
295 Buffer.append("%c", Byte); in PrintMemorySnippet()
297 Buffer.append("%s\n", Decor.EndHighlight()); in PrintMemorySnippet()
312 Buffer.append(" "); in PrintMemorySnippet()
313 RenderText(&Buffer, InRange->getText(), Args); in PrintMemorySnippet()
314 Buffer.append("\n"); in PrintMemorySnippet()
322 Printf("%s", Buffer.data()); in PrintMemorySnippet()
339 InternalScopedString Buffer(1024); in ~Diag() local
341 Buffer.append(Decor.Bold()); in ~Diag()
342 RenderLocation(&Buffer, Loc); in ~Diag()
343 Buffer.append(":"); in ~Diag()
347 Buffer.append("%s runtime error: %s%s", Decor.Warning(), Decor.EndWarning(), in ~Diag()
352 Buffer.append("%s note: %s", Decor.Note(), Decor.EndNote()); in ~Diag()
356 RenderText(&Buffer, Message, Args); in ~Diag()
358 Buffer.append("%s\n", Decor.Default()); in ~Diag()
359 Printf("%s", Buffer.data()); in ~Diag()