mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1728376 - Searchfox should treat pure virtual declarations as definitions. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124152
This commit is contained in:
parent
af2775eaec
commit
c872d06387
@ -1612,7 +1612,8 @@ public:
|
||||
wasTemplate = true;
|
||||
D = D2->getTemplateInstantiationPattern();
|
||||
}
|
||||
Kind = D2->isThisDeclarationADefinition() ? "def" : "decl";
|
||||
// We treat pure virtual declarations as definitions.
|
||||
Kind = (D2->isThisDeclarationADefinition() || D2->isPure()) ? "def" : "decl";
|
||||
PrettyKind = "function";
|
||||
PeekRange = getFunctionPeekRange(D2);
|
||||
|
||||
@ -1740,7 +1741,7 @@ public:
|
||||
}
|
||||
}
|
||||
if (FunctionDecl *D2 = dyn_cast<FunctionDecl>(D)) {
|
||||
if (D2->isThisDeclarationADefinition() &&
|
||||
if ((D2->isThisDeclarationADefinition() || D2->isPure()) &&
|
||||
// a clause at the top should have generalized and set wasTemplate so
|
||||
// it shouldn't be the case that isTemplateInstantiation() is true.
|
||||
!D2->isTemplateInstantiation() &&
|
||||
|
Loading…
Reference in New Issue
Block a user