/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/clang-build/tools/clang/include/clang/AST/CommentHTMLTags.inc
Line | Count | Source (jump to first uncovered line) |
1 | | /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\ |
2 | | |* *| |
3 | | |* HTML tag name matcher *| |
4 | | |* *| |
5 | | |* Automatically generated file, do not edit! *| |
6 | | |* *| |
7 | | \*===----------------------------------------------------------------------===*/ |
8 | | |
9 | 260 | bool isHTMLTagName(StringRef Name) { |
10 | 260 | switch (Name.size()) { |
11 | 260 | default: break5 ; |
12 | 260 | case 1: // 6 strings to match. |
13 | 130 | switch (Name[0]) { |
14 | 130 | default: break0 ; |
15 | 130 | case 'a': // 1 string to match. |
16 | 65 | return true; // "a" |
17 | 130 | case 'b': // 1 string to match. |
18 | 35 | return true; // "b" |
19 | 130 | case 'i': // 1 string to match. |
20 | 18 | return true; // "i" |
21 | 130 | case 'p': // 1 string to match. |
22 | 12 | return true; // "p" |
23 | 130 | case 's': // 1 string to match. |
24 | 0 | return true; // "s" |
25 | 130 | case 'u': // 1 string to match. |
26 | 0 | return true; // "u" |
27 | 0 | } |
28 | 0 | break; |
29 | 67 | case 2: // 19 strings to match. |
30 | 67 | switch (Name[0]) { |
31 | 67 | default: break0 ; |
32 | 67 | case 'b': // 1 string to match. |
33 | 23 | if (Name[1] != 'r') |
34 | 0 | break; |
35 | 23 | return true; // "br" |
36 | 23 | case 'd': // 3 strings to match. |
37 | 0 | switch (Name[1]) { |
38 | 0 | default: break; |
39 | 0 | case 'd': // 1 string to match. |
40 | 0 | return true; // "dd" |
41 | 0 | case 'l': // 1 string to match. |
42 | 0 | return true; // "dl" |
43 | 0 | case 't': // 1 string to match. |
44 | 0 | return true; // "dt" |
45 | 0 | } |
46 | 0 | break; |
47 | 36 | case 'e': // 1 string to match. |
48 | 36 | if (Name[1] != 'm') |
49 | 0 | break; |
50 | 36 | return true; // "em" |
51 | 36 | case 'h': // 7 strings to match. |
52 | 8 | switch (Name[1]) { |
53 | 8 | default: break0 ; |
54 | 8 | case '1': // 1 string to match. |
55 | 8 | return true; // "h1" |
56 | 8 | case '2': // 1 string to match. |
57 | 0 | return true; // "h2" |
58 | 8 | case '3': // 1 string to match. |
59 | 0 | return true; // "h3" |
60 | 8 | case '4': // 1 string to match. |
61 | 0 | return true; // "h4" |
62 | 8 | case '5': // 1 string to match. |
63 | 0 | return true; // "h5" |
64 | 8 | case '6': // 1 string to match. |
65 | 0 | return true; // "h6" |
66 | 8 | case 'r': // 1 string to match. |
67 | 0 | return true; // "hr" |
68 | 0 | } |
69 | 0 | break; |
70 | 0 | case 'l': // 1 string to match. |
71 | 0 | if (Name[1] != 'i') |
72 | 0 | break; |
73 | 0 | return true; // "li" |
74 | 0 | case 'o': // 1 string to match. |
75 | 0 | if (Name[1] != 'l') |
76 | 0 | break; |
77 | 0 | return true; // "ol" |
78 | 0 | case 't': // 4 strings to match. |
79 | 0 | switch (Name[1]) { |
80 | 0 | default: break; |
81 | 0 | case 'd': // 1 string to match. |
82 | 0 | return true; // "td" |
83 | 0 | case 'h': // 1 string to match. |
84 | 0 | return true; // "th" |
85 | 0 | case 'r': // 1 string to match. |
86 | 0 | return true; // "tr" |
87 | 0 | case 't': // 1 string to match. |
88 | 0 | return true; // "tt" |
89 | 0 | } |
90 | 0 | break; |
91 | 0 | case 'u': // 1 string to match. |
92 | 0 | if (Name[1] != 'l') |
93 | 0 | break; |
94 | 0 | return true; // "ul" |
95 | 0 | } |
96 | 0 | break; |
97 | 44 | case 3: // 9 strings to match. |
98 | 44 | switch (Name[0]) { |
99 | 44 | default: break2 ; |
100 | 44 | case 'b': // 1 string to match. |
101 | 0 | if (memcmp(Name.data()+1, "ig", 2) != 0) |
102 | 0 | break; |
103 | 0 | return true; // "big" |
104 | 0 | case 'c': // 1 string to match. |
105 | 0 | if (memcmp(Name.data()+1, "ol", 2) != 0) |
106 | 0 | break; |
107 | 0 | return true; // "col" |
108 | 8 | case 'd': // 2 strings to match. |
109 | 8 | switch (Name[1]) { |
110 | 8 | default: break0 ; |
111 | 8 | case 'e': // 1 string to match. |
112 | 0 | if (Name[2] != 'l') |
113 | 0 | break; |
114 | 0 | return true; // "del" |
115 | 8 | case 'i': // 1 string to match. |
116 | 8 | if (Name[2] != 'v') |
117 | 0 | break; |
118 | 8 | return true; // "div" |
119 | 0 | } |
120 | 0 | break; |
121 | 32 | case 'i': // 2 strings to match. |
122 | 32 | switch (Name[1]) { |
123 | 32 | default: break0 ; |
124 | 32 | case 'm': // 1 string to match. |
125 | 32 | if (Name[2] != 'g') |
126 | 0 | break; |
127 | 32 | return true; // "img" |
128 | 32 | case 'n': // 1 string to match. |
129 | 0 | if (Name[2] != 's') |
130 | 0 | break; |
131 | 0 | return true; // "ins" |
132 | 0 | } |
133 | 0 | break; |
134 | 2 | case 'p': // 1 string to match. |
135 | 2 | if (memcmp(Name.data()+1, "re", 2) != 0) |
136 | 0 | break; |
137 | 2 | return true; // "pre" |
138 | 2 | case 's': // 2 strings to match. |
139 | 0 | if (Name[1] != 'u') |
140 | 0 | break; |
141 | 0 | switch (Name[2]) { |
142 | 0 | default: break; |
143 | 0 | case 'b': // 1 string to match. |
144 | 0 | return true; // "sub" |
145 | 0 | case 'p': // 1 string to match. |
146 | 0 | return true; // "sup" |
147 | 0 | } |
148 | 0 | break; |
149 | 2 | } |
150 | 2 | break; |
151 | 2 | case 4: // 3 strings to match. |
152 | 0 | switch (Name[0]) { |
153 | 0 | default: break; |
154 | 0 | case 'c': // 1 string to match. |
155 | 0 | if (memcmp(Name.data()+1, "ode", 3) != 0) |
156 | 0 | break; |
157 | 0 | return true; // "code" |
158 | 0 | case 'f': // 1 string to match. |
159 | 0 | if (memcmp(Name.data()+1, "ont", 3) != 0) |
160 | 0 | break; |
161 | 0 | return true; // "font" |
162 | 0 | case 's': // 1 string to match. |
163 | 0 | if (memcmp(Name.data()+1, "pan", 3) != 0) |
164 | 0 | break; |
165 | 0 | return true; // "span" |
166 | 0 | } |
167 | 0 | break; |
168 | 6 | case 5: // 5 strings to match. |
169 | 6 | switch (Name[0]) { |
170 | 6 | default: break0 ; |
171 | 6 | case 's': // 1 string to match. |
172 | 2 | if (memcmp(Name.data()+1, "mall", 4) != 0) |
173 | 2 | break; |
174 | 0 | return true; // "small" |
175 | 4 | case 't': // 4 strings to match. |
176 | 4 | switch (Name[1]) { |
177 | 4 | default: break0 ; |
178 | 4 | case 'a': // 1 string to match. |
179 | 4 | if (memcmp(Name.data()+2, "ble", 3) != 0) |
180 | 0 | break; |
181 | 4 | return true; // "table" |
182 | 4 | case 'b': // 1 string to match. |
183 | 0 | if (memcmp(Name.data()+2, "ody", 3) != 0) |
184 | 0 | break; |
185 | 0 | return true; // "tbody" |
186 | 0 | case 'f': // 1 string to match. |
187 | 0 | if (memcmp(Name.data()+2, "oot", 3) != 0) |
188 | 0 | break; |
189 | 0 | return true; // "tfoot" |
190 | 0 | case 'h': // 1 string to match. |
191 | 0 | if (memcmp(Name.data()+2, "ead", 3) != 0) |
192 | 0 | break; |
193 | 0 | return true; // "thead" |
194 | 0 | } |
195 | 0 | break; |
196 | 2 | } |
197 | 2 | break; |
198 | 2 | case 6: // 2 strings to match. |
199 | 0 | if (memcmp(Name.data()+0, "str", 3) != 0) |
200 | 0 | break; |
201 | 0 | switch (Name[3]) { |
202 | 0 | default: break; |
203 | 0 | case 'i': // 1 string to match. |
204 | 0 | if (memcmp(Name.data()+4, "ke", 2) != 0) |
205 | 0 | break; |
206 | 0 | return true; // "strike" |
207 | 0 | case 'o': // 1 string to match. |
208 | 0 | if (memcmp(Name.data()+4, "ng", 2) != 0) |
209 | 0 | break; |
210 | 0 | return true; // "strong" |
211 | 0 | } |
212 | 0 | break; |
213 | 0 | case 7: // 1 string to match. |
214 | 0 | if (memcmp(Name.data()+0, "caption", 7) != 0) |
215 | 0 | break; |
216 | 0 | return true; // "caption" |
217 | 0 | case 8: // 1 string to match. |
218 | 0 | if (memcmp(Name.data()+0, "colgroup", 8) != 0) |
219 | 0 | break; |
220 | 0 | return true; // "colgroup" |
221 | 8 | case 10: // 1 string to match. |
222 | 8 | if (memcmp(Name.data()+0, "blockquote", 10) != 0) |
223 | 2 | break; |
224 | 6 | return true; // "blockquote" |
225 | 11 | } |
226 | 11 | return false; |
227 | 11 | } |
228 | | |