From 6422f210473604875592792773ac6a0c83f2bfa8 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Mon, 20 Oct 2025 18:17:31 -0700 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?UTF-8?q?l=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Created using spr 1.3.7 --- .../FlowSensitive/Models/UncheckedStatusOrAccessModel.h | 1 - .../FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp | 5 ----- 2 files changed, 6 deletions(-) diff --git a/clang/include/clang/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.h b/clang/include/clang/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.h index cb619fb0cb5bb..24f8b0b99870a 100644 --- a/clang/include/clang/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.h +++ b/clang/include/clang/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.h @@ -56,7 +56,6 @@ BoolValue &initializeStatusOr(RecordStorageLocation &StatusOrLoc, // N.B. if it is already initialized, the value gets reset. BoolValue &initializeStatus(RecordStorageLocation &StatusLoc, Environment &Env); -bool isRecordTypeWithName(QualType Type, llvm::StringRef TypeName); // Return true if `Type` is instantiation of `absl::StatusOr` bool isStatusOrType(QualType Type); // Return true if `Type` is `absl::Status` diff --git a/clang/lib/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp b/clang/lib/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp index 75b0959491c22..c88a4702cae07 100644 --- a/clang/lib/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp +++ b/clang/lib/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp @@ -200,11 +200,6 @@ clang::ast_matchers::TypeMatcher statusOrType() { return hasCanonicalType(qualType(hasDeclaration(statusOrClass()))); } -bool isRecordTypeWithName(QualType Type, llvm::StringRef TypeName) { - return Type->isRecordType() && - Type->getAsCXXRecordDecl()->getQualifiedNameAsString() == TypeName; -} - bool isStatusOrType(QualType Type) { return isTypeNamed(Type, {"absl"}, "StatusOr"); }