Skip to content

Commit 32b47dd

Browse files
committed
clang-cl: Ignore the new /ZH options
These were added to the MS docs in MicrosoftDocs/cpp-docs@85b9b69 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.) llvm-svn: 373887
1 parent 24ec804 commit 32b47dd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

clang/include/clang/Driver/CLCompatOptions.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ def _SLASH_Zc_inline : CLIgnoredFlag<"Zc:inline">;
401401
def _SLASH_Zc_rvalueCast : CLIgnoredFlag<"Zc:rvalueCast">;
402402
def _SLASH_Zc_ternary : CLIgnoredFlag<"Zc:ternary">;
403403
def _SLASH_Zc_wchar_t : CLIgnoredFlag<"Zc:wchar_t">;
404+
def _SLASH_ZH_MD5 : CLIgnoredFlag<"ZH:MD5">;
405+
def _SLASH_ZH_SHA1 : CLIgnoredFlag<"ZH:SHA1">;
406+
def _SLASH_ZH_SHA_256 : CLIgnoredFlag<"ZH:SHA_256">;
404407
def _SLASH_Zm : CLIgnoredJoined<"Zm">;
405408
def _SLASH_Zo : CLIgnoredFlag<"Zo">;
406409
def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">;

clang/test/Driver/cl-options.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@
377377
// RUN: /Zc:rvalueCast \
378378
// RUN: /Zc:ternary \
379379
// RUN: /Zc:wchar_t \
380+
// RUN: /ZH:MD5 \
381+
// RUN: /ZH:SHA1 \
382+
// RUN: /ZH:SHA_256 \
380383
// RUN: /Zm \
381384
// RUN: /Zo \
382385
// RUN: /Zo- \

0 commit comments

Comments
 (0)