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

Unified Diff: services/catalog/public/tools/catalog.h.tmpl

Issue 2659523002: Generate better catalog C++ sources (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/catalog/public/tools/catalog.h.tmpl
diff --git a/services/catalog/public/tools/catalog.h.tmpl b/services/catalog/public/tools/catalog.h.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..501897425e9e4104b8f2e4dd0480c66fea36dba7
--- /dev/null
+++ b/services/catalog/public/tools/catalog.h.tmpl
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This is a generated file. Please see the "catalog_cpp_source" template in
+// src/services/catalog/public/tools/catalog.gni for more details.
+{%- set header_guard = "%s_H_"|format(path)|upper|replace("/", "_")|
+ replace(".", "_")|replace("-", "_") %}
+
+#ifndef {{header_guard}}
+#define {{header_guard}}
+
+#include <memory>
+
+namespace base {
+class Value;
+}
+
+{% for namespace in namespaces %}
+namespace {{namespace}} {
+{%- endfor %}
+
+std::unique_ptr<base::Value> {{function_name}}();
+
+{% for namespace in namespaces|reverse %}
+} // namespace {{namespace}}
+{%- endfor %}
+
+#endif // {{header_guard}}
« 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