[clang] [analyzer][NFC] Compute callee properties once per CallDescriptionMap lookup (PR #245630)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 08:46:40 PST 2026
================
@@ -48,22 +48,43 @@ StringRef CheckerContext::getDeclDescription(const Decl *D) {
bool CheckerContext::isCLibraryFunction(const FunctionDecl *FD,
StringRef Name) {
+ unsigned BId = FD->getBuiltinID();
+ return isCLibraryFunction(FD, Name, getBuiltinName(FD, BId),
+ isPredefinedLibFunction(FD, BId),
+ isCLibraryDecl(FD));
----------------
steakhal wrote:
So we unconditionally call `getBuiltinName` even when the builtin path returns early. Maybe we could do this lazily.
https://github.com/llvm/llvm-project/pull/245630
More information about the cfe-commits
mailing list