github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. 
:warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- 
clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h 
clang/include/clang/Analysis/Analyses/LifetimeSafety/Loans.h 
clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp 
clang/lib/Analysis/LifetimeSafety/Loans.cpp 
clang/test/Sema/warn-lifetime-safety.cpp 
clang/unittests/Analysis/LifetimeSafetyTest.cpp --diff_from_common_commit
``````````

:warning:
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.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp 
b/clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
index ba75bdec3..71910c962 100644
--- a/clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+++ b/clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
@@ -269,8 +269,8 @@ void FactsGenerator::handleTemporaryDtor(
   // Iterate through all loans to see if any expire.
   for (const auto *Loan : FactMgr.getLoanMgr().getLoans()) {
     if (const auto *BL = dyn_cast<PathLoan>(Loan)) {
-      // Check if the loan is for a temporary materialization and if that 
storage
-      // location is the one being destructed.
+      // Check if the loan is for a temporary materialization and if that
+      // storage location is the one being destructed.
       const AccessPath AP = BL->getAccessPath();
       const CXXBindTemporaryExpr *Path = AP.getAsCXXBindTemporaryExpr();
       if (Path == BTE)

``````````

</details>


https://github.com/llvm/llvm-project/pull/172007
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to