Change range-based for-loop to be -Wrange-loop-analysis clean.
No functionality change. llvm-svn: 234965
This commit is contained in:
parent
b58413323d
commit
a60ca8104e
|
|
@ -46,7 +46,7 @@ static std::vector<std::string> getAllConstructorUSRs(
|
||||||
const auto *RecordDecl = Decl->getDefinition();
|
const auto *RecordDecl = Decl->getDefinition();
|
||||||
|
|
||||||
// Iterate over all the constructors and add their USRs.
|
// Iterate over all the constructors and add their USRs.
|
||||||
for (const auto &CtorDecl : RecordDecl->ctors())
|
for (const auto *CtorDecl : RecordDecl->ctors())
|
||||||
USRs.push_back(getUSRForDecl(CtorDecl));
|
USRs.push_back(getUSRForDecl(CtorDecl));
|
||||||
|
|
||||||
// Ignore destructors. GetLocationsOfUSR will find the declaration of and
|
// Ignore destructors. GetLocationsOfUSR will find the declaration of and
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue