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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang
            
<details>
<summary>Changes</summary>
Otherwise, the test doesn't actually do anything.

--
Full diff: https://github.com/llvm/llvm-project/pull/66195.diff

1 Files Affected:

- (modified) clang/unittests/Analysis/FlowSensitive/TransferTest.cpp (+1-1) 


<pre>
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;
       }
</pre>
</details>


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


More information about the cfe-commits mailing list