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

Side by Side Diff: Source/build/scripts/templates/MakeNames.h.tmpl

Issue 236673002: Simplify whitespace handling in build/ Jinja templates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more FIXME Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 {% from "macros.tmpl" import license -%} 1 {% from "macros.tmpl" import license %}
2 {{ license() }} 2 {{ license() }}
3 3
4 #ifndef {{namespace}}Names_h 4 #ifndef {{namespace}}Names_h
5 #define {{namespace}}Names_h 5 #define {{namespace}}Names_h
6 6 {# FIXME: add blank line #}
7 {%- if export %} 7 {% if export %}
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 {%- endif %} 9 {% endif %}
10 #include "wtf/text/AtomicString.h" 10 #include "wtf/text/AtomicString.h"
11 11
12 namespace WebCore { 12 namespace WebCore {
13 namespace {{namespace}}Names { 13 namespace {{namespace}}Names {
14 14
15 #ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS 15 #ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
16 16 {# FIXME: add blank line #}
17 {%- for entry in entries|sort %} 17 {% for entry in entries|sort %}
18 {%- if export %} 18 {% if export %}
19 {{export}} extern const WTF::AtomicString& {{entry|symbol}}; 19 {{export}} extern const WTF::AtomicString& {{entry|symbol}};
20 {%- else %} 20 {% else %}
21 extern const WTF::AtomicString {{entry|symbol}}; 21 extern const WTF::AtomicString {{entry|symbol}};
22 {%- endif %} 22 {% endif %}
23 {%- endfor %} 23 {% endfor %}
24 24
25 #endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS 25 #endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
26 26
27 {{export}} void init(); 27 {{export}} void init();
28 28
29 } // {{namespace}}Names 29 } // {{namespace}}Names
30 } // WebCore 30 } // WebCore
31 31
32 #endif 32 #endif
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/MakeNames.cpp.tmpl ('k') | Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698