Skip to content

Commit f38fc71

Browse files
committed
format
1 parent e92dd11 commit f38fc71

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

clang/include/clang/AST/TypeLoc.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,9 +1317,7 @@ class BoundsAttributedTypeLoc
13171317
void initializeLocal(ASTContext &Context, SourceLocation Loc) {
13181318
setAttrRange({Loc, Loc});
13191319
}
1320-
void setAttrRange(SourceRange Range) {
1321-
getLocalData()->Range = Range;
1322-
}
1320+
void setAttrRange(SourceRange Range) { getLocalData()->Range = Range; }
13231321
SourceRange getAttrRange() const { return getLocalData()->Range; }
13241322

13251323
StringRef getAttrNameAsWritten(Sema &S) const;

clang/lib/Sema/SemaBoundsSafety.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,16 +263,14 @@ SourceRange BoundsAttributedTypeLoc::getAttrNameRange(Sema &S) const {
263263
}
264264

265265
static TypeSourceInfo *getTSI(const Decl *D) {
266-
if (const auto* DD = dyn_cast<DeclaratorDecl>(D)) {
266+
if (const auto *DD = dyn_cast<DeclaratorDecl>(D)) {
267267
return DD->getTypeSourceInfo();
268268
}
269269
return nullptr;
270270
}
271271

272272
struct TypeLocFinder : public ConstStmtVisitor<TypeLocFinder, TypeLoc> {
273-
TypeLoc VisitParenExpr(const ParenExpr* E) {
274-
return Visit(E->getSubExpr());
275-
}
273+
TypeLoc VisitParenExpr(const ParenExpr *E) { return Visit(E->getSubExpr()); }
276274

277275
TypeLoc VisitDeclRefExpr(const DeclRefExpr *E) {
278276
return getTSI(E->getDecl())->getTypeLoc();

0 commit comments

Comments
 (0)