@@ -163,12 +163,12 @@ TYPE_PARSER(sourced(construct<OmpTraitPropertyName>( //
163163 applyFunction(nameToString, Parser<Name>{})))))
164164
165165TYPE_PARSER(sourced(construct<OmpTraitScore>( //
166- "SCORE"_tok >> parenthesized(scalarIntExpr))))
166+ "SCORE"_id >> parenthesized(scalarIntExpr))))
167167
168168TYPE_PARSER(sourced(construct<OmpTraitPropertyExtension::Complex>(
169169 Parser<OmpTraitPropertyName>{},
170170 parenthesized(nonemptySeparated(
171- indirect(Parser<OmpTraitPropertyExtension>{}), ","_tok )))))
171+ indirect(Parser<OmpTraitPropertyExtension>{}), ",")))))
172172
173173TYPE_PARSER(sourced(construct<OmpTraitPropertyExtension>(
174174 construct<OmpTraitPropertyExtension>(
@@ -177,18 +177,18 @@ TYPE_PARSER(sourced(construct<OmpTraitPropertyExtension>(
177177 construct<OmpTraitPropertyExtension>(scalarExpr))))
178178
179179TYPE_PARSER(construct<OmpTraitSelectorName::Value>(
180- "ARCH" >> pure(OmpTraitSelectorName::Value::Arch) ||
181- "ATOMIC_DEFAULT_MEM_ORDER" >>
180+ "ARCH"_id >> pure(OmpTraitSelectorName::Value::Arch) ||
181+ "ATOMIC_DEFAULT_MEM_ORDER"_id >>
182182 pure(OmpTraitSelectorName::Value::Atomic_Default_Mem_Order) ||
183- "CONDITION" >> pure(OmpTraitSelectorName::Value::Condition) ||
184- "DEVICE_NUM" >> pure(OmpTraitSelectorName::Value::Device_Num) ||
185- "EXTENSION" >> pure(OmpTraitSelectorName::Value::Extension) ||
186- "ISA" >> pure(OmpTraitSelectorName::Value::Isa) ||
187- "KIND" >> pure(OmpTraitSelectorName::Value::Kind) ||
188- "REQUIRES" >> pure(OmpTraitSelectorName::Value::Requires) ||
189- "SIMD" >> pure(OmpTraitSelectorName::Value::Simd) ||
190- "UID" >> pure(OmpTraitSelectorName::Value::Uid) ||
191- "VENDOR" >> pure(OmpTraitSelectorName::Value::Vendor)))
183+ "CONDITION"_id >> pure(OmpTraitSelectorName::Value::Condition) ||
184+ "DEVICE_NUM"_id >> pure(OmpTraitSelectorName::Value::Device_Num) ||
185+ "EXTENSION"_id >> pure(OmpTraitSelectorName::Value::Extension) ||
186+ "ISA"_id >> pure(OmpTraitSelectorName::Value::Isa) ||
187+ "KIND"_id >> pure(OmpTraitSelectorName::Value::Kind) ||
188+ "REQUIRES"_id >> pure(OmpTraitSelectorName::Value::Requires) ||
189+ "SIMD"_id >> pure(OmpTraitSelectorName::Value::Simd) ||
190+ "UID"_id >> pure(OmpTraitSelectorName::Value::Uid) ||
191+ "VENDOR"_id >> pure(OmpTraitSelectorName::Value::Vendor)))
192192
193193TYPE_PARSER(sourced(construct<OmpTraitSelectorName>(
194194 // Parse predefined names first (because of SIMD).
@@ -211,14 +211,14 @@ static constexpr auto propertyListParser(PropParser... pp) {
211211 // the name parser could stop after "foo" in "(foo, bar(1))", without
212212 // allowing the next parser to give the list a try.
213213 auto listOf{[](auto parser) { //
214- return nonemptySeparated(parser, ","_tok );
214+ return nonemptySeparated(parser, ",");
215215 }};
216216
217217 using P = OmpTraitProperty;
218218 return maybe("(" >> //
219219 construct<OmpTraitSelector::Properties>(
220- maybe(Parser<OmpTraitScore>{} / ":"_tok ),
221- (attempt(listOf(sourced(construct<P>(pp))) / ")"_tok ) || ...)));
220+ maybe(Parser<OmpTraitScore>{} / ":"),
221+ (attempt(listOf(sourced(construct<P>(pp))) / ")") || ...)));
222222}
223223
224224// Parser for OmpTraitSelector
@@ -289,21 +289,22 @@ TYPE_PARSER(sourced(construct<OmpTraitSelector>(
289289 sourced(TraitSelectorParser(Parser<OmpTraitSelectorName>{})))))
290290
291291TYPE_PARSER(construct<OmpTraitSetSelectorName::Value>(
292- "CONSTRUCT" >> pure(OmpTraitSetSelectorName::Value::Construct) ||
293- "DEVICE" >> pure(OmpTraitSetSelectorName::Value::Device) ||
294- "IMPLEMENTATION" >> pure(OmpTraitSetSelectorName::Value::Implementation) ||
295- "TARGET_DEVICE" >> pure(OmpTraitSetSelectorName::Value::Target_Device) ||
296- "USER" >> pure(OmpTraitSetSelectorName::Value::User)))
292+ "CONSTRUCT"_id >> pure(OmpTraitSetSelectorName::Value::Construct) ||
293+ "DEVICE"_id >> pure(OmpTraitSetSelectorName::Value::Device) ||
294+ "IMPLEMENTATION"_id >>
295+ pure(OmpTraitSetSelectorName::Value::Implementation) ||
296+ "TARGET_DEVICE"_id >> pure(OmpTraitSetSelectorName::Value::Target_Device) ||
297+ "USER"_id >> pure(OmpTraitSetSelectorName::Value::User)))
297298
298299TYPE_PARSER(sourced(construct<OmpTraitSetSelectorName>(
299300 Parser<OmpTraitSetSelectorName::Value>{})))
300301
301302TYPE_PARSER(sourced(construct<OmpTraitSetSelector>( //
302303 Parser<OmpTraitSetSelectorName>{},
303- "=" >> braced(nonemptySeparated(Parser<OmpTraitSelector>{}, ","_tok )))))
304+ "=" >> braced(nonemptySeparated(Parser<OmpTraitSelector>{}, ",")))))
304305
305306TYPE_PARSER(sourced(construct<OmpContextSelectorSpecification>(
306- nonemptySeparated(Parser<OmpTraitSetSelector>{}, ","_tok ))))
307+ nonemptySeparated(Parser<OmpTraitSetSelector>{}, ","))))
307308
308309// Parser<OmpContextSelector> == Parser<traits::OmpContextSelectorSpecification>
309310
0 commit comments