[PATCH] D126215: [analyzer] Deprecate `-analyzer-store region` flag

Balázs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 24 01:57:11 PDT 2022


steakhal added a comment.

@NoQ, please have a look at this.



================
Comment at: clang/test/Analysis/deprecated-flags-and-options.cpp:1-13
+// RUN: %clang_analyze_cc1 -analyzer-checker=core %s 2>&1 \
+// RUN: | FileCheck %s --check-prefixes=CHECK
+
+// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-store=region %s 2>&1 \
+// RUN: | FileCheck %s --check-prefixes=CHECK,DEPRECATED-STORE
+// DEPRECATED-STORE: warning: analyzer option '-analyzer-store' is deprecated. This flag will be removed in clang-17, and passing this option will be an error.
+
----------------
This is the new test file. All the rest of the changed test files are unimportant.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126215/new/

https://reviews.llvm.org/D126215



More information about the cfe-commits mailing list