File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -56,16 +56,16 @@ const Type *resolveDeclsToType(const std::vector<const NamedDecl *> &Decls,
56
56
// dependent one. Its associated type will then be extracted.
57
57
struct InstantiatedDeclVisitor : RecursiveASTVisitor<InstantiatedDeclVisitor> {
58
58
59
- InstantiatedDeclVisitor (NamedDecl *DependentDecl) : DependentDecl(DependentDecl) {}
59
+ InstantiatedDeclVisitor (NamedDecl *DependentDecl)
60
+ : DependentDecl(DependentDecl) {}
60
61
61
62
bool shouldVisitTemplateInstantiations () const { return true ; }
62
63
63
64
bool shouldVisitLambdaBody () const { return true ; }
64
65
65
66
bool shouldVisitImplicitCode () const { return true ; }
66
67
67
- template <typename D>
68
- bool onDeclVisited (D *MaybeInstantiated) {
68
+ template <typename D> bool onDeclVisited (D *MaybeInstantiated) {
69
69
if (MaybeInstantiated->getDeclContext ()->isDependentContext ())
70
70
return true ;
71
71
auto *Dependent = dyn_cast<D>(DependentDecl);
@@ -82,13 +82,9 @@ struct InstantiatedDeclVisitor : RecursiveASTVisitor<InstantiatedDeclVisitor> {
82
82
return false ;
83
83
}
84
84
85
- bool VisitFieldDecl (FieldDecl *FD) {
86
- return onDeclVisited (FD);
87
- }
85
+ bool VisitFieldDecl (FieldDecl *FD) { return onDeclVisited (FD); }
88
86
89
- bool VisitVarDecl (VarDecl *VD) {
90
- return onDeclVisited (VD);
91
- }
87
+ bool VisitVarDecl (VarDecl *VD) { return onDeclVisited (VD); }
92
88
93
89
NamedDecl *DependentDecl;
94
90
QualType DeducedType;
You can’t perform that action at this time.
0 commit comments