File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -263,16 +263,14 @@ SourceRange BoundsAttributedTypeLoc::getAttrNameRange(Sema &S) const {
263263}
264264
265265static 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
272272struct 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 ();
You can’t perform that action at this time.
0 commit comments