[PATCH] D56743: [llvm-rc] Support '--' for delimiting options from input paths

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 15 13:46:54 PST 2019


mstorsjo created this revision.
mstorsjo added reviewers: greened, zturner, amccarth, thakis.

This allows avoiding conflicts between paths that begin with the same chars as some llvm-rc options (which can be used with either slashes or dashes).

It turned out that handling of -- for separating options from input paths isn't a built-in feature in the Options library, but within e.g. clang it's handled manually as part of a loop that iterates over input arguments.


Repository:
  rL LLVM

https://reviews.llvm.org/D56743

Files:
  test/tools/llvm-rc/absolute.test
  test/tools/llvm-rc/codepage.test
  test/tools/llvm-rc/cpp-output.test
  test/tools/llvm-rc/flags.test
  test/tools/llvm-rc/include-paths.test
  test/tools/llvm-rc/memoryflags-stringtable.test
  test/tools/llvm-rc/memoryflags.test
  test/tools/llvm-rc/not-expr.test
  test/tools/llvm-rc/parser-expr.test
  test/tools/llvm-rc/parser.test
  test/tools/llvm-rc/tag-accelerators.test
  test/tools/llvm-rc/tag-dialog.test
  test/tools/llvm-rc/tag-escape.test
  test/tools/llvm-rc/tag-html.test
  test/tools/llvm-rc/tag-icon-cursor.test
  test/tools/llvm-rc/tag-menu.test
  test/tools/llvm-rc/tag-stringtable.test
  test/tools/llvm-rc/tag-user.test
  test/tools/llvm-rc/tag-versioninfo.test
  test/tools/llvm-rc/tokenizer.test
  test/tools/llvm-rc/versioninfo-padding.test
  tools/llvm-rc/llvm-rc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56743.181879.patch
Type: text/x-patch
Size: 12012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190115/c25d245e/attachment.bin>


More information about the llvm-commits mailing list