Skip to content

Commit 60f24aa

Browse files
committed
template is apparently not needed here
1 parent b2dade1 commit 60f24aa

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

clang/lib/AST/DynamicRecursiveASTVisitor.cpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -280,17 +280,16 @@ template <bool Const> void DynamicRecursiveASTVisitorBase<Const>::anchor() {}
280280
template <bool Const> \
281281
bool DynamicRecursiveASTVisitorBase<Const>::Function( \
282282
MaybeConst<Type> RefOrPointer Param) { \
283-
return Impl<Const>(*this) \
284-
.template RecursiveASTVisitor<Impl<Const>>::Function( \
285-
const_cast<Type RefOrPointer>(Param)); \
283+
return Impl<Const>(*this).RecursiveASTVisitor<Impl<Const>>::Function( \
284+
const_cast<Type RefOrPointer>(Param)); \
286285
}
287286

288287
// Same as 'FORWARD_TO_BASE', but doesn't change the parameter type in any way.
289288
#define FORWARD_TO_BASE_EXACT(Function, Type) \
290289
template <bool Const> \
291290
bool DynamicRecursiveASTVisitorBase<Const>::Function(Type Param) { \
292-
return Impl<Const>(*this) \
293-
.template RecursiveASTVisitor<Impl<Const>>::Function(Param); \
291+
return Impl<Const>(*this).RecursiveASTVisitor<Impl<Const>>::Function( \
292+
Param); \
294293
}
295294

296295
FORWARD_TO_BASE(TraverseAST, ASTContext, &)
@@ -326,16 +325,15 @@ bool DynamicRecursiveASTVisitorBase<Const>::TraverseLambdaCapture(
326325
MaybeConst<LambdaExpr> *LE, const LambdaCapture *C,
327326
MaybeConst<Expr> *Init) {
328327
return Impl<Const>(*this)
329-
.template RecursiveASTVisitor<Impl<Const>>::TraverseLambdaCapture(
328+
.RecursiveASTVisitor<Impl<Const>>::TraverseLambdaCapture(
330329
const_cast<LambdaExpr *>(LE), C, const_cast<Expr *>(Init));
331330
}
332331

333332
template <bool Const>
334333
bool DynamicRecursiveASTVisitorBase<Const>::dataTraverseNode(
335334
MaybeConst<Stmt> *S) {
336-
return Impl<Const>(*this)
337-
.template RecursiveASTVisitor<Impl<Const>>::dataTraverseNode(
338-
const_cast<Stmt *>(S), nullptr);
335+
return Impl<Const>(*this).RecursiveASTVisitor<Impl<Const>>::dataTraverseNode(
336+
const_cast<Stmt *>(S), nullptr);
339337
}
340338

341339
// Declare Traverse*() for and friends all concrete Decl classes.

0 commit comments

Comments
 (0)