File: test.cmd

package info (click to toggle)
libgnatcoll 1.7gpl2015-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,280 kB
  • ctags: 1,124
  • sloc: ada: 134,072; python: 4,017; cpp: 1,397; ansic: 1,234; makefile: 368; sh: 152; xml: 31; sql: 6
file content (23 lines) | stat: -rw-r--r-- 924 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST -Pdummy.gpr
--  find all references to an entity
REFS proc1:main.adb:4:6
#  1> Proc1:a.adb:4:14 (body) scope=A:a.ads:1:9
#  2> Proc1:a.adb:7:8 (label on end line) scope=Proc1:a.ads:2:14
#  3> Proc1:a.ads:2:14 (declaration) scope=A:a.ads:1:9
#  4> Proc1:b.adb:5:9 (static call) scope=Proc1:b.ads:2:14
#  5> Proc1:main.adb:4:6 (static call) scope=Main:main.adb:2:11

--  Params of Proc1
PARAMS proc1:main.adb:4:6
#  1> A:a.ads:2:21 (IN_PARAMETER)
#  2> C:a.ads:2:24 (IN_PARAMETER)
#  3> F:a.ads:2:37 (IN_PARAMETER)

--  Same for another entity
REFS proc1:main.adb:5:6
#  1> Proc1:a.adb:6:9 (static call) scope=Proc1:a.ads:2:14
#  2> Proc1:a.adb:11:9 (static call) scope=Proc2:a.ads:3:14
#  3> Proc1:b.adb:3:14 (body) scope=B:b.ads:1:9
#  4> Proc1:b.adb:6:8 (label on end line) scope=Proc1:b.ads:2:14
#  5> Proc1:b.ads:2:14 (declaration) scope=B:b.ads:1:9
#  6> Proc1:main.adb:5:6 (static call) scope=Main:main.adb:2:11