Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions clang/include/clang/AST/ExprCXX.h
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,7 @@ class MSPropertyRefExpr : public Expr {
}

const_child_range children() const {
auto Children = const_cast<MSPropertyRefExpr *>(this)->children();
return const_child_range(Children.begin(), Children.end());
return const_cast<MSPropertyRefExpr *>(this)->children();
}

static bool classof(const Stmt *T) {
Expand Down Expand Up @@ -1741,8 +1740,7 @@ class CXXConstructExpr : public Expr {
}

const_child_range children() const {
auto Children = const_cast<CXXConstructExpr *>(this)->children();
return const_child_range(Children.begin(), Children.end());
return const_cast<CXXConstructExpr *>(this)->children();
}
};

Expand Down
9 changes: 3 additions & 6 deletions clang/include/clang/AST/ExprObjC.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ class ObjCArrayLiteral final
}

const_child_range children() const {
auto Children = const_cast<ObjCArrayLiteral *>(this)->children();
return const_child_range(Children.begin(), Children.end());
return const_cast<ObjCArrayLiteral *>(this)->children();
}

static bool classof(const Stmt *T) {
Expand Down Expand Up @@ -394,8 +393,7 @@ class ObjCDictionaryLiteral final
}

const_child_range children() const {
auto Children = const_cast<ObjCDictionaryLiteral *>(this)->children();
return const_child_range(Children.begin(), Children.end());
return const_cast<ObjCDictionaryLiteral *>(this)->children();
}

static bool classof(const Stmt *T) {
Expand Down Expand Up @@ -790,8 +788,7 @@ class ObjCPropertyRefExpr : public Expr {
}

const_child_range children() const {
auto Children = const_cast<ObjCPropertyRefExpr *>(this)->children();
return const_child_range(Children.begin(), Children.end());
return const_cast<ObjCPropertyRefExpr *>(this)->children();
}

static bool classof(const Stmt *T) {
Expand Down
10 changes: 3 additions & 7 deletions clang/include/clang/AST/OpenACCClause.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ class OpenACCClause {

child_range children();
const_child_range children() const {
auto Children = const_cast<OpenACCClause *>(this)->children();
return const_child_range(Children.begin(), Children.end());
return const_cast<OpenACCClause *>(this)->children();
}

virtual ~OpenACCClause() = default;
Expand Down Expand Up @@ -474,8 +473,7 @@ class OpenACCSelfClause final
}

const_child_range children() const {
child_range Children = const_cast<OpenACCSelfClause *>(this)->children();
return const_child_range(Children.begin(), Children.end());
return const_cast<OpenACCSelfClause *>(this)->children();
}

static OpenACCSelfClause *Create(const ASTContext &C, SourceLocation BeginLoc,
Expand Down Expand Up @@ -523,9 +521,7 @@ class OpenACCClauseWithExprs : public OpenACCClauseWithParams {
}

const_child_range children() const {
child_range Children =
const_cast<OpenACCClauseWithExprs *>(this)->children();
return const_child_range(Children.begin(), Children.end());
return const_cast<OpenACCClauseWithExprs *>(this)->children();
}
};

Expand Down
Loading