LCOV - code coverage report
Current view: top level - gcc/cp - mapper-client.h (source / functions) Coverage Total Hit
Test: gcc.info Lines: 71.4 % 7 5
Test Date: 2024-04-13 14:00:49 Functions: - 0 0
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: - 0 0

             Branch data     Line data    Source code
       1                 :             : /* C++ modules.  Experimental!  -*- c++ -*-
       2                 :             :    Copyright (C) 2020-2024 Free Software Foundation, Inc.
       3                 :             :    Written by Nathan Sidwell <nathan@acm.org> while at FaceBook
       4                 :             : 
       5                 :             :    This file is part of GCC.
       6                 :             : 
       7                 :             :    GCC is free software; you can redistribute it and/or modify it
       8                 :             :    under the terms of the GNU General Public License as published by
       9                 :             :    the Free Software Foundation; either version 3, or (at your option)
      10                 :             :    any later version.
      11                 :             : 
      12                 :             :    GCC is distributed in the hope that it will be useful, but
      13                 :             :    WITHOUT ANY WARRANTY; without even the implied warranty of
      14                 :             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      15                 :             :    General Public License for more details.
      16                 :             : 
      17                 :             : You should have received a copy of the GNU General Public License
      18                 :             : along with GCC; see the file COPYING3.  If not see
      19                 :             : <http://www.gnu.org/licenses/>.  */
      20                 :             : 
      21                 :             : /* Forward to the header in c++tools.  */
      22                 :             : 
      23                 :             : #ifndef MAPPER_CLIENT_H
      24                 :             : #define MAPPER_CLIENT_H 1
      25                 :             : 
      26                 :             : #include "cody.hh"
      27                 :             : 
      28                 :             : #ifndef HAVE_SIGHANDLER_T
      29                 :             : typedef void (*sighandler_t) (int);
      30                 :             : #endif
      31                 :             : 
      32                 :        3144 : class module_client : public Cody::Client
      33                 :             : {
      34                 :             :   pex_obj *pex = nullptr;
      35                 :             :   sighandler_t sigpipe = SIG_IGN;
      36                 :             :   Cody::Flags flags = Cody::Flags::None;
      37                 :             : 
      38                 :             : public:
      39                 :        3220 :   module_client (Cody::Server *s)
      40                 :        3220 :     : Client (s)
      41                 :             :   {
      42                 :             :   }
      43                 :             :   module_client (pex_obj *pex, int fd_from, int fd_to);
      44                 :             : 
      45                 :           0 :   module_client (int fd_from, int fd_to)
      46                 :           0 :     : Client (fd_from, fd_to)
      47                 :             :   {
      48                 :             :   }
      49                 :             : 
      50                 :             : public:
      51                 :        3301 :   Cody::Flags get_flags () const
      52                 :             :   {
      53                 :        3301 :     return flags;
      54                 :             :   }
      55                 :             : 
      56                 :             : public:
      57                 :             :   static module_client *open_module_client (location_t loc, const char *option,
      58                 :             :                                             class mkdeps *,
      59                 :             :                                             void (*set_repo) (const char *),
      60                 :             :                                             char const *);
      61                 :             :   static void close_module_client (location_t loc, module_client *);
      62                 :             : };
      63                 :             : 
      64                 :             : #endif
        

Generated by: LCOV version 2.1-beta

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,rust,m2 --enable-host-shared. GCC test suite is run with the built compiler.