LCOV - code coverage report
Current view: top level - gcc/go/gofrontend - string-dump.h (source / functions) Hit Total Coverage
Test: gcc.info Lines: 1 1 100.0 %
Date: 2020-03-28 11:57:23 Functions: 0 0 -
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // string-dump.h -- Abstract base class for dumping strings.    -*- C++ -*-
       2                 :            : 
       3                 :            : // Copyright 2011 The Go Authors. All rights reserved.
       4                 :            : // Use of this source code is governed by a BSD-style
       5                 :            : // license that can be found in the LICENSE file.
       6                 :            : 
       7                 :            : #ifndef GO_STRING_DUMP_H
       8                 :            : #define GO_STRING_DUMP_H
       9                 :            : 
      10                 :            : // This abstract class provides an interface strings for whatever purpose.
      11                 :            : // Used for example for exporting and dumping objects.
      12                 :            : 
      13                 :      57170 : class String_dump
      14                 :            : {
      15                 :            :  public:
      16                 :            :   // Write a string. Implements the String_dump interface.
      17                 :            :   virtual void
      18                 :            :   write_string(const std::string& s) = 0;
      19                 :            : 
      20                 :            :   // Implementors should override this member, to dump a formatted c string.
      21                 :            :   virtual void
      22                 :            :   write_c_string(const char*) = 0;
      23                 :            : };
      24                 :            : 
      25                 :            : #endif  // GO_STRING_DUMP_H

Generated by: LCOV version 1.0

LCOV profile is generated on x86_64 machine using following configure options: configure --disable-bootstrap --enable-coverage=opt --enable-languages=c,c++,fortran,go,jit,lto --enable-host-shared. GCC test suite is run with the built compiler.