[clang-tools-extra] 9f63255 - Fix the mac buildbot failure.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 13 03:40:14 PST 2020
Author: Haojian Wu
Date: 2020-02-13T12:39:55+01:00
New Revision: 9f63255a742d7ec542f94e0265eac5147213d9f8
URL: https://github.com/llvm/llvm-project/commit/9f63255a742d7ec542f94e0265eac5147213d9f8
DIFF: https://github.com/llvm/llvm-project/commit/9f63255a742d7ec542f94e0265eac5147213d9f8.diff
LOG: Fix the mac buildbot failure.
Added:
Modified:
clang-tools-extra/clangd/refactor/Rename.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/refactor/Rename.cpp b/clang-tools-extra/clangd/refactor/Rename.cpp
index 59b55624e93b..8b9b1d0033a5 100644
--- a/clang-tools-extra/clangd/refactor/Rename.cpp
+++ b/clang-tools-extra/clangd/refactor/Rename.cpp
@@ -302,7 +302,8 @@ std::vector<const CXXConstructorDecl *> getConstructors(const NamedDecl *ND) {
if (const auto *RD = dyn_cast<CXXRecordDecl>(ND)) {
if (!RD->hasUserDeclaredConstructor())
return {};
- Ctors = {RD->ctors().begin(), RD->ctors().end()};
+ for (const CXXConstructorDecl *Ctor : RD->ctors())
+ Ctors.push_back(Ctor);
for (const auto *D : RD->decls()) {
if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(D))
if (const auto *Ctor =
More information about the cfe-commits
mailing list