OSDN Git Service

[llvm-rc] Have the tokenizer discard single & block comments.
authorZachary Turner <zturner@google.com>
Mon, 9 Oct 2017 15:46:13 +0000 (15:46 +0000)
committerZachary Turner <zturner@google.com>
Mon, 9 Oct 2017 15:46:13 +0000 (15:46 +0000)
commited3baeed7e73e7869cbe0879d795a58c9fe30b92
tree678f768fe44c881085a74264dfff6dcbffe310f9
parentd4b67a3fb6c2369f8cd6963e543b8e212e0022d8
[llvm-rc] Have the tokenizer discard single & block comments.

This allows rc files to have comments.  Eventually we should
just use clang's c preprocessor, but that's a bit larger
effort for minimal gain, and this is straightforward.

Differential Revision: https://reviews.llvm.org/D38651

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315207 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-rc/Inputs/tokens.rc
test/tools/llvm-rc/tokenizer.test
tools/llvm-rc/ResourceScriptToken.cpp
tools/llvm-rc/ResourceScriptTokenList.h