MCPcopy Create free account
hub / github.com/KDE/kdevelop / filterDeclaration

Method filterDeclaration

plugins/clang/duchain/navigationwidget.cpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61{}
62
63bool IncludeNavigationContext::filterDeclaration(Declaration* decl)
64{
65 //filter out forward-declarations and macro-expansions without a range
66 //And filter out declarations with reserved identifiers
67 return !decl->qualifiedIdentifier().toString().isEmpty() && !decl->range().isEmpty()
68 && !decl->isForwardDeclaration() && !decl->identifier().isReserved();
69}
70
71ClangNavigationWidget::ClangNavigationWidget(const DeclarationPointer& declaration, KDevelop::AbstractNavigationWidget::DisplayHints hints)
72 : AbstractNavigationWidget()

Callers

nothing calls this directly

Calls 7

isReservedMethod · 0.80
isEmptyMethod · 0.45
toStringMethod · 0.45
qualifiedIdentifierMethod · 0.45
rangeMethod · 0.45
isForwardDeclarationMethod · 0.45
identifierMethod · 0.45

Tested by

no test coverage detected