[clang-tools-extra] [clang-tidy] performance-unnecessary-copy-init: Add a hook... (PR #73921)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 30 02:38:13 PST 2023
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 e620035a28d5d957623aa7b4aeda35ab5130e2c9 e251c440b42fe67dee4022d08d05e96d30d6aa02 -- clang-tools-extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp clang-tools-extra/clang-tidy/performance/UnnecessaryCopyInitialization.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp b/clang-tools-extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp
index 966071e928..1ba32315af 100644
--- a/clang-tools-extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp
+++ b/clang-tools-extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp
@@ -302,7 +302,7 @@ void UnnecessaryCopyInitialization::check(
if (handleCopyFromLocalVar(*NewVar, *OldVar, *BlockStmt, *Stmt, IssueFix,
*Result.Context)) {
onWarningEmitted(*NewVar, *BlockStmt, *Result.Context);
- }
+ }
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/73921
More information about the cfe-commits
mailing list