aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/lib.ads
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2006-10-31 18:49:05 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2006-10-31 18:49:05 +0100
commit9b832db55cf50f7a6739a35ec9f190eccc1d2973 (patch)
tree110c1e22b4771e49735353c1e1897bd00d4288a2 /gcc/ada/lib.ads
parent498a5a8414782d098c459d5a6de12f184b3f2c41 (diff)
downloadgcc-9b832db55cf50f7a6739a35ec9f190eccc1d2973.zip
gcc-9b832db55cf50f7a6739a35ec9f190eccc1d2973.tar.gz
gcc-9b832db55cf50f7a6739a35ec9f190eccc1d2973.tar.bz2
lib.adb, lib.ads: (In_Predefined_Unit): New functions
2006-10-31 Robert Dewar <dewar@adacore.com> * lib.adb, lib.ads: (In_Predefined_Unit): New functions * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, a-except-2005.ads: Add pragma Preelaborable_Warning From-SVN: r118242
Diffstat (limited to 'gcc/ada/lib.ads')
-rw-r--r--gcc/ada/lib.ads11
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ada/lib.ads b/gcc/ada/lib.ads
index e02555a..67978da 100644
--- a/gcc/ada/lib.ads
+++ b/gcc/ada/lib.ads
@@ -491,8 +491,15 @@ package Lib is
-- and the parent unit spec if it is separate.
function In_Extended_Main_Source_Unit (Loc : Source_Ptr) return Boolean;
- -- Same function as above, but argument is a source pointer rather
- -- than a node.
+ -- Same function as above, but argument is a source pointer
+
+ function In_Predefined_Unit (N : Node_Or_Entity_Id) return Boolean;
+ -- Returns True if the given node or entity appears within the source text
+ -- of a predefined unit (i.e. within Ada, Interfaces, System or within one
+ -- of the descendent packages of one of these three packages).
+
+ function In_Predefined_Unit (S : Source_Ptr) return Boolean;
+ -- Same function as above but argument is a source pointer
function Earlier_In_Extended_Unit (S1, S2 : Source_Ptr) return Boolean;
-- Given two Sloc values for which In_Same_Extended_Unit is true,