diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-05 07:55:30 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-05 07:55:30 +0000 |
commit | 4b0d05543a4c26571080f1154fb4584933d892a3 (patch) | |
tree | c874b7e54802e0374f0a07dfecdfa31566aa0ffe /gcc/ada/lib-xref.ads | |
parent | 528a6b60e12138771fa33d6587bddfd0efabe6e3 (diff) | |
download | gcc-4b0d05543a4c26571080f1154fb4584933d892a3.tar.gz |
2005-09-01 Ed Schonberg <schonberg@adacore.com>
Emmanuel Briot <briot@adacore.com>
* lib-xref.adb (Output_Overridden_Op): Display information on
overridden operation.
* lib-xref.ads: Add documentation on overridden operations.
* ali.ads (Xref_Entity_Record): Add support for storing the overriding
information.
* ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
overriding entity information.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103871 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/lib-xref.ads')
-rw-r--r-- | gcc/ada/lib-xref.ads | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ada/lib-xref.ads b/gcc/ada/lib-xref.ads index 99a326eb1d2..154d88e5a2e 100644 --- a/gcc/ada/lib-xref.ads +++ b/gcc/ada/lib-xref.ads @@ -28,7 +28,6 @@ -- information. with Einfo; use Einfo; -with Types; use Types; package Lib.Xref is @@ -54,7 +53,7 @@ package Lib.Xref is -- The lines following the header look like - -- line type col level entity renameref instref typeref ref ref ref + -- line type col level entity renameref instref typeref overref ref ref -- line is the line number of the referenced entity. The name of -- the entity starts in column col. Columns are numbered from one, @@ -130,6 +129,17 @@ package Lib.Xref is -- referenced file. For the standard entity form, the name between -- the brackets is the normal name of the entity in lower case. + -- overref is present for overriding operations (procedures and + -- functions), and provides information on the operation that it + -- overrides. This information has the format: + + -- '<' file | line 'o' col '>' + + -- file is the dependency number of the file containing the + -- declaration of the overridden operation. It and the following + -- vertical bar are omitted if the file is the same as that of + -- the overriding operation. + -- There may be zero or more ref entries on each line -- file | line type col [...] |