In cl.exe, this flag turns some warnings into errors and adds some
codegen security checks. I don't think we intend to support this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192201
91177308-0d34-0410-b5e6-
96231b3b80d8
def _SLASH_Ob1 : CLIgnoredFlag<"Ob1">;
def _SLASH_Ob2 : CLIgnoredFlag<"Ob2">;
def _SLASH_RTC : CLIgnoredJoined<"RTC">;
+def _SLASH_sdl : CLIgnoredFlag<"sdl">;
+def _SLASH_sdl_ : CLIgnoredFlag<"sdl-">;
def _SLASH_vmg : CLIgnoredFlag<"vmg">;
def _SLASH_w : CLIgnoredJoined<"w">;
def _SLASH_Zc_forScope : CLIgnoredFlag<"Zc:forScope">;
// (/Zs is for syntax-only, /WX is for -Werror)
// RUN: %clang_cl /Zs /WX /analyze- /errorReport:foo /nologo /Ob1 /Ob2 -- %s
// RUN: %clang_cl /Zs /WX /Zc:forScope /Zc:wchar_t /w12345 /wd1234 /RTC1 /GS- -- %s
+// RUN: %clang_cl /Zs /WX /sdl /sdl- -- %s
// Ignored options and compile-only options are ignored for link jobs.
// RUN: touch %t.obj