Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: services/catalog/public/tools/catalog.h.tmpl

Issue 2659523002: Generate better catalog C++ sources (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This is a generated file. Please see the "catalog_cpp_source" template in
6 // src/services/catalog/public/tools/catalog.gni for more details.
7 {%- set header_guard = "%s_H_"|format(path)|upper|replace("/", "_")|
8 replace(".", "_")|replace("-", "_") %}
9
10 #ifndef {{header_guard}}
11 #define {{header_guard}}
12
13 #include <memory>
14
15 namespace base {
16 class Value;
17 }
18
19 {% for namespace in namespaces %}
20 namespace {{namespace}} {
21 {%- endfor %}
22
23 std::unique_ptr<base::Value> {{function_name}}();
24
25 {% for namespace in namespaces|reverse %}
26 } // namespace {{namespace}}
27 {%- endfor %}
28
29 #endif // {{header_guard}}
OLDNEW
« no previous file with comments | « services/catalog/public/tools/catalog.cc.tmpl ('k') | services/catalog/public/tools/sourcify_manifest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698