[clang] [FrontEnd] Use SetVector (NFC) (PR #107743)
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 8 02:20:29 PDT 2024
================
@@ -4082,8 +4080,10 @@ std::string RewriteModernObjC::SynthesizeBlockFunc(BlockExpr *CE, int i,
// Create local declarations to avoid rewriting all closure decl ref exprs.
// First, emit a declaration for all "by ref" decls.
- for (SmallVectorImpl<ValueDecl *>::iterator I = BlockByRefDecls.begin(),
- E = BlockByRefDecls.end(); I != E; ++I) {
+ for (llvm::SmallSetVector<ValueDecl *, 8>::iterator
----------------
nikic wrote:
Use auto for iterators please.
https://github.com/llvm/llvm-project/pull/107743
More information about the cfe-commits
mailing list