LCOV - code coverage report
Current view: top level - gcc/rust/typecheck - rust-hir-type-check-base.h (source / functions) Coverage Total Hit
Test: gcc.info Lines: 100.0 % 1 1
Test Date: 2024-03-23 14:05:01 Functions: 0.0 % 2 0
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: - 0 0

             Branch data     Line data    Source code
       1                 :             : // Copyright (C) 2020-2024 Free Software Foundation, Inc.
       2                 :             : 
       3                 :             : // This file is part of GCC.
       4                 :             : 
       5                 :             : // GCC is free software; you can redistribute it and/or modify it under
       6                 :             : // the terms of the GNU General Public License as published by the Free
       7                 :             : // Software Foundation; either version 3, or (at your option) any later
       8                 :             : // version.
       9                 :             : 
      10                 :             : // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
      11                 :             : // WARRANTY; without even the implied warranty of MERCHANTABILITY or
      12                 :             : // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
      13                 :             : // for more details.
      14                 :             : 
      15                 :             : // You should have received a copy of the GNU General Public License
      16                 :             : // along with GCC; see the file COPYING3.  If not see
      17                 :             : // <http://www.gnu.org/licenses/>.
      18                 :             : 
      19                 :             : #ifndef RUST_HIR_TYPE_CHECK_BASE
      20                 :             : #define RUST_HIR_TYPE_CHECK_BASE
      21                 :             : 
      22                 :             : #include "rust-hir-map.h"
      23                 :             : #include "rust-hir-type-check.h"
      24                 :             : #include "rust-name-resolver.h"
      25                 :             : 
      26                 :             : namespace Rust {
      27                 :             : namespace Resolver {
      28                 :             : 
      29                 :             : class TraitReference;
      30                 :             : class TypeCheckBase
      31                 :             : {
      32                 :             : public:
      33                 :      268294 :   virtual ~TypeCheckBase () {}
      34                 :             : 
      35                 :             : protected:
      36                 :             :   TypeCheckBase ();
      37                 :             : 
      38                 :             :   TraitReference *resolve_trait_path (HIR::TypePath &);
      39                 :             : 
      40                 :             :   TyTy::TypeBoundPredicate
      41                 :             :   get_predicate_from_bound (HIR::TypePath &path, HIR::Type *associated_self,
      42                 :             :                             BoundPolarity polarity
      43                 :             :                             = BoundPolarity::RegularBound);
      44                 :             : 
      45                 :             :   bool check_for_unconstrained (
      46                 :             :     const std::vector<TyTy::SubstitutionParamMapping> &params_to_constrain,
      47                 :             :     const TyTy::SubstitutionArgumentMappings &constraint_a,
      48                 :             :     const TyTy::SubstitutionArgumentMappings &constraint_b,
      49                 :             :     const TyTy::BaseType *reference);
      50                 :             : 
      51                 :             :   TyTy::BaseType *resolve_literal (const Analysis::NodeMapping &mappings,
      52                 :             :                                    HIR::Literal &literal, location_t locus);
      53                 :             : 
      54                 :             :   TyTy::ADTType::ReprOptions parse_repr_options (const AST::AttrVec &attrs,
      55                 :             :                                                  location_t locus);
      56                 :             : 
      57                 :             :   void resolve_generic_params (
      58                 :             :     const std::vector<std::unique_ptr<HIR::GenericParam> > &generic_params,
      59                 :             :     std::vector<TyTy::SubstitutionParamMapping> &substitutions);
      60                 :             : 
      61                 :             :   TyTy::TypeBoundPredicate
      62                 :             :   get_marker_predicate (Analysis::RustLangItem::ItemType item_type,
      63                 :             :                         location_t locus);
      64                 :             : 
      65                 :             :   Analysis::Mappings *mappings;
      66                 :             :   Resolver *resolver;
      67                 :             :   TypeCheckContext *context;
      68                 :             : };
      69                 :             : 
      70                 :             : } // namespace Resolver
      71                 :             : } // namespace Rust
      72                 :             : 
      73                 :             : #endif // RUST_HIR_TYPE_CHECK_BASE
        

Generated by: LCOV version 2.0-1

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.