r199787 - clang-cl: make /Zp a Joined option (PR18503)

Hans Wennborg hans at hanshq.net
Tue Jan 21 19:23:35 PST 2014


Author: hans
Date: Tue Jan 21 21:23:35 2014
New Revision: 199787

URL: http://llvm.org/viewvc/llvm-project?rev=199787&view=rev
Log:
clang-cl: make /Zp a Joined option (PR18503)

We don't currently support this option, but we should be able to parse it.

Modified:
    cfe/trunk/include/clang/Driver/CLCompatOptions.td
    cfe/trunk/test/Driver/cl-options.c

Modified: cfe/trunk/include/clang/Driver/CLCompatOptions.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CLCompatOptions.td?rev=199787&r1=199786&r2=199787&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/CLCompatOptions.td (original)
+++ cfe/trunk/include/clang/Driver/CLCompatOptions.td Tue Jan 21 21:23:35 2014
@@ -251,5 +251,5 @@ def _SLASH_Zg : CLFlag<"Zg">;
 def _SLASH_Zi : CLFlag<"Zi">;
 def _SLASH_ZI : CLFlag<"ZI">;
 def _SLASH_Zl : CLFlag<"Zl">;
-def _SLASH_Zp : CLFlag<"Zp">;
+def _SLASH_Zp : CLJoined<"Zp">;
 def _SLASH_ZW : CLJoined<"ZW">;

Modified: cfe/trunk/test/Driver/cl-options.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-options.c?rev=199787&r1=199786&r2=199787&view=diff
==============================================================================
--- cfe/trunk/test/Driver/cl-options.c (original)
+++ cfe/trunk/test/Driver/cl-options.c Tue Jan 21 21:23:35 2014
@@ -223,6 +223,7 @@
 // RUN:     /ZI \
 // RUN:     /Zl \
 // RUN:     /Zp \
+// RUN:     /Zp1 \
 // RUN:     /ZW:nostdlib \
 // RUN:     -- %s 2>&1
 





More information about the cfe-commits mailing list