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

Function adjustPriorityForDeclaration

plugins/clang/codecompletion/context.cpp:615–622  ·  view source on GitHub ↗

Adjusts priority for the @p decl

Source from the content-addressed store, hash-verified

613
614/// Adjusts priority for the @p decl
615int adjustPriorityForDeclaration(Declaration* decl, int completionPriority)
616{
617 if(completionPriority < CCP_LocalDeclarationSimiliar || completionPriority > CCP_SuperCompletion){
618 return completionPriority;
619 }
620
621 return adjustPriorityForType(decl->abstractType(), completionPriority);
622}
623
624/**
625 * @return Whether the declaration represented by identifier @p identifier qualifies as completion result

Callers 1

completionItemsMethod · 0.85

Calls 2

adjustPriorityForTypeFunction · 0.85
abstractTypeMethod · 0.45

Tested by

no test coverage detected