Skip to content

Commit fc8024d

Browse files
committed
clang-format
1 parent 97144ba commit fc8024d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/Sema/CheckExprLifetime.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,8 @@ static AnalysisResult analyzePathForGSLPointer(const IndirectLocalPath &Path,
11241124
// lifetimebound attribute returns a "owner" type.
11251125
if (Path.back().Kind == IndirectLocalPathEntry::LifetimeBoundCall) {
11261126
// The lifetimebound applies to the implicit object parameter of a method.
1127-
const FunctionDecl* FD = llvm::dyn_cast_or_null<FunctionDecl>(Path.back().D);
1127+
const FunctionDecl *FD =
1128+
llvm::dyn_cast_or_null<FunctionDecl>(Path.back().D);
11281129
// The lifetimebound applies to a function parameter.
11291130
if (const auto *PD = llvm::dyn_cast<ParmVarDecl>(Path.back().D))
11301131
FD = llvm::dyn_cast<FunctionDecl>(PD->getDeclContext());
@@ -1138,7 +1139,7 @@ static AnalysisResult analyzePathForGSLPointer(const IndirectLocalPath &Path,
11381139
// Check if the return type has an Owner attribute.
11391140
// e.g., const GSLOwner& func(const Foo& foo [[clang::lifetimebound]])
11401141
if (FD && FD->getReturnType()->isReferenceType() &&
1141-
isRecordWithAttr<OwnerAttr>(FD->getReturnType()->getPointeeType()))
1142+
isRecordWithAttr<OwnerAttr>(FD->getReturnType()->getPointeeType()))
11421143
return Report;
11431144

11441145
return Abandon;

0 commit comments

Comments
 (0)