Bug 1478097 - Follow-up to address review comments. r=me

This commit is contained in:
Kartikaya Gupta 2018-07-28 04:20:14 -04:00
parent 6748ffcaed
commit 7906d74d42

View File

@ -573,7 +573,7 @@ public:
return Super::TraverseCXXMethodDecl(D);
}
bool TraverseCXXConstructorDecl(CXXConstructorDecl *D) {
AutoSetContext Asc(this, D, true);
AutoSetContext Asc(this, D, /*VisitImplicit=*/true);
const FunctionDecl *Def;
// See TraverseFunctionDecl.
if (TemplateStack && D->isDefined(Def) && Def && D != Def) {
@ -799,8 +799,7 @@ public:
}
bool shouldVisitImplicitCode() const {
AutoSetContext *Ctxt = CurDeclContext;
return Ctxt ? Ctxt->VisitImplicit : false;
return CurDeclContext && CurDeclContext->VisitImplicit;
}
bool TraverseClassTemplateDecl(ClassTemplateDecl *D) {