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

Side by Side Diff: third_party/WebKit/Source/platform/ColorData.gperf

Issue 2780623003: Enable -Wdeprecated-register (except on CrOS and 32-bit Linux). (Closed)
Patch Set: rebase Created 3 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
OLDNEW
1 %{ 1 %{
2 #include "platform/graphics/Color.h" 2 #include "platform/graphics/Color.h"
3 #include <string.h> 3 #include <string.h>
4 4
5 namespace blink { 5 namespace blink {
6
7 #if defined(__clang__)
8 #pragma clang diagnostic push
9 // TODO(thakis): Remove once we use a gperf that no longer produces "register".
10 #pragma clang diagnostic ignored "-Wdeprecated-register"
11 #endif
12
6 %} 13 %}
7 %struct-type 14 %struct-type
8 struct NamedColor; 15 struct NamedColor;
9 %omit-struct-type 16 %omit-struct-type
10 %language=C++ 17 %language=C++
11 %readonly-tables 18 %readonly-tables
12 %global-table 19 %global-table
13 %compare-strncmp 20 %compare-strncmp
14 %define class-name ColorDataHash 21 %define class-name ColorDataHash
15 %define lookup-function-name findColorImpl 22 %define lookup-function-name findColorImpl
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 transparent, 0x00000000 168 transparent, 0x00000000
162 turquoise, 0xff40e0d0 169 turquoise, 0xff40e0d0
163 violet, 0xffee82ee 170 violet, 0xffee82ee
164 violetred, 0xffd02090 171 violetred, 0xffd02090
165 wheat, 0xfff5deb3 172 wheat, 0xfff5deb3
166 white, 0xffffffff 173 white, 0xffffffff
167 whitesmoke, 0xfff5f5f5 174 whitesmoke, 0xfff5f5f5
168 yellow, 0xffffff00 175 yellow, 0xffffff00
169 yellowgreen, 0xff9acd32 176 yellowgreen, 0xff9acd32
170 %% 177 %%
171 const struct NamedColor* findColor(register const char* str, register unsigned l en) 178
172 { 179 #if defined(__clang__)
173 return ColorDataHash::findColorImpl(str, len); 180 #pragma clang diagnostic pop
181 #endif
182
183 const struct NamedColor* findColor(const char* str, unsigned len) {
184 return ColorDataHash::findColorImpl(str, len);
174 } 185 }
175 186
176 } // namespace blink 187 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_css_value_keywords.py ('k') | third_party/libaddressinput/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698