[clang-tools-extra] silence clang-tidy warning (llvm-qualified-auto) (PR #79617)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 26 08:48:54 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tools-extra
Author: None (Nour1248)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/79617.diff
1 Files Affected:
- (modified) clang-tools-extra/clangd/AST.cpp (+1-1)
``````````diff
diff --git a/clang-tools-extra/clangd/AST.cpp b/clang-tools-extra/clangd/AST.cpp
index 3e374cf2a89764e..1b86ea19cf28daa 100644
--- a/clang-tools-extra/clangd/AST.cpp
+++ b/clang-tools-extra/clangd/AST.cpp
@@ -973,7 +973,7 @@ resolveForwardingParameters(const FunctionDecl *D, unsigned MaxDepth) {
Parameters.drop_front(Head.size() + Pack.size());
SmallVector<const ParmVarDecl *> Result(Parameters.size());
// Fill in non-pack parameters
- auto HeadIt = std::copy(Head.begin(), Head.end(), Result.begin());
+ auto *HeadIt = std::copy(Head.begin(), Head.end(), Result.begin());
auto TailIt = std::copy(Tail.rbegin(), Tail.rend(), Result.rbegin());
// Recurse on pack parameters
size_t Depth = 0;
``````````
</details>
https://github.com/llvm/llvm-project/pull/79617
More information about the cfe-commits
mailing list