This is an archive of the discontinued LLVM Phabricator instance.

[llvm-rc] Add support for the optional CLASS statement for dialogs
ClosedPublic

Authored by mstorsjo on May 15 2018, 6:20 AM.

Diff Detail

Event Timeline

mstorsjo created this revision.May 15 2018, 6:20 AM
amccarth added inline comments.May 15 2018, 8:57 AM
tools/llvm-rc/ResourceScriptParser.cpp
788

The documentation is ambiguous and it's been a while since I've done this. The class can be a string, but it can also be an unsigned integer. Are those both parsed as quoted strings? Are you choosing to just handle the string case for now?

mstorsjo added inline comments.May 15 2018, 10:15 AM
tools/llvm-rc/ResourceScriptParser.cpp
788

You're right, this should probably be an IntOrString, will update.

mstorsjo updated this revision to Diff 146885.May 15 2018, 11:17 AM

Changed String into IntOrString and changed the test to exercise both value types.

amccarth accepted this revision.May 15 2018, 11:22 AM
This revision is now accepted and ready to land.May 15 2018, 11:22 AM
This revision was automatically updated to reflect the committed changes.