Adjusts priority for the @p decl
| 613 | |
| 614 | /// Adjusts priority for the @p decl |
| 615 | int 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 |
no test coverage detected