We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e26ba4c + a5c7ab1 commit f4436f4Copy full SHA for f4436f4
lib/AST/ASTScopeCreation.cpp
@@ -209,6 +209,8 @@ void ASTScope::
209
}
210
211
void ASTScope::expandFunctionBody(AbstractFunctionDecl *AFD) {
212
+ // There is no source file associated with C++ decl contexts, so there will
213
+ // be no parent source file if AFD is a C++ function.
214
if (auto *const SF = AFD->getParentSourceFile())
215
SF->getScope().expandFunctionBodyImpl(AFD);
216
0 commit comments