]> granicus.if.org Git - clang/commitdiff
Rename -cc1 option '-warn-security-syntactic' to '-analyzer-check-security-syntactic'.
authorTed Kremenek <kremenek@apple.com>
Fri, 5 Feb 2010 01:50:36 +0000 (01:50 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 5 Feb 2010 01:50:36 +0000 (01:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95342 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/CC1Options.td
include/clang/Frontend/Analyses.def
lib/Driver/Tools.cpp
test/Analysis/security-syntax-checks-no-emit.c
test/Analysis/security-syntax-checks.m
tools/scan-build/scan-build

index 74162f09eda3a648d229d7198a2cb3f8cb3345e0..4d37c35a7654165ce221d47d683d609cb9c63a4d 100644 (file)
@@ -38,7 +38,7 @@ def analysis_CFGView : Flag<"-cfg-view">,
   HelpText<"View Control-Flow Graphs using GraphViz">;
 def analysis_DisplayLiveVariables : Flag<"-dump-live-variables">,
   HelpText<"Print results of live variable analysis">;
-def analysis_SecuritySyntacticChecks : Flag<"-warn-security-syntactic">,
+def analysis_SecuritySyntacticChecks : Flag<"-analyzer-check-security-syntactic">,
   HelpText<"Perform quick security checks that require no data flow">;
 def analysis_WarnDeadStores : Flag<"-warn-dead-stores">,
   HelpText<"Warn about stores to dead variables">;
index 8f183a7b9135dea2f2a45ca5581a339ea0637843..1e5bda3845aa5d6a5f816be7b682b1ed149b4296 100644 (file)
@@ -24,7 +24,7 @@ ANALYSIS(CFGView, "cfg-view",
 ANALYSIS(DisplayLiveVariables, "dump-live-variables",
          "Print results of live variable analysis", Code)
 
-ANALYSIS(SecuritySyntacticChecks, "warn-security-syntactic",
+ANALYSIS(SecuritySyntacticChecks, "analyzer-check-security-syntactic",
          "Perform quick security checks that require no data flow",
          Code)
 
index df8c11837e0fc79af3cecb51b7fa16c8d9ec0f7e..e21e9dcdaec775e78f2377005c724fda483789d0 100644 (file)
@@ -702,7 +702,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
     // Add default argument set.
     if (!Args.hasArg(options::OPT__analyzer_no_default_checks)) {
       CmdArgs.push_back("-warn-dead-stores");
-      CmdArgs.push_back("-warn-security-syntactic");
+      CmdArgs.push_back("-analyzer-check-security-syntactic");
       CmdArgs.push_back("-checker-cfref");
       CmdArgs.push_back("-analyzer-eagerly-assume");
       CmdArgs.push_back("-warn-objc-methodsigs");
index fbfeb1a40413f95f41701311251c6f35c70a4808..7a71235a2c791de00d91a645afc803aca40ed9c5 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple i686-pc-linux-gnu -analyze -warn-security-syntactic %s -verify
+// RUN: %clang_cc1 -triple i686-pc-linux-gnu -analyze -analyzer-check-security-syntactic %s -verify
 
 // This file complements 'security-syntax-checks.m', but tests that we omit
 // specific checks on platforms where they don't make sense.
index cfdb030746dc69e2538a4a164f84c6c769b6fba8..8dd859a4c4f3aa1f8e338fd4fafc1d115481bb70 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple i386-apple-darwin10 -analyze -warn-security-syntactic %s -verify
+// RUN: %clang_cc1 -triple i386-apple-darwin10 -analyze -analyzer-check-security-syntactic %s -verify
 
 // <rdar://problem/6336718> rule request: floating point used as loop 
 //  condition (FLP30-C, FLP-30-CPP)
index f978a888be8386180938ed7bfbcc4f74443ec773..b897e601cad6de52ed81a74ace25dce3adfea187 100755 (executable)
@@ -127,7 +127,7 @@ my %AnalysesDefaultEnabled = (
   # Do not enable the missing -dealloc check by default.
   #  '-warn-objc-missing-dealloc' => 1,
   '-warn-objc-unused-ivars' => 1,
-  '-warn-security-syntactic' => 1
+  '-analyzer-check-security-syntactic' => 1
 );
 
 ##----------------------------------------------------------------------------##