commit | e0cd23986ed4fcfbb71ab44959ca18299412e706 | [log] [tgz] |
---|---|---|
author | Piotr Trojanek <trojanek@adacore.com> | Tue May 31 12:22:21 2022 +0200 |
committer | Pierre-Marie de Rodat <derodat@adacore.com> | Mon Jul 04 07:45:59 2022 +0000 |
tree | f0fcd54b9b2b0f7e0d6f274f280743067f307bf6 | |
parent | a521dc37999bed5ec1f529b4c6ba7ded09dca464 [diff] |
[Ada] Refactor duplicated resolution of Count and Index attributes Attribute Index, which was added to Ada 2022 by AI12-0143, is resolved just like attribute Count. However, code duplication rightly triggered a CodePeer warning. gcc/ada/ * sem_attr.adb (Resolve_Attribute): Refactor duplicated code for Count and Index attributes.