Lines Matching refs:Code
238 static bool fillRanges(MemoryBuffer *Code, in fillRanges() argument
247 FileID ID = createInMemoryFile("<irrelevant>", *Code, Sources, Files, in fillRanges()
288 if (Offsets[i] >= Code->getBufferSize()) { in fillRanges()
296 if (Offsets[i] + Lengths[i] > Code->getBufferSize()) { in fillRanges()
353 const std::unique_ptr<llvm::MemoryBuffer> &Code) { in emitReplacementWarnings() argument
360 const char *StartBuf = Code->getBufferStart(); in emitReplacementWarnings()
428 std::unique_ptr<llvm::MemoryBuffer> Code = std::move(CodeOrErr.get()); in format() local
429 if (Code->getBufferSize() == 0) in format()
432 StringRef BufStr = Code->getBuffer(); in format()
446 if (fillRanges(Code.get(), Ranges)) in format()
455 getStyle(Style, AssumedFileName, FallbackStyle, Code->getBuffer(), in format()
490 Replacements Replaces = sortIncludes(*FormatStyle, Code->getBuffer(), Ranges, in format()
502 auto ChangedCode = tooling::applyAllReplacements(Code->getBuffer(), Replaces); in format()
515 return emitReplacementWarnings(Replaces, AssumedFileName, Code); in format()
528 FileID ID = createInMemoryFile(AssumedFileName, *Code, Sources, Files, in format()
560 std::unique_ptr<llvm::MemoryBuffer> Code; in dumpConfig() local
571 Code = std::move(CodeOrErr.get()); in dumpConfig()
576 FallbackStyle, Code ? Code->getBuffer() : ""); in dumpConfig()