Skip to content

Commit 8cb609c

Browse files
committed
clang-format
1 parent 52d3387 commit 8cb609c

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
@@ -1183,7 +1183,8 @@ static AnalysisResult analyzePathForGSLPointer(const IndirectLocalPath &Path,
11831183
// lifetimebound attribute returns a "owner" type.
11841184
if (Path.back().Kind == IndirectLocalPathEntry::LifetimeBoundCall) {
11851185
// The lifetimebound applies to the implicit object parameter of a method.
1186-
const FunctionDecl* FD = llvm::dyn_cast_or_null<FunctionDecl>(Path.back().D);
1186+
const FunctionDecl *FD =
1187+
llvm::dyn_cast_or_null<FunctionDecl>(Path.back().D);
11871188
// The lifetimebound applies to a function parameter.
11881189
if (const auto *PD = llvm::dyn_cast<ParmVarDecl>(Path.back().D))
11891190
FD = llvm::dyn_cast<FunctionDecl>(PD->getDeclContext());
@@ -1197,7 +1198,7 @@ static AnalysisResult analyzePathForGSLPointer(const IndirectLocalPath &Path,
11971198
// Check if the return type has an Owner attribute.
11981199
// e.g., const GSLOwner& func(const Foo& foo [[clang::lifetimebound]])
11991200
if (FD && FD->getReturnType()->isReferenceType() &&
1200-
isRecordWithAttr<OwnerAttr>(FD->getReturnType()->getPointeeType()))
1201+
isRecordWithAttr<OwnerAttr>(FD->getReturnType()->getPointeeType()))
12011202
return Report;
12021203

12031204
return Abandon;

0 commit comments

Comments
 (0)