summaryrefslogtreecommitdiffstats
path: root/toolkit/components/glean/build_scripts/glean_parser_ext/templates/cpp_pings.jinja2
blob: f877cb96851e21e37ce1c185d07029fe82b6a981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// -*- mode: C++ -*-

// AUTOGENERATED BY glean_parser.  DO NOT EDIT.
{# The rendered source is autogenerated, but this
Jinja2 template is not. Please file bugs! #}

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef mozilla_glean_Pings_h
#define mozilla_glean_Pings_h

#include "mozilla/glean/bindings/Ping.h"

namespace mozilla::glean_pings {

{% for obj in all_objs['pings'].values() %}
/*
 * Generated from {{ obj.name }}.
 *
 * {{ obj.description|wordwrap() | replace('\n', '\n * ') }}
 */
constexpr glean::impl::Ping {{ obj.name|Camelize }}({{ obj.name|ping_id }});

{% endfor %}

}  // namespace mozilla::glean_pings

#endif  // mozilla_glean_Pings_h