]> granicus.if.org Git - clang/commitdiff
clang-cl: ignore the /sdl[-] flag
authorHans Wennborg <hans@hanshq.net>
Tue, 8 Oct 2013 16:56:54 +0000 (16:56 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 8 Oct 2013 16:56:54 +0000 (16:56 +0000)
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

include/clang/Driver/CLCompatOptions.td
test/Driver/cl-options.c

index 26ca90e31abf5b4e439adc6e7a9fd90773e79e51..1d5bdb0f85011b1fdedbba74428d300a3850100d 100644 (file)
@@ -152,6 +152,8 @@ def _SLASH_nologo : CLIgnoredFlag<"nologo">;
 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">;
index e9e18582e3c2171d985de142c6ef39e29c3f68ca..16efae4e92823d5c89d96508f607fd3fc355d9f5 100644 (file)
 // (/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