Skip to content

Commit ce64804

Browse files
committed
clang-format
1 parent 0f4424e commit ce64804

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

clang/lib/AST/Type.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,10 @@ void DependentBitIntType::Profile(llvm::FoldingSetNodeID &ID,
386386
}
387387

388388
bool BoundsAttributedType::referencesFieldDecls() const {
389-
return llvm::any_of(dependent_decls(), [](const TypeCoupledDeclRefInfo &Info) {
390-
return isa<FieldDecl>(Info.getDecl()); });
389+
return llvm::any_of(dependent_decls(),
390+
[](const TypeCoupledDeclRefInfo &Info) {
391+
return isa<FieldDecl>(Info.getDecl());
392+
});
391393
}
392394

393395
void CountAttributedType::Profile(llvm::FoldingSetNodeID &ID,

clang/lib/Sema/SemaType.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9748,14 +9748,16 @@ QualType Sema::BuildTypeofExprType(Expr *E, TypeOfKind Kind) {
97489748
return Context.getTypeOfExprType(E, Kind);
97499749
}
97509750

9751-
static void BuildTypeCoupledDecls(Expr *E,
9752-
llvm::SmallVectorImpl<TypeCoupledDeclRefInfo> &Decls) {
9751+
static void
9752+
BuildTypeCoupledDecls(Expr *E,
9753+
llvm::SmallVectorImpl<TypeCoupledDeclRefInfo> &Decls) {
97539754
// Currently, 'counted_by' only allows direct DeclRefExpr to FieldDecl.
97549755
auto *CountDecl = cast<DeclRefExpr>(E)->getDecl();
97559756
Decls.push_back(TypeCoupledDeclRefInfo(CountDecl, /*IsDref*/ false));
97569757
}
97579758

9758-
QualType Sema::BuildCountAttributedArrayType(QualType WrappedTy, Expr *CountExpr) {
9759+
QualType Sema::BuildCountAttributedArrayType(QualType WrappedTy,
9760+
Expr *CountExpr) {
97599761
assert(WrappedTy->isIncompleteArrayType());
97609762

97619763
llvm::SmallVector<TypeCoupledDeclRefInfo, 1> Decls;

0 commit comments

Comments
 (0)