Skip to content

Conversation

@usx95
Copy link
Contributor

@usx95 usx95 commented Nov 29, 2025

No description provided.

Copy link
Contributor Author

usx95 commented Nov 29, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@usx95 usx95 mentioned this pull request Nov 29, 2025
@github-actions
Copy link

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff origin/main HEAD --extensions h,cpp -- clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp --diff_from_common_commit

⚠️
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing origin/main to the base branch/commit you want to compare against.
⚠️

View the diff from clang-format here.
diff --git a/clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h b/clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h
index eb251fa14..f2717f731 100644
--- a/clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h
+++ b/clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h
@@ -102,7 +102,7 @@ private:
   // exempting it from the check.
   llvm::DenseMap<const DeclRefExpr *, UseFact *> UseFacts;
 
-  llvm::DenseSet<const ValueDecl* > MovedDecls;
+  llvm::DenseSet<const ValueDecl *> MovedDecls;
 };
 
 } // namespace clang::lifetimes::internal

@github-actions
Copy link

🐧 Linux x64 Test Results

  • 84765 tests passed
  • 1114 tests skipped
  • 1 test failed

Failed Tests

(click on a test name to see its output)

Clang

Clang.Sema/warn-lifetime-safety-dataflow.cpp
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -fexperimental-lifetime-safety -mllvm -debug-only=LifetimeFacts -Wexperimental-lifetime-safety /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-safety-dataflow.cpp 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-safety-dataflow.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -fexperimental-lifetime-safety -mllvm -debug-only=LifetimeFacts -Wexperimental-lifetime-safety /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-safety-dataflow.cpp
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-safety-dataflow.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-safety-dataflow.cpp:155:16: error: CHECK-NEXT: is not on the line after the previous match
# | // CHECK-NEXT: Dest: {{[0-9]+}} (Expr: UnaryOperator, Type : int *)
# |                ^
# | <stdin>:169:2: note: 'next' match was here
# |  Dest: 12 (Expr: UnaryOperator, Type : int *)
# |  ^
# | <stdin>:165:13: note: previous match ended here
# |  OriginFlow: 
# |             ^
# | <stdin>:166:1: note: non-matching line after previous match is here
# |  Dest: 11 (Expr: UnaryOperator, Type : int *&)
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/warn-lifetime-safety-dataflow.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           .
# |           .
# |           .
# |         164:  Src: 7 (Decl: pp, Type : int *) 
# |         165:  OriginFlow:  
# |         166:  Dest: 11 (Expr: UnaryOperator, Type : int *&) 
# |         167:  Src: 9 (Expr: ImplicitCastExpr, Type : int **) 
# |         168:  OriginFlow:  
# |         169:  Dest: 12 (Expr: UnaryOperator, Type : int *) 
# | next:155      !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  error: match on wrong line
# |         170:  Src: 10 (Expr: ImplicitCastExpr, Type : int *) 
# |         171:  OriginFlow:  
# |         172:  Dest: 13 (Expr: ImplicitCastExpr, Type : int *) 
# |         173:  Src: 12 (Expr: UnaryOperator, Type : int *) 
# |         174:  OriginFlow:  
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the infrastructure label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants