Coverage Report

Created: 2025-06-13 06:45

/src/Fast-DDS/thirdparty/taocpp-pegtl/pegtl/parse.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_PARSE_HPP
5
#define TAO_PEGTL_PARSE_HPP
6
7
#include <cassert>
8
9
#include "apply_mode.hpp"
10
#include "config.hpp"
11
#include "normal.hpp"
12
#include "nothing.hpp"
13
#include "parse_error.hpp"
14
#include "rewind_mode.hpp"
15
16
#include "internal/action_input.hpp"
17
18
namespace tao
19
{
20
   namespace TAO_PEGTL_NAMESPACE
21
   {
22
      template< typename Rule,
23
                template< typename... > class Action = nothing,
24
                template< typename... > class Control = normal,
25
                apply_mode A = apply_mode::action,
26
                rewind_mode M = rewind_mode::required,
27
                typename Input,
28
                typename... States >
29
      bool parse( Input&& in, States&&... st )
30
0
      {
31
0
         return Control< Rule >::template match< A, M, Action, Control >( in, st... );
32
0
      }
Unexecuted instantiation: _ZN3tao5pegtl5parseIN8eprosima7fastdds3dds9idlparser8documentETtTpTyENS5_6actionETtTpTyENS0_6normalELNS0_10apply_modeE1ELNS0_11rewind_modeE1ERNS0_12memory_inputILNS0_13tracking_modeE0ENS0_5ascii3eol7lf_crlfENSt3__112basic_stringIcNSG_11char_traitsIcEENSG_9allocatorIcEEEEEEJRPNS5_7ContextERNSG_3mapISM_SM_NSG_4lessISM_EENSK_INSG_4pairIKSM_SM_EEEEEERNSG_6vectorINSG_10shared_ptrINS4_11DynamicDataEEENSK_IS14_EEEEEEEbOT4_DpOT5_
Unexecuted instantiation: _ZN3tao5pegtl5parseIN8eprosima7fastdds3dds12DDSSQLFilter23FilterExpressionGrammarETtTpTyENS0_7nothingETtTpTyENS0_10parse_tree8internal12make_controlINS5_6parser9ParseNodeENSB_8selectorENS0_6normalEE4typeELNS0_10apply_modeE1ELNS0_11rewind_modeE1ERNS0_12memory_inputILNS0_13tracking_modeE0ENS0_5ascii3eol7lf_crlfENSt3__112basic_stringIcNSO_11char_traitsIcEENSO_9allocatorIcEEEEEEJRNSB_22CurrentIdentifierStateERNS9_5stateISC_EEEEEbOT4_DpOT5_
Unexecuted instantiation: _ZN3tao5pegtl5parseIN8eprosima7fastdds3dds12DDSSQLFilter14LiteralGrammarETtTpTyENS0_7nothingETtTpTyENS0_10parse_tree8internal12make_controlINS5_6parser9ParseNodeENSB_8selectorENS0_6normalEE4typeELNS0_10apply_modeE1ELNS0_11rewind_modeE1ERNS0_12memory_inputILNS0_13tracking_modeE0ENS0_5ascii3eol7lf_crlfENSt3__112basic_stringIcNSO_11char_traitsIcEENSO_9allocatorIcEEEEEEJRNSB_22CurrentIdentifierStateERNS9_5stateISC_EEEEEbOT4_DpOT5_
33
34
      template< typename Rule,
35
                template< typename... > class Action = nothing,
36
                template< typename... > class Control = normal,
37
                apply_mode A = apply_mode::action,
38
                rewind_mode M = rewind_mode::required,
39
                typename Outer,
40
                typename Input,
41
                typename... States >
42
      bool parse_nested( const Outer& oi, Input&& in, States&&... st )
43
      {
44
         try {
45
            return parse< Rule, Action, Control, A, M >( in, st... );
46
         }
47
         catch( parse_error& e ) {
48
            e.positions.push_back( oi.position() );
49
            throw;
50
         }
51
      }
52
53
   }  // namespace TAO_PEGTL_NAMESPACE
54
55
}  // namespace tao
56
57
#endif