mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1478097 - Follow-up to address review comments. r=me
This commit is contained in:
parent
6748ffcaed
commit
7906d74d42
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user