From: Hans Wennborg Date: Mon, 7 Oct 2019 09:30:15 +0000 (+0000) Subject: clang-cl: Ignore the new /ZH options X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad1f33d8a55052cc290a5aef16870c34a649941b;p=clang clang-cl: Ignore the new /ZH options These were added to the MS docs in https://github.com/MicrosoftDocs/cpp-docs/commit/85b9b6967e58e485251450f7451673f6fc873e88 and are supposedly available in VS 2019 16.4 (though my 2019 Preview, version 16.4.0-pre.1.0 don't seem to have them.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373887 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CLCompatOptions.td b/include/clang/Driver/CLCompatOptions.td index bb51c3aa11..50d4622009 100644 --- a/include/clang/Driver/CLCompatOptions.td +++ b/include/clang/Driver/CLCompatOptions.td @@ -401,6 +401,9 @@ def _SLASH_Zc_inline : CLIgnoredFlag<"Zc:inline">; def _SLASH_Zc_rvalueCast : CLIgnoredFlag<"Zc:rvalueCast">; def _SLASH_Zc_ternary : CLIgnoredFlag<"Zc:ternary">; def _SLASH_Zc_wchar_t : CLIgnoredFlag<"Zc:wchar_t">; +def _SLASH_ZH_MD5 : CLIgnoredFlag<"ZH:MD5">; +def _SLASH_ZH_SHA1 : CLIgnoredFlag<"ZH:SHA1">; +def _SLASH_ZH_SHA_256 : CLIgnoredFlag<"ZH:SHA_256">; def _SLASH_Zm : CLIgnoredJoined<"Zm">; def _SLASH_Zo : CLIgnoredFlag<"Zo">; def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">; diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index 68f08b0c18..d11d46253c 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -377,6 +377,9 @@ // RUN: /Zc:rvalueCast \ // RUN: /Zc:ternary \ // RUN: /Zc:wchar_t \ +// RUN: /ZH:MD5 \ +// RUN: /ZH:SHA1 \ +// RUN: /ZH:SHA_256 \ // RUN: /Zm \ // RUN: /Zo \ // RUN: /Zo- \