Home
last modified time | relevance | path

Searched refs:CodeOrErr (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/clang/tools/clang-format/
DClangFormat.cpp359 ErrorOr<std::unique_ptr<MemoryBuffer>> CodeOrErr = in format() local
362 if (std::error_code EC = CodeOrErr.getError()) { in format()
366 std::unique_ptr<llvm::MemoryBuffer> Code = std::move(CodeOrErr.get()); in format()
471 ErrorOr<std::unique_ptr<MemoryBuffer>> CodeOrErr = in dumpConfig() local
473 if (std::error_code EC = CodeOrErr.getError()) { in dumpConfig()
478 Code = std::move(CodeOrErr.get()); in dumpConfig()
/external/clang/tools/clang-format/
DClangFormat.cpp241 ErrorOr<std::unique_ptr<MemoryBuffer>> CodeOrErr = in format() local
243 if (std::error_code EC = CodeOrErr.getError()) { in format()
247 std::unique_ptr<llvm::MemoryBuffer> Code = std::move(CodeOrErr.get()); in format()
/external/llvm-project/clang/tools/clang-offload-bundler/
DClangOffloadBundler.cpp782 ErrorOr<std::unique_ptr<MemoryBuffer>> CodeOrErr = in BundleFiles() local
784 if (std::error_code EC = CodeOrErr.getError()) in BundleFiles()
786 InputBuffers.emplace_back(std::move(*CodeOrErr)); in BundleFiles()
821 ErrorOr<std::unique_ptr<MemoryBuffer>> CodeOrErr = in UnbundleFiles() local
823 if (std::error_code EC = CodeOrErr.getError()) in UnbundleFiles()
826 MemoryBuffer &Input = **CodeOrErr; in UnbundleFiles()
/external/llvm-project/clang-tools-extra/clang-include-fixer/tool/
DClangIncludeFixer.cpp278 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> CodeOrErr = in includeFixerMain() local
280 if (std::error_code EC = CodeOrErr.getError()) { in includeFixerMain()
284 Code = std::move(CodeOrErr.get()); in includeFixerMain()