mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-28 02:21:57 +00:00
parent
573bfc27a1
commit
f2df43055f
@ -392,8 +392,15 @@ public:
|
||||
R.Availability == CXAvailability_NotAvailable)
|
||||
continue;
|
||||
if (R.Declaration) {
|
||||
if (R.Declaration->getKind() == Decl::CXXDestructor)
|
||||
Decl::Kind K = R.Declaration->getKind();
|
||||
if (K == Decl::CXXDestructor)
|
||||
continue;
|
||||
if (K == Decl::FunctionTemplate) {
|
||||
// Ignore CXXDeductionGuide which has empty TypedText.
|
||||
auto *FD = cast<FunctionTemplateDecl>(R.Declaration);
|
||||
if (FD->getTemplatedDecl()->getKind() == Decl::CXXDeductionGuide)
|
||||
continue;
|
||||
}
|
||||
if (auto *RD = dyn_cast<RecordDecl>(R.Declaration))
|
||||
if (RD->isInjectedClassName())
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user