[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:25 PST 2024
https://github.com/Nour1248 created https://github.com/llvm/llvm-project/pull/79617
None
>From e2d4da78892a6b62ca7243ef232a4a6d8fdd9bb5 Mon Sep 17 00:00:00 2001
From: Nour Fouad <nourfouad1248 at gmail.com>
Date: Fri, 26 Jan 2024 18:45:56 +0200
Subject: [PATCH] fix clang-tidy(llvm-qualified-auto)
---
clang-tools-extra/clangd/AST.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the cfe-commits
mailing list