Coverage Report

Created: 2025-06-13 06:46

/src/Fast-DDS/thirdparty/taocpp-pegtl/pegtl/internal/raise.hpp
Line
Count
Source (jump to first uncovered line)
1
// Copyright (c) 2014-2020 Dr. Colin Hirsch and Daniel Frey
2
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
3
4
#ifndef TAO_PEGTL_INTERNAL_RAISE_HPP
5
#define TAO_PEGTL_INTERNAL_RAISE_HPP
6
7
#include <cstdlib>
8
#include <stdexcept>
9
#include <type_traits>
10
11
#include "../config.hpp"
12
13
#include "skip_control.hpp"
14
15
#include "../analysis/generic.hpp"
16
#include "../apply_mode.hpp"
17
#include "../rewind_mode.hpp"
18
19
namespace tao
20
{
21
   namespace TAO_PEGTL_NAMESPACE
22
   {
23
      namespace internal
24
      {
25
         template< typename T >
26
         struct raise
27
         {
28
            using analyze_t = analysis::generic< analysis::rule_type::any >;
29
30
#ifdef _MSC_VER
31
#pragma warning( push )
32
#pragma warning( disable : 4702 )
33
#endif
34
            template< apply_mode,
35
                      rewind_mode,
36
                      template< typename... >
37
                      class Action,
38
                      template< typename... >
39
                      class Control,
40
                      typename Input,
41
                      typename... States >
42
            static bool match( Input& in, States&&... st )
43
0
            {
44
0
               Control< T >::raise( static_cast< const Input& >( in ), st... );
45
0
               throw std::logic_error( "code should be unreachable: Control< T >::raise() did not throw an exception" );  // NOLINT, LCOV_EXCL_LINE
46
#ifdef _MSC_VER
47
#pragma warning( pop )
48
#endif
49
0
            }
Unexecuted instantiation: _ZN3tao5pegtl8internal5raiseIN8eprosima7fastdds3dds12DDSSQLFilter9ConditionEE5matchILNS0_10apply_modeE1ELNS0_11rewind_modeE2ETtTpTyENS0_7nothingETtTpTyENS0_10parse_tree8internal12make_controlINS6_6parser9ParseNodeENSG_8selectorENS0_6normalEE4typeENS0_12memory_inputILNS0_13tracking_modeE0ENS0_5ascii3eol7lf_crlfENSt3__112basic_stringIcNSR_11char_traitsIcEENSR_9allocatorIcEEEEEEJRNSG_22CurrentIdentifierStateERNSE_5stateISH_EEEEEbRT3_DpOT4_
Unexecuted instantiation: _ZN3tao5pegtl8internal5raiseIN8eprosima7fastdds3dds12DDSSQLFilter16FilterExpressionEE5matchILNS0_10apply_modeE1ELNS0_11rewind_modeE2ETtTpTyENS0_7nothingETtTpTyENS0_10parse_tree8internal12make_controlINS6_6parser9ParseNodeENSG_8selectorENS0_6normalEE4typeENS0_12memory_inputILNS0_13tracking_modeE0ENS0_5ascii3eol7lf_crlfENSt3__112basic_stringIcNSR_11char_traitsIcEENSR_9allocatorIcEEEEEEJRNSG_22CurrentIdentifierStateERNSE_5stateISH_EEEEEbRT3_DpOT4_
Unexecuted instantiation: _ZN3tao5pegtl8internal5raiseINS0_3eofEE5matchILNS0_10apply_modeE1ELNS0_11rewind_modeE2ETtTpTyENS0_7nothingETtTpTyENS0_10parse_tree8internal12make_controlIN8eprosima7fastdds3dds12DDSSQLFilter6parser9ParseNodeENSG_8selectorENS0_6normalEE4typeENS0_12memory_inputILNS0_13tracking_modeE0ENS0_5ascii3eol7lf_crlfENSt3__112basic_stringIcNSR_11char_traitsIcEENSR_9allocatorIcEEEEEEJRNSG_22CurrentIdentifierStateERNSA_5stateISH_EEEEEbRT3_DpOT4_
Unexecuted instantiation: _ZN3tao5pegtl8internal5raiseIN8eprosima7fastdds3dds12DDSSQLFilter7LiteralEE5matchILNS0_10apply_modeE1ELNS0_11rewind_modeE2ETtTpTyENS0_7nothingETtTpTyENS0_10parse_tree8internal12make_controlINS6_6parser9ParseNodeENSG_8selectorENS0_6normalEE4typeENS0_12memory_inputILNS0_13tracking_modeE0ENS0_5ascii3eol7lf_crlfENSt3__112basic_stringIcNSR_11char_traitsIcEENSR_9allocatorIcEEEEEEJRNSG_22CurrentIdentifierStateERNSE_5stateISH_EEEEEbRT3_DpOT4_
50
         };
51
52
         template< typename T >
53
         struct skip_control< raise< T > > : std::true_type
54
         {
55
         };
56
57
      }  // namespace internal
58
59
   }  // namespace TAO_PEGTL_NAMESPACE
60
61
}  // namespace tao
62
63
#endif