ada: Simplify detection of pragmas in the context items
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 7 Sep 2022 14:02:42 +0000 (16:02 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 7 Nov 2022 08:36:29 +0000 (09:36 +0100)
commitffe889d7ffcc7e8150413d4de38e066940fb7881
tree7e220ae3e6741624482426e6ec54053c040ed631
parent74056e9411e0457c33ff5546a3563edb9ed09c99
ada: Simplify detection of pragmas in the context items

Code cleanup; semantics is unaffected.

gcc/ada/

* sem_prag.adb (Is_In_Context_Clause): Rewrite without negations
and inequalities.
gcc/ada/sem_prag.adb