Skip to content

Commit bd05ba6

Browse files
committed
Format
1 parent 41728d1 commit bd05ba6

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

clang-tools-extra/clangd/HeuristicResolver.cpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ const Type *resolveDeclsToType(const std::vector<const NamedDecl *> &Decls,
5656
// dependent one. Its associated type will then be extracted.
5757
struct InstantiatedDeclVisitor : RecursiveASTVisitor<InstantiatedDeclVisitor> {
5858

59-
InstantiatedDeclVisitor(NamedDecl *DependentDecl) : DependentDecl(DependentDecl) {}
59+
InstantiatedDeclVisitor(NamedDecl *DependentDecl)
60+
: DependentDecl(DependentDecl) {}
6061

6162
bool shouldVisitTemplateInstantiations() const { return true; }
6263

6364
bool shouldVisitLambdaBody() const { return true; }
6465

6566
bool shouldVisitImplicitCode() const { return true; }
6667

67-
template <typename D>
68-
bool onDeclVisited(D *MaybeInstantiated) {
68+
template <typename D> bool onDeclVisited(D *MaybeInstantiated) {
6969
if (MaybeInstantiated->getDeclContext()->isDependentContext())
7070
return true;
7171
auto *Dependent = dyn_cast<D>(DependentDecl);
@@ -82,13 +82,9 @@ struct InstantiatedDeclVisitor : RecursiveASTVisitor<InstantiatedDeclVisitor> {
8282
return false;
8383
}
8484

85-
bool VisitFieldDecl(FieldDecl *FD) {
86-
return onDeclVisited(FD);
87-
}
85+
bool VisitFieldDecl(FieldDecl *FD) { return onDeclVisited(FD); }
8886

89-
bool VisitVarDecl(VarDecl *VD) {
90-
return onDeclVisited(VD);
91-
}
87+
bool VisitVarDecl(VarDecl *VD) { return onDeclVisited(VD); }
9288

9389
NamedDecl *DependentDecl;
9490
QualType DeducedType;

0 commit comments

Comments
 (0)