[clang-tools-extra] 6c74d80 - [clangd] fix clang-tidy warning (llvm-qualified-auto) (#79617)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 26 11:21:11 PST 2024
Author: Nour1248
Date: 2024-01-26T14:21:07-05:00
New Revision: 6c74d8083bd97ff47cadb43cdf03da35f450389a
URL: https://github.com/llvm/llvm-project/commit/6c74d8083bd97ff47cadb43cdf03da35f450389a
DIFF: https://github.com/llvm/llvm-project/commit/6c74d8083bd97ff47cadb43cdf03da35f450389a.diff
LOG: [clangd] fix clang-tidy warning (llvm-qualified-auto) (#79617)
Added:
Modified:
clang-tools-extra/clangd/AST.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/AST.cpp b/clang-tools-extra/clangd/AST.cpp
index 3e374cf2a89764..1b86ea19cf28da 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