================
@@ -1024,10 +1105,21 @@ void Sema::ProcessAPINotes(Decl *D) {
// Global functions.
if (auto FD = dyn_cast<FunctionDecl>(D)) {
if (FD->getDeclName().isIdentifier()) {
+ std::optional<SmallVector<SmallVector<std::string, 4>, 2>>
+ ParameterSelectorCandidates =
+ getAPINotesParameterSelectorCandidates(*this, FD);
----------------
j-hui wrote:
nit: this is a good place to use `auto`:
```suggestion
auto ParameterSelectorCandidates =
getAPINotesParameterSelectorCandidates(*this, FD);
```
This way you can tweak the `SmallVector` inline size at the function
declaration without having to refactor all call sites.
https://github.com/llvm/llvm-project/pull/205307
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits