LCOV - code coverage report
Current view: top level - include/llvm/Support - TarWriter.h (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 1 1 100.0 %
Date: 2017-09-14 15:23:50 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===-- llvm/Support/TarWriter.h - Tar archive file creator -----*- C++ -*-===//
       2             : //
       3             : //                     The LLVM Compiler Infrastructure
       4             : //
       5             : // This file is distributed under the University of Illinois Open Source
       6             : // License. See LICENSE.TXT for details.
       7             : //
       8             : //===----------------------------------------------------------------------===//
       9             : 
      10             : #ifndef LLVM_SUPPORT_TAR_WRITER_H
      11             : #define LLVM_SUPPORT_TAR_WRITER_H
      12             : 
      13             : #include "llvm/ADT/StringRef.h"
      14             : #include "llvm/Support/Error.h"
      15             : #include "llvm/Support/raw_ostream.h"
      16             : 
      17             : namespace llvm {
      18          32 : class TarWriter {
      19             : public:
      20             :   static Expected<std::unique_ptr<TarWriter>> create(StringRef OutputPath,
      21             :                                                      StringRef BaseDir);
      22             : 
      23             :   void append(StringRef Path, StringRef Data);
      24             : 
      25             : private:
      26             :   TarWriter(int FD, StringRef BaseDir);
      27             :   raw_fd_ostream OS;
      28             :   std::string BaseDir;
      29             : };
      30             : }
      31             : 
      32             : #endif

Generated by: LCOV version 1.13