[clang] [clang][dataflow] Rename test target function to `target()`. (PR #66195)

via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 13 04:52:52 PDT 2023


https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/66195:

Otherwise, the test doesn't actually do anything.


>From 40d908d9b9019919a0196daea92606d13fe66855 Mon Sep 17 00:00:00 2001
From: Martin Braenne <mboehme at google.com>
Date: Wed, 13 Sep 2023 11:52:11 +0000
Subject: [PATCH] [clang][dataflow] Rename test target function to `target()`.

Otherwise, the test doesn't actually do anything.
---
 clang/unittests/Analysis/FlowSensitive/TransferTest.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp b/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
index 05ee5df0e95a433..0abd171f1d0b7cb 100644
--- a/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
+++ b/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
@@ -5860,7 +5860,7 @@ TEST(TransferTest, EvaluateBlockWithUnreachablePreds) {
   // is marked unreachable). Trying to get the analysis state via
   // `getEnvironment` for the subexpression still should not crash.
   std::string Code = R"(
-    int cast(int i) {
+    int target(int i) {
       if ((i < 0 && true) || false) {
         return 0;
       }



More information about the cfe-commits mailing list