Skip to content

Commit 5997ebd

Browse files
authored
[analyzer][NFC] Use ArrayRef for input parameters (#93203)
Fixes #79684
1 parent e697943 commit 5997ebd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ class StdLibraryFunctionsChecker
672672
StringRef getNote() const { return Note; }
673673
};
674674

675-
using ArgTypes = std::vector<std::optional<QualType>>;
675+
using ArgTypes = ArrayRef<std::optional<QualType>>;
676676
using RetType = std::optional<QualType>;
677677

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

0 commit comments

Comments
 (0)