]> granicus.if.org Git - llvm/commit
[llvm-rc] Add optional serialization support for DIALOG(EX) resources.
authorZachary Turner <zturner@google.com>
Fri, 6 Oct 2017 20:51:20 +0000 (20:51 +0000)
committerZachary Turner <zturner@google.com>
Fri, 6 Oct 2017 20:51:20 +0000 (20:51 +0000)
commit44bde8dadb860360985164e82a6ef9f20204d16c
tree1b7a5047b9becb75addbc55d7ad73b0957671c6a
parente14de92ad457a0db5e0cbed0fd36ff9290a75ab4
[llvm-rc] Add optional serialization support for DIALOG(EX) resources.

This is part 5 of llvm-rc serialization support.

This allows DIALOG and DIALOGEX to serialize if dialog-specific optional
statements are provided. These are (as of now): CAPTION, FONT, and
STYLE.

Notably, FONT statement can take more than two arguments when describing
DIALOGEX resources (as in
msdn.microsoft.com/en-us/library/windows/desktop/aa381013.aspx). I made
some changes to the parser to reflect this fact.

Patch by Marek Sokolowski
Differential Revision: https://reviews.llvm.org/D37864

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315104 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
test/tools/llvm-rc/Inputs/parser-correct-everything.rc
test/tools/llvm-rc/Inputs/parser-dialog-simple-font.rc [new file with mode: 0644]
test/tools/llvm-rc/Inputs/tag-dialog-bad-style.rc [new file with mode: 0644]
test/tools/llvm-rc/Inputs/tag-dialog-headers.rc [new file with mode: 0644]
test/tools/llvm-rc/parser.test
test/tools/llvm-rc/tag-dialog.test
tools/llvm-rc/ResourceFileWriter.cpp
tools/llvm-rc/ResourceFileWriter.h
tools/llvm-rc/ResourceScriptParser.cpp
tools/llvm-rc/ResourceScriptParser.h
tools/llvm-rc/ResourceScriptStmt.cpp
tools/llvm-rc/ResourceScriptStmt.h
tools/llvm-rc/ResourceVisitor.h