* The access policy as a string, or an empty string * if the policy is set to default * * The DUChain must be locked when calling this function **/
| 25 | * The DUChain must be locked when calling this function |
| 26 | **/ |
| 27 | QString accessPolicyName(const DeclarationPointer& declaration) |
| 28 | { |
| 29 | DUChainPointer<ClassMemberDeclaration> member = declaration.dynamicCast<ClassMemberDeclaration>(); |
| 30 | if (member) { |
| 31 | switch (member->accessPolicy()) |
| 32 | { |
| 33 | case Declaration::Private: |
| 34 | return QStringLiteral("private"); |
| 35 | case Declaration::Protected: |
| 36 | return QStringLiteral("protected"); |
| 37 | case Declaration::Public: |
| 38 | return QStringLiteral("public"); |
| 39 | default: |
| 40 | break; |
| 41 | } |
| 42 | } |
| 43 | return QString(); |
| 44 | } |
| 45 | |
| 46 | VariableDescription::VariableDescription() |
| 47 | { |
no test coverage detected