forked from OSchip/llvm-project
[MS ABI] Add support for /Zc:sizedDealloc
llvm-svn: 237344
This commit is contained in:
parent
b1846a352e
commit
02ddd7f529
|
@ -139,6 +139,12 @@ def _SLASH_wd4996 : CLFlag<"wd4996">, Alias<W_Joined>,
|
|||
AliasArgs<["no-deprecated-declarations"]>;
|
||||
def _SLASH_vd : CLJoined<"vd">, HelpText<"Control vtordisp placement">,
|
||||
Alias<vtordisp_mode_EQ>;
|
||||
def _SLASH_Zc_sizedDealloc : CLFlag<"Zc:sizedDealloc">,
|
||||
HelpText<"Enable C++14 sized global deallocation functions">,
|
||||
Alias<fsized_deallocation>;
|
||||
def _SLASH_Zc_sizedDealloc_ : CLFlag<"Zc:sizedDealloc-">,
|
||||
HelpText<"Disable C++14 sized global deallocation functions">,
|
||||
Alias<fno_sized_deallocation>;
|
||||
def _SLASH_Zc_strictStrings : CLFlag<"Zc:strictStrings">,
|
||||
HelpText<"Treat string literals as const">, Alias<W_Joined>,
|
||||
AliasArgs<["error=c++11-compat-deprecated-writable-strings"]>;
|
||||
|
|
|
@ -15,6 +15,12 @@
|
|||
// RUN: %clang_cl /c -### /Zc:trigraphs- -- %s 2>&1 | FileCheck -check-prefix=TRIGRAPHS-OFF %s
|
||||
// TRIGRAPHS-OFF: "-fno-trigraphs"
|
||||
|
||||
// RUN: %clang_cl /c -### /Zc:sizedDealloc -- %s 2>&1 | FileCheck -check-prefix=SIZED-DEALLOC-ON %s
|
||||
// SIZED-DEALLOC-ON: "-fsized-deallocation"
|
||||
|
||||
// RUN: %clang_cl /c -### /Zc:sizedDealloc- -- %s 2>&1 | FileCheck -check-prefix=SIZED-DEALLOC-OFF %s
|
||||
// SIZED-DEALLOC-OFF-NOT: "-fsized-deallocation"
|
||||
|
||||
// RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=STRICTSTRINGS-DEFAULT %s
|
||||
// STRICTSTRINGS-DEFAULT-NOT: -Werror=c++11-compat-deprecated-writable-strings
|
||||
// RUN: %clang_cl /c -### /Zc:strictStrings -- %s 2>&1 | FileCheck -check-prefix=STRICTSTRINGS-ON %s
|
||||
|
|
Loading…
Reference in New Issue