This matches what rc.exe tolerates in this type.
This fixes cases like this:
1 RT_MANIFEST BEGIN "<?xml version=""1.0""?>\n" "<assembly>\n" "</assembly>\n" END
Differential D105621
[llvm-rc] Make commas in user data structs optional mstorsjo on Jul 8 2021, 4:12 AM. Authored by
Details
This matches what rc.exe tolerates in this type. This fixes cases like this: 1 RT_MANIFEST BEGIN "<?xml version=""1.0""?>\n" "<assembly>\n" "</assembly>\n" END
Diff Detail
Event TimelineComment Actions Two small requests, then LGTM.
Comment Actions Added more cases of multiple commas in tag-user.rc, changed while(); into while() {}, added a separate standalone testcase of a full embedded manifest file without commas between the string literals. |
Could you add an extra comma between a couple tokens here? The 500/500 example has it, which is a true user-defined "resource type." This one is an RCDATA which should obey the same rules. The implementation is shared, so this should be fine, but if RCDATA is ever treated differently, we'd still want this to work.
BTW: I'm not sure splitting "data" into two strings with no comma actually exercises your change. Since RC (theoretically) works with the output from the preprocessor, I'd expect the preprocessor to concatenate those into one token. (Not a big deal.)