[PATCH] D115386: AST: Avoid using SmallVector::set_size() in UnresolvedSet

2022-01-11 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG3110060bc721: AST: Avoid using SmallVector::set_size() in UnresolvedSet (authored by dexonsmith). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D115386/new/

[PATCH] D115386: AST: Avoid using SmallVector::set_size() in UnresolvedSet

2021-12-09 Thread David Blaikie via Phabricator via cfe-commits
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. Looks good. Comment at: clang/lib/Sema/SemaLookup.cpp:623 - Decls.set_size(N); + Decls.truncate(N); dexonsmith wrote: > Two things to confirm here.

[PATCH] D115386: AST: Avoid using SmallVector::set_size() in UnresolvedSet

2021-12-08 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added inline comments. Comment at: clang/lib/Sema/SemaLookup.cpp:623 - Decls.set_size(N); + Decls.truncate(N); Two things to confirm here. First is that the destructors are trivial. From clang/include/clang/AST/DeclAccessPair.h: ``` lang=c++ cl

[PATCH] D115386: AST: Avoid using SmallVector::set_size() in UnresolvedSet

2021-12-08 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith updated this revision to Diff 392977. dexonsmith added reviewers: Bigcheese, jansvoboda11, vsapsai. dexonsmith added a comment. Adding a couple of other possible reviewers. [no change, just retriggering bots after spurious failure] CHANGES SINCE LAST ACTION https://reviews.llvm.org

[PATCH] D115386: AST: Avoid using SmallVector::set_size() in UnresolvedSet

2021-12-08 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith created this revision. dexonsmith added a reviewer: dblaikie. dexonsmith requested review of this revision. Herald added a project: clang. Update UnresolvedSet to use (and expose) `SmallVector::truncate()` instead of `SmallVector::set_size()`. The latter is going to made private in a fu