summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rc
Commit message (Collapse)AuthorAgeFilesLines
...
* [llvm-rc] Add user-defined resources parsing ability. [8/8]Marek Sokolowski2017-09-294-1/+55
| | | | | | | | | | | | | This allows llvm-rc to parse user-defined resources (ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381054.aspx). These statements either import files, or put the specified raw data in the resulting resource file. Thanks to Nico Weber for his original work in this area. Differential Revision: https://reviews.llvm.org/D37033 llvm-svn: 314478
* [llvm-rc] Add integer expressions parsing ability. [7/8]Marek Sokolowski2017-09-284-4/+117
| | | | | | | | | | | | | | This allows the ints to be written as integer expressions evaluating to unsigned 16-bit/32-bit integers. All the expressions may use the following operators: + - & | ~, and parentheses. Minus token - can be also unary. There is no precedence of the operators other than the unary operators binding stronger than their binary counterparts. Differential Revision: https://reviews.llvm.org/D37022 llvm-svn: 314477
* [llvm-rc] Fix-up for r314468 (argument-dependent lookup in make_unique).Marek Sokolowski2017-09-281-4/+4
| | | | llvm-svn: 314472
* [llvm-rc] Add VERSIONINFO parsing ability. [6/8]Marek Sokolowski2017-09-284-0/+257
| | | | | | | | | | | | | This extends the set of llvm-rc parser's available resources by another one, VERSIONINFO. Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381058.aspx Thanks to Nico Weber for his original work in this area. Differential Revision: https://reviews.llvm.org/D37021 llvm-svn: 314468
* Fixing incorrectly capitalised regexps.Benjamin Kramer2017-09-071-1/+1
| | | | | | Patch by Sam Allen! llvm-svn: 312709
* [llvm-rc] Fix DIALOG(EX) parsing ability (parser, pt 5/8).Marek Sokolowski2017-08-291-1/+1
| | | | | | | | | This fixes a use-after-free bug that was noticed by a sanitizer buildbot (http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/7502). Differential Revision: https://reviews.llvm.org/D37271 llvm-svn: 312028
* [llvm-rc] Add DIALOG(EX) parsing ability (parser, pt 5/8).Marek Sokolowski2017-08-294-6/+235
| | | | | | | | | | | | | | This extends the set of resources parsed by llvm-rc by DIALOG and DIALOGEX. Additionally, three optional resource statements specific to these two resources are added: CAPTION, FONT, and STYLE. Thanks for Nico Weber for his original work in this area. Differential Revision: https://reviews.llvm.org/D36905 llvm-svn: 312009
* [llvm-rc] Add MENU parsing ability (parser, pt 4/8).Marek Sokolowski2017-08-284-0/+197
| | | | | | | | | | | | | | This extends llvm-rc parsing tool by MENU resource (msdn.microsoft.com/en-us/library/windows/desktop/aa381025(v=vs.85).aspx). As for now, MENUEX (msdn.microsoft.com/en-us/library/windows/desktop/aa381023(v=vs.85).aspx) seems unnecessary. Thanks for Nico Weber for his original work in this area. Differential Revision: https://reviews.llvm.org/D36898 llvm-svn: 311956
* [llvm-rc] Add ACCELERATORS parsing ability. (parser, pt 3/8).Marek Sokolowski2017-08-284-12/+126
| | | | | | | | | | | | | | This improves the current llvm-rc parser by the ability of parsing ACCELERATORS statement. Moreover, some small improvements to the original parsing commit were made. Thanks for Nico Weber for his original work in this area. Differential Revision: https://reviews.llvm.org/D36894 llvm-svn: 311946
* [llvm-rc] Add ICON and HTML parsing ability (parser, pt 2/8).Marek Sokolowski2017-08-284-1/+49
| | | | | | | | | | | This extends the current llvm-rc parser by ICON and HTML resources. Moreover, some tests have been slightly rewritten. Thanks for Nico Weber for his original work in this area. Differential Revision: https://reviews.llvm.org/D36891 llvm-svn: 311939
* Reapply: [llvm-rc] Add basic RC scripts parsing ability.Marek Sokolowski2017-08-186-0/+625
| | | | | | | | | | | | | | As for now, the parser supports a limited set of statements and resources. This will be extended in the following patches. Thanks to Nico Weber (thakis) for his original work in this area. This patch was originally submitted as r311175 and got reverted in r311177 because of the problems with compilation under gcc. Differential Revision: https://reviews.llvm.org/D36340 llvm-svn: 311184
* Revert "[llvm-rc] Add basic RC scripts parsing ability."Marek Sokolowski2017-08-186-623/+0
| | | | | | | | This reverts commit r311175. This failed some buildbots compilation. llvm-svn: 311177
* [llvm-rc] Add basic RC scripts parsing ability.Marek Sokolowski2017-08-186-0/+623
| | | | | | | | | | | As for now, the parser supports a limited set of statements and resources. This will be extended in the following patches. Thanks to Nico Weber (thakis) for his original work in this area. Differential Revision: https://reviews.llvm.org/D36340 llvm-svn: 311175
* Fix 'not all control paths return' warning on windows builds. NFCI.Simon Pilgrim2017-08-101-3/+1
| | | | llvm-svn: 310631
* Fixup for r310621: Hint the compilers about unreachable code.Marek Sokolowski2017-08-101-0/+4
| | | | llvm-svn: 310623
* Add .rc scripts tokenizer.Marek Sokolowski2017-08-105-2/+464
| | | | | | | | | | | | This extends the shell of llvm-rc tool with the ability of tokenization of the input files. Currently, ASCII and ASCII-compatible UTF-8 files are supported. Thanks to Nico Weber (thakis) for his original work in this area. Differential Revision: https://reviews.llvm.org/D35957 llvm-svn: 310621
* llvm-rc: Fixup for r308940. This should use LLVMSupport.NAKAMURA Takumi2017-07-251-0/+1
| | | | llvm-svn: 308941
* Add an empty shell of llvm-rc.Marek Sokolowski2017-07-254-0/+175
This starts the development on one of MS Visual Studio binutils, Resource Converter. The tool compiles resource scripts (.rc) into binary resource files (.res). The current implementation does nothing but parse the command line arguments. It is going to be extended in the future. Differential Revision: https://reviews.llvm.org/D35810 llvm-svn: 308940
OpenPOWER on IntegriCloud