[PATCH] D127649: [analyzer][NFC][test] Add new RUN line with support-symbolic-integer-casts=true to expr-inspection.cpp

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 15 07:07:18 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf7a38eeccb03: [analyzer][NFC][test] Add new RUN line with support-symbolic-integer-casts=true… (authored by martong).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127649

Files:
  clang/test/Analysis/expr-inspection.cpp


Index: clang/test/Analysis/expr-inspection.cpp
===================================================================
--- clang/test/Analysis/expr-inspection.cpp
+++ clang/test/Analysis/expr-inspection.cpp
@@ -1,9 +1,17 @@
-// RUN: %clang_analyze_cc1 -x c++ -analyzer-checker=debug.ExprInspection -verify %s
+// RUN: %clang_analyze_cc1 -x c++ -analyzer-checker=debug.ExprInspection \
+// RUN:    -analyzer-config support-symbolic-integer-casts=false \
+// RUN:    -verify %s
+
+// RUN: %clang_analyze_cc1 -x c++ -analyzer-checker=debug.ExprInspection \
+// RUN:    -analyzer-config support-symbolic-integer-casts=true \
+// RUN:    -verify %s
 
 // Self-tests for the debug.ExprInspection checker.
 
-void clang_analyzer_denote(int x, const char *str);
-void clang_analyzer_express(int x);
+template <typename T>
+void clang_analyzer_denote(T x, const char *str);
+template <typename T>
+void clang_analyzer_express(T x);
 
 // Invalid declarations to test basic correctness checks.
 void clang_analyzer_denote();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127649.437147.patch
Type: text/x-patch
Size: 1011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220615/0dd8b0a5/attachment.bin>


More information about the cfe-commits mailing list