forked from OSchip/llvm-project
parent
8985b32e76
commit
4bde6c2674
|
@ -551,10 +551,10 @@ static bool MethodsAndNestedClassesComplete(const CXXRecordDecl *RD,
|
|||
if (const CXXMethodDecl *M = dyn_cast<CXXMethodDecl>(*I))
|
||||
Complete = M->isDefined() || (M->isPure() && !isa<CXXDestructorDecl>(M));
|
||||
else if (const FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(*I))
|
||||
// If the template function is marked as late template parsed at this point,
|
||||
// it has not been instantiated and therefore we have not performed semantic
|
||||
// analysis on it yet, so we cannot know if the type can be considered
|
||||
// complete.
|
||||
// If the template function is marked as late template parsed at this
|
||||
// point, it has not been instantiated and therefore we have not
|
||||
// performed semantic analysis on it yet, so we cannot know if the type
|
||||
// can be considered complete.
|
||||
Complete = !F->getTemplatedDecl()->isLateTemplateParsed() &&
|
||||
F->getTemplatedDecl()->isDefined();
|
||||
else if (const CXXRecordDecl *R = dyn_cast<CXXRecordDecl>(*I)) {
|
||||
|
|
Loading…
Reference in New Issue