[llvm] [ADT] Add a missing call to a unique_function destructor after move (PR #98747)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 19 12:01:39 PDT 2024
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 22b4496e86c32127e997f3e7385ef64d2d80cc4b 132411b1d0e3cf494931306e06bbff81e1683026 --extensions cpp,h -- llvm/include/llvm/ADT/FunctionExtras.h llvm/unittests/ADT/CountCopyAndMove.cpp llvm/unittests/ADT/CountCopyAndMove.h llvm/unittests/ADT/FunctionExtrasTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/ADT/CountCopyAndMove.h b/llvm/unittests/ADT/CountCopyAndMove.h
index 9f5048cc61..c91d34bd8e 100644
--- a/llvm/unittests/ADT/CountCopyAndMove.h
+++ b/llvm/unittests/ADT/CountCopyAndMove.h
@@ -52,7 +52,8 @@ struct CountCopyAndMove {
}
static int TotalConstructions() {
- return DefaultConstructions + ValueConstructions + MoveConstructions + CopyConstructions;
+ return DefaultConstructions + ValueConstructions + MoveConstructions +
+ CopyConstructions;
}
static int TotalCopies() { return CopyConstructions + CopyAssignments; }
``````````
</details>
https://github.com/llvm/llvm-project/pull/98747
More information about the llvm-commits
mailing list