diff options
author | Balazs Benics <balazs.benics@sigmatechnology.se> | 2022-06-14 19:28:44 +0200 |
---|---|---|
committer | Balazs Benics <balazs.benics@sigmatechnology.se> | 2022-06-14 19:28:44 +0200 |
commit | 21ff652de9fc9fe7338a83e2e405aa6c5d824479 (patch) | |
tree | f39b04bc655c1b98e9dfd177f15c6c68a580580e /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 18a1fc8459b7fa8ca639d53e4aa5e5f5d68e8407 (diff) | |
download | llvm-21ff652de9fc9fe7338a83e2e405aa6c5d824479.zip llvm-21ff652de9fc9fe7338a83e2e405aa6c5d824479.tar.gz llvm-21ff652de9fc9fe7338a83e2e405aa6c5d824479.tar.bz2 |
[analyzer][NFC] Replace getLastArg with hasArg when applicable
Depends on D126215.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index ba06b17..5d7916a 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -903,10 +903,10 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args, #include "clang/Driver/Options.inc" #undef ANALYZER_OPTION_WITH_MARSHALLING - if (Arg *A = Args.getLastArg(OPT_analyzer_store)) + if (Args.hasArg(OPT_analyzer_store)) Diags.Report(diag::warn_analyzer_deprecated_option) << "-analyzer-store" << "clang-16"; - if (Arg *A = Args.getLastArg(OPT_analyzer_opt_analyze_nested_blocks)) + if (Args.hasArg(OPT_analyzer_opt_analyze_nested_blocks)) Diags.Report(diag::warn_analyzer_deprecated_option) << "-analyzer-opt-analyze-nested-blocks" << "clang-16"; |