From: Ted Kremenek Date: Fri, 5 Feb 2010 01:50:36 +0000 (+0000) Subject: Rename -cc1 option '-warn-security-syntactic' to '-analyzer-check-security-syntactic'. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb3f893bc58071e548c97a3d667c8ab9b0c38cfb;p=clang Rename -cc1 option '-warn-security-syntactic' to '-analyzer-check-security-syntactic'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95342 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CC1Options.td b/include/clang/Driver/CC1Options.td index 74162f09ed..4d37c35a76 100644 --- a/include/clang/Driver/CC1Options.td +++ b/include/clang/Driver/CC1Options.td @@ -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">; diff --git a/include/clang/Frontend/Analyses.def b/include/clang/Frontend/Analyses.def index 8f183a7b91..1e5bda3845 100644 --- a/include/clang/Frontend/Analyses.def +++ b/include/clang/Frontend/Analyses.def @@ -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) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index df8c11837e..e21e9dcdae 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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"); diff --git a/test/Analysis/security-syntax-checks-no-emit.c b/test/Analysis/security-syntax-checks-no-emit.c index fbfeb1a404..7a71235a2c 100644 --- a/test/Analysis/security-syntax-checks-no-emit.c +++ b/test/Analysis/security-syntax-checks-no-emit.c @@ -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. diff --git a/test/Analysis/security-syntax-checks.m b/test/Analysis/security-syntax-checks.m index cfdb030746..8dd859a4c4 100644 --- a/test/Analysis/security-syntax-checks.m +++ b/test/Analysis/security-syntax-checks.m @@ -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 // rule request: floating point used as loop // condition (FLP30-C, FLP-30-CPP) diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build index f978a888be..b897e601ca 100755 --- a/tools/scan-build/scan-build +++ b/tools/scan-build/scan-build @@ -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 ); ##----------------------------------------------------------------------------##