Skip to content

Commit

Permalink
[analyzer][NFC] Use ArrayRef for input parameters (llvm#93203)
Browse files Browse the repository at this point in the history
  • Loading branch information
steakhal authored Jun 28, 2024
1 parent e697943 commit 5997ebd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ class StdLibraryFunctionsChecker
StringRef getNote() const { return Note; }
};

using ArgTypes = std::vector<std::optional<QualType>>;
using ArgTypes = ArrayRef<std::optional<QualType>>;
using RetType = std::optional<QualType>;

// A placeholder type, we use it whenever we do not care about the concrete
Expand Down Expand Up @@ -1746,7 +1746,7 @@ void StdLibraryFunctionsChecker::initFunctionSummaries(
}
// Add the same summary for different names with the Signature explicitly
// given.
void operator()(std::vector<StringRef> Names, Signature Sign, Summary Sum) {
void operator()(ArrayRef<StringRef> Names, Signature Sign, Summary Sum) {
for (StringRef Name : Names)
operator()(Name, Sign, Sum);
}
Expand Down

0 comments on commit 5997ebd

Please sign in to comment.