Skip to content

Commit 79b0bea

Browse files
committed
fixup: isSpanLikeType -> checkSpanLikeType
1 parent 0a4cffc commit 79b0bea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,7 @@ static void handleRestrictAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
18391839
RestrictAttr(S.Context, AL, DeallocE, DeallocPtrIdx));
18401840
}
18411841

1842-
static bool isSpanLikeType(const QualType &Ty) {
1842+
static bool checkSpanLikeType(const QualType &Ty) {
18431843
// Check that the type is a plain record with one field being a pointer
18441844
// type and the other field being an integer. This matches the common
18451845
// implementation of std::span or sized_allocation_t in P0901R11.
@@ -1866,7 +1866,7 @@ static bool isSpanLikeType(const QualType &Ty) {
18661866

18671867
static void handleMallocSpanAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
18681868
QualType ResultType = getFunctionOrMethodResultType(D);
1869-
if (!isSpanLikeType(ResultType)) {
1869+
if (!checkSpanLikeType(ResultType)) {
18701870
S.Diag(AL.getLoc(), diag::warn_attribute_return_span_only)
18711871
<< AL << getFunctionOrMethodResultSourceRange(D);
18721872
return;

0 commit comments

Comments
 (0)