Skip to content

Commit 7aa4c05

Browse files
committed
Fix formatting issue
1 parent c3aeec3 commit 7aa4c05

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/Sema/SemaTemplateInstantiateDecl.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2151,13 +2151,14 @@ Decl *TemplateDeclInstantiator::VisitFunctionDecl(
21512151
isFriend = (FunctionTemplate->getFriendObjectKind() != Decl::FOK_None);
21522152
else
21532153
isFriend = (D->getFriendObjectKind() != Decl::FOK_None);
2154+
21542155
// Friend function defined withing class template may stop being function
21552156
// definition during AST merges from different modules, in this case decl
21562157
// with function body should be used for instantiation.
21572158
if (isFriend) {
2158-
const FunctionDecl* Defn = nullptr;
2159+
const FunctionDecl *Defn = nullptr;
21592160
if (D->hasBody(Defn)) {
2160-
D = const_cast<FunctionDecl*>(Defn);
2161+
D = const_cast<FunctionDecl *>(Defn);
21612162
FunctionTemplate = Defn->getDescribedFunctionTemplate();
21622163
}
21632164
}

0 commit comments

Comments
 (0)