[PATCH] Driver: bifurcate extended and basic MSC versioning

Saleem Abdulrasool compnerd at compnerd.org
Mon Jun 30 22:15:33 PDT 2014


Hi rnk, aaron.ballman,

This restores the original behaviour of `-fmsc-version`.  The older option
remains as a mechanism for specifying the basic version information.  A
secondary option, `-fmsc-version-ex` permits the user to specify an extended
version to the driver.

The new version takes the value as a dot-separated value rather than the
major * 100 + minor format that `-fmsc-version` format.  This makes it easier to
specify the value as well as a more flexible manner for specifying the value.

Specifying both values is considered an error (TODO: add test case).  The driver
gives preference to the extended format, defaulting to that format unless the
old option is specified.

http://reviews.llvm.org/D4353

Files:
  include/clang/Basic/LangOptions.def
  include/clang/Driver/Options.td
  lib/Basic/Targets.cpp
  lib/Driver/Tools.cpp
  lib/Frontend/CompilerInvocation.cpp
  lib/Frontend/TextDiagnostic.cpp
  test/Driver/msc-version.c
  test/Misc/diag-format.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4353.10991.patch
Type: text/x-patch
Size: 13280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140701/86d41228/attachment.bin>


More information about the cfe-commits mailing list