diff --git a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp --- a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp @@ -665,6 +665,11 @@ for (const Summary &S : Summaries) operator()(Name, S); } + // Add the same summary for different names. + void operator()(std::vector Names, Summary S) { + for (StringRef Name : Names) + operator()(Name, S); + } } addToFunctionSummaryMap(ACtx, FunctionSummaryMap); // We are finally ready to define specifications for all supported functions.