1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1996-2009, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING3. If not, go to --
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
21 -- GNAT was originally developed by the GNAT team at New York University. --
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
24 ------------------------------------------------------------------------------
26 -- This package contains, for each of the command of the GNAT driver, one
27 -- constant array; each component of this array is a string that defines,
28 -- in coded form as explained below, the conversion of a VMS qualifier of the
29 -- command to the corresponding switch of the GNAT tool corresponding to the
32 -- This package is used by the GNAT driver to invokes the GNAT tools with the
33 -- switches corresponding to the VMS qualifier and by the Project Manager to
34 -- convert VMS qualifiers in project files to their corresponding switch
37 -- This package is also an input to the tool that generates the VMS GNAT
38 -- help information automatically.
40 -- NOTE: the format of this package must follow the following rules, so that
41 -- the VMS GNAT help tool works properly:
43 -- - Each command zone (where the eventual qualifiers are declared) must
44 -- begin with a boxed comment of the form:
46 -- ---------------------------------
47 -- -- Switches for GNAT <COMMAND> --
48 -- ---------------------------------
50 -- where <COMMAND> is the name of a GNAT command in capital letters, for
51 -- example BIND, COMPILE, XREF, ...
53 -- - each qualifier declaration must be followed either by
54 -- - a comment starting with "-- NODOC", to indicate that there is
55 -- no documentation for this qualifier, or
56 -- - a contiguous sequence of comments that constitute the
57 -- documentation of the qualifier.
59 -- - each command zone ends with the declaration of the constant array
60 -- for the command, of the form:
62 -- <Command>__Switches : aliased constant Switches :=
70 -- The syntax of a qualifier declaration is as follows:
72 -- SWITCH_STRING ::= "/ command-qualifier-name TRANSLATION"
76 -- | DIRECTORIES_TRANSLATION
78 -- | NO_SPACE_FILE_TRANSL
79 -- | NUMERIC_TRANSLATION
80 -- | STRING_TRANSLATION
81 -- | OPTIONS_TRANSLATION
82 -- | COMMANDS_TRANSLATION
83 -- | ALPHANUMPLUS_TRANSLATION
84 -- | OTHER_TRANSLATION
86 -- DIRECT_TRANSLATION ::= space UNIX_SWITCHES
87 -- DIRECTORIES_TRANSLATION ::= =* UNIX_SWITCH *
88 -- DIRECTORY_TRANSLATION ::= =% UNIX_SWITCH %
89 -- FILE_TRANSLATION ::= =@ UNIX_SWITCH @
90 -- NO_SPACE_FILE_TRANSL ::= =< UNIX_SWITCH >
91 -- NUMERIC_TRANSLATION ::= =# UNIX_SWITCH # | # number #
92 -- STRING_TRANSLATION ::= =" UNIX_SWITCH "
93 -- OPTIONS_TRANSLATION ::= =OPTION {space OPTION}
94 -- COMMANDS_TRANSLATION ::= =? ARGS space command-name
95 -- ALPHANUMPLUS_TRANSLATION ::= =| UNIX_SWITCH |
97 -- UNIX_SWITCHES ::= UNIX_SWITCH {, UNIX_SWITCH}
99 -- UNIX_SWITCH ::= unix-switch-string | !unix-switch-string | `string'
101 -- OPTION ::= option-name space UNIX_SWITCHES
103 -- ARGS ::= -cargs | -bargs | -largs
105 -- Here command-qual is the name of the switch recognized by the GNATCmd.
106 -- This is always given in upper case in the templates, although in the
107 -- actual commands, either upper or lower case is allowed.
109 -- The unix-switch-string always starts with a minus, and has no commas
110 -- or spaces in it. Case is significant in the unix switch string. If a
111 -- unix switch string is preceded by the not sign (!) it means that the
112 -- effect of the corresponding command qualifier is to remove any previous
113 -- occurrence of the given switch in the command line.
115 -- The DIRECTORIES_TRANSLATION format is used where a list of directories
116 -- is given. This possible corresponding formats recognized by GNATCmd are
117 -- as shown by the following example for the case of PATH
120 -- PATH=(direc,direc,direc,direc)
122 -- When more than one directory is present for the DIRECTORIES case, then
123 -- multiple instances of the corresponding unix switch are generated,
124 -- with the file name being substituted for the occurrence of *.
126 -- The FILE_TRANSLATION format is similar except that only a single
127 -- file is allowed, not a list of files, and only one unix switch is
128 -- generated as a result.
130 -- the NO_SPACE_FILE_TRANSL is similar to FILE_TRANSLATION, except that
131 -- no space is inserted between the switch and the file name.
133 -- The NUMERIC_TRANSLATION format is similar to the FILE_TRANSLATION case
134 -- except that the parameter is a decimal integer in the range 0 to 999999.
136 -- For the OPTIONS_TRANSLATION case, GNATCmd similarly permits one or
137 -- more options to appear (although only in some cases does the use of
138 -- multiple options make logical sense). For example, taking the
139 -- case of ERRORS for GCC, the following are all allowed:
142 -- /ERRORS=(FULL,VERBOSE)
143 -- /ERRORS=(BRIEF IMMEDIATE)
145 -- If no option is provided (e.g. just /ERRORS is written), then the
146 -- first option in the list is the default option. For /ERRORS this
147 -- is NORMAL, so /ERRORS with no option is equivalent to /ERRORS=NORMAL.
149 -- The COMMANDS_TRANSLATION case is only used for gnatmake, to correspond
150 -- to the use of -cargs, -bargs and -largs (the ARGS string as indicated
151 -- is one of these three possibilities). The name given by COMMAND is the
152 -- corresponding command name to be used to interpret the switches to be
153 -- passed on. Switches of this type set modes, e.g. /COMPILER_QUALIFIERS
154 -- sets the mode so that all subsequent switches, up to another switch
155 -- with COMMANDS_TRANSLATION apply to the corresponding commands issued
156 -- by the make utility. For example
158 -- /COMPILER_QUALIFIERS /LIST /BINDER_QUALIFIERS /MAIN
159 -- /COMPILER_QUALIFIERS /NOLIST /COMPILE_CHECKS=SYNTAX
161 -- Clearly these switches must come at the end of the list of switches
162 -- since all subsequent switches apply to an issued command.
164 -- For the DIRECT_TRANSLATION case, an implicit additional qualifier
165 -- declaration is created by prepending NO to the name of the qualifier,
166 -- and then inverting the sense of the UNIX_SWITCHES string. For example,
167 -- given the qualifier definition:
171 -- An implicit qualifier definition is created:
175 -- In the case where, a ! is already present, inverting the sense of the
176 -- switch means removing it.
179 -- A synonym to shorten the table
181 type String_Ptr is access constant String;
182 -- String pointer type used throughout
184 type Switches is array (Natural range <>) of String_Ptr;
185 -- Type used for array of switches
187 type Switches_Ptr is access constant Switches;
189 ----------------------------
190 -- Switches for GNAT BIND --
191 ----------------------------
193 S_Bind_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
195 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
197 -- Add directories to the project search path.
199 S_Bind_Bind : aliased constant S := "/BIND_FILE=" &
204 -- /BIND_FILE[=bind-file-option]
206 -- Specifies the language of the binder generated file.
208 -- ADA (D) Binder file is Ada.
210 -- C Binder file is 'C'.
212 S_Bind_Build : aliased constant S := "/BUILD_LIBRARY=|" &
214 -- /BUILD_LIBRARY=xxx
216 -- Binds the units for library building. In this case the adainit and
217 -- adafinal procedures are rename to xxxinit and xxxfinal. Implies
220 S_Bind_Current : aliased constant S := "/CURRENT_DIRECTORY " &
222 -- /CURRENT_DIRECTORY (D)
223 -- /NOCURRENT_DIRECTORY
225 -- Look for source, library or object files in the default directory.
227 S_Bind_Debug : aliased constant S := "/DEBUG=" &
242 -- /DEBUG[=debug-level]
245 -- Specify level of debugging information generated for the elaboration
246 -- routine. See corresponding qualifier for GNAT COMPILE.
248 S_Bind_DebugX : aliased constant S := "/NODEBUG " &
250 -- NODOC (see /DEBUG)
252 S_Bind_Elab : aliased constant S := "/ELABORATION_DEPENDENCIES " &
254 -- /ELABORATION_DEPENDENCIES
255 -- /NOELABORATION_DEPENDENCIES (D)
257 -- Output complete list of elaboration-order dependencies, showing the
258 -- reason for each dependency. This output can be rather extensive but may
259 -- be useful in diagnosing problems with elaboration order. The output is
260 -- written to SYS$OUTPUT.
262 S_Bind_Error : aliased constant S := "/ERROR_LIMIT=#" &
266 -- Limit number of detected errors to nnn (1-999999).
268 S_Bind_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
270 -- /EXTERNAL_REFERENCE="name=val"
272 -- Specifies an external reference to the project manager. Useful only if
273 -- /PROJECT_FILE is used.
276 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
278 S_Bind_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
280 -- /NOFOLLOW_LINKS_FOR_FILES (D)
281 -- /FOLLOW_LINKS_FOR_FILES
283 -- Follow links when parsing project files
285 S_Bind_Force : aliased constant S := "/FORCE_ELAB_FLAGS " &
287 -- /NOFORCE_ELAB_FLAGS (D)
290 -- Force checking of elaboration Flags
292 S_Bind_Help : aliased constant S := "/HELP " &
296 -- Output usage information.
298 S_Bind_Init : aliased constant S := "/INITIALIZE_SCALARS=" &
305 -- /INITIALIZE_SCALARS[=scalar-option]
307 -- Indicate how uninitialized scalar values for which a pragma
308 -- Initialize_Scalars applies should be initialized.
309 -- scalar-option may be one of the following:
311 -- INVALID (D) Initialize with an invalid value.
312 -- LOW Initialize with the lowest valid value of the subtype.
313 -- HIGH Initialize with the highest valid value of the subtype.
315 S_Bind_Leap : aliased constant S := "/ENABLE_LEAP_SECONDS " &
317 -- /ENABLE_LEAP_SECONDS
318 -- /NOENABLE_LEAP_SECONDS (D)
320 -- Enable leap seconds support in Ada.Calendar and its children.
322 S_Bind_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
324 -- /LIBRARY_SEARCH=(direc[,...])
326 -- When looking for library and object files look also in directories
329 S_Bind_Linker : aliased constant S := "/LINKER_OPTION_LIST " &
331 -- /NOLINKER_OPTION_LIST (D)
332 -- /LINKER_OPTION_LIST
334 -- Output linker options to SYS$OUTPUT. Includes library search
335 -- paths, contents of pragmas Ident and Linker_Options, and
336 -- libraries added by GNAT BIND.
338 S_Bind_Main : aliased constant S := "/MAIN " &
342 -- The main program is in Ada.
346 -- The main program is not in Ada.
348 S_Bind_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
355 -- /MESSAGES_PROJECT_FILE[=messages-option]
357 -- Specifies the "verbosity" of the parsing of project files.
358 -- messages-option may be one of the following:
360 -- DEFAULT (D) No messages are output if there is no error or warning.
362 -- MEDIUM A small number of messages are output.
364 -- HIGH A great number of messages are output, most of them not
365 -- being useful for the user.
367 S_Bind_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
371 -- Do not look for sources the in the system default directory.
373 S_Bind_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
377 -- Do not look for library files in the system default directory.
379 S_Bind_No_Time : aliased constant S := "/NO_TIME_STAMP_CHECK " &
381 -- NODOC (see /TIME_STAMP_CHECK)
383 S_Bind_Object : aliased constant S := "/OBJECT_LIST " &
385 -- /NOOBJECT_LIST (D)
388 -- Output full names of all the object files that must be linker to
389 -- provide the Ada component of the program. The output is written to
392 S_Bind_Order : aliased constant S := "/ORDER_OF_ELABORATION " &
394 -- /NOORDER_OF_ELABORATION (D)
395 -- /ORDER_OF_ELABORATION
397 -- Output chosen elaboration order. The output is written to SYS$OUTPUT.
399 S_Bind_Output : aliased constant S := "/OUTPUT=@" &
403 -- File name to use for the program containing the elaboration code.
405 S_Bind_OutputX : aliased constant S := "/NOOUTPUT " &
409 -- Check only. Do not generate the binder output file.
411 -- In this mode the binder performs all error checks but does not generate
414 S_Bind_Pess : aliased constant S := "/PESSIMISTIC_ELABORATION " &
416 -- /PESSIMISTIC_ELABORATION
418 -- Causes the binder to choose a "pessimistic" elaboration order, i.e. one
419 -- which is most likely to cause elaboration order problems. This can be
420 -- useful in testing portable code to make sure that there are no missing
421 -- elaborate pragmas.
423 S_Bind_Project : aliased constant S := "/PROJECT_FILE=<" &
425 -- /PROJECT_FILE=filename
427 -- Specifies the main project file to be used. The project files rooted
428 -- at the main project file will be parsed before the invocation of the
429 -- binder. The source and object directories to be searched will be
430 -- communicated to the binder through logical names ADA_PRJ_INCLUDE_FILE
431 -- and ADA_PRJ_OBJECTS_FILE.
433 S_Bind_Read : aliased constant S := "/READ_SOURCES=" &
440 -- /READ_SOURCES[=(keyword[,...])]
443 -- The following keyword are accepted:
445 -- ALL (D) Require source files to be present. In this mode, the
446 -- binder insists on being able to locate all source files
447 -- that are referenced and checks their consistency. In
448 -- normal mode, if a source file cannot be located it is
449 -- simply ignored. If you specify the ALL keyword, a
450 -- missing source file is an error.
452 -- NONE Exclude source files. In this mode, the binder only
453 -- checks that ALI files are consistent with one another.
454 -- source files are not accessed. The binder runs faster
455 -- in this mode, and there is still a guarantee that the
456 -- resulting program is self-consistent.
458 -- If a source file has been edited since it was last
459 -- compiled and you specify the NONE keyword, the binder
460 -- will not detect that the object file is out of date
461 -- with the source file.
463 -- This is the same as specifying /NOREAD_SOURCES.
465 -- AVAILABLE Check that object files are consistent with one
466 -- another and are consistent with any source files that
469 S_Bind_ReadX : aliased constant S := "/NOREAD_SOURCES " &
471 -- NODOC (see /READ_SOURCES)
473 S_Bind_Rename : aliased constant S := "/RENAME_MAIN=<" &
477 -- Renames the generated main program from main to xxx.
478 -- This is useful in the case of some cross-building environments, where
479 -- the actual main program is separate from the one generated
482 S_Bind_Report : aliased constant S := "/REPORT_ERRORS=" &
489 -- /REPORT_ERRORS[=(keyword[,...])]
495 -- With the DEFAULT keyword (which is not the default when the binder is
496 -- run from GNAT BIND) or the /NOREPORT_ERRORS qualifier, brief error
497 -- messages are generated to SYS$ERROR. If the VERBOSE keyword is
498 -- present, a header is written to SYS$OUTPUT and any error messages are
499 -- directed to SYS$OUTPUT All that is written to SYS$ERROR is a brief
502 -- If the BRIEF keyword is specified, the binder will generate brief error
503 -- messages to SYS$ERROR even if verbose mode is specified. This is
504 -- relevant only when used together with the VERBOSE keyword or /VERBOSE
507 S_Bind_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
509 -- NODOC (see /REPORT_ERRORS)
511 S_Bind_Restr : aliased constant S := "/RESTRICTION_LIST " &
513 -- /NORESTRICTION_LIST (D)
516 -- Generate list of pragma Restrictions that could be applied to the
517 -- current unit. This is useful for code audit purposes, and also may be
518 -- used to improve code generation in some cases.
520 S_Bind_Return : aliased constant S := "/RETURN_CODES=" &
525 -- /RETURN_CODES=POSIX (D)
528 -- Specifies the style of default exit code returned. Must be used in
529 -- conjunction with and match the Link qualifier with same name.
531 -- POSIX (D) Return Posix success (0) by default.
533 -- VMS Return VMS success (1) by default.
535 S_Bind_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
537 -- /RUNTIME_SYSTEM=xxx
539 -- Binds against an alternate runtime system named xxx or RTS-xxx.
541 S_Bind_Search : aliased constant S := "/SEARCH=*" &
543 -- /SEARCH=(directory[,...])
545 -- When looking for source or object files also look in directories
548 -- This is the same as specifying both /LIBRARY_SEARCH and /SOURCE_SEARCH
551 S_Bind_Shared : aliased constant S := "/SHARED " &
556 -- Link against a shared GNAT run time when available.
558 S_Bind_Slice : aliased constant S := "/TIME_SLICE=#" &
562 -- Set the time slice value to nnn milliseconds. A value of zero means no
563 -- time slicing and also indicates to the tasking run time to match as
564 -- close as possible to the annex D requirements of the RM.
566 S_Bind_Source : aliased constant S := "/SOURCE_SEARCH=*" &
568 -- /SOURCE_SEARCH=(directory[,...])
570 -- When looking for source files also look in directories specified.
572 S_Bind_Static : aliased constant S := "/STATIC " &
577 -- Link against a static GNAT run time.
579 S_Bind_Store : aliased constant S := "/STORE_TRACEBACKS " &
581 -- /STORE_TRACEBACKS (D)
582 -- /NOSTORE_TRACEBACKS
584 -- Store tracebacks in exception occurrences.
585 -- This is the default on VMS, with the zero-cost exception mechanism.
586 -- This qualifier has no impact, except when using the setjmp/longjmp
587 -- exception mechanism, with the GNAT COMPILE qualifier /LONGJMP_SETJMP.
589 S_Bind_Subdirs : aliased constant S := "/SUBDIRS=<" &
593 -- The actual directories (object, exec, library, ...) are subdirectories
594 -- of the directory specified in the project file. If the subdirectory
595 -- does not exist, it is created automatically.
597 S_Bind_Time : aliased constant S := "/TIME_STAMP_CHECK " &
599 -- /TIME_STAMP_CHECK (D)
601 -- Time stamp errors will be treated as errors.
603 -- /NOTIME_STAMP_CHECK
605 -- Ignore time stamp errors. Any time stamp error messages are treated as
606 -- warning messages. This switch essentially disconnects the normal
607 -- consistency checking, and the resulting program may have undefined
608 -- semantics if inconsistent units are present.
610 -- This means that /NOTIME_STAMP_CHECK should be used only in unusual
611 -- situations, with extreme care.
613 S_Bind_Verbose : aliased constant S := "/VERBOSE " &
618 -- Equivalent to /REPORT_ERRORS=VERBOSE.
620 S_Bind_Warn : aliased constant S := "/WARNINGS=" &
627 -- /WARNINGS[=(keyword[,...])]
630 -- The following keywords are supported:
632 -- NORMAL (D) Print warning messages and treat them as warning.
633 -- SUPPRESS Suppress all warning messages (same as /NOWARNINGS).
634 -- ERROR Treat any warning messages as fatal errors
636 S_Bind_WarnX : aliased constant S := "/NOWARNINGS " &
638 -- NODOC (see /WARNINGS)
640 S_Bind_Wide : aliased constant S := "/WIDE_CHARACTER_ENCODING=" &
653 -- /NOWIDE_CHARACTER_ENCODING (D)
654 -- /WIDE_CHARACTER_ENCODING[=encode-type]
656 -- Specifies the mechanism used to encode wide characters, overriding
657 -- the default as set by the /WIDE_CHARACTER_ENCODING option for the
658 -- compilation of the main program.
660 S_Bind_Zero : aliased constant S := "/ZERO_MAIN " &
665 -- Normally the binder checks that the unit name given on the command line
666 -- corresponds to a suitable main subprogram. When /ZERO_MAIN is used,
667 -- a list of ALI files can be given, and the execution of the program
668 -- consists of elaboration of these units in an appropriate order.
670 Bind_Switches : aliased constant Switches :=
673 S_Bind_Build 'Access,
674 S_Bind_Current 'Access,
675 S_Bind_Debug 'Access,
676 S_Bind_DebugX 'Access,
678 S_Bind_Error 'Access,
680 S_Bind_Follow 'Access,
681 S_Bind_Force 'Access,
685 S_Bind_Library 'Access,
686 S_Bind_Linker 'Access,
689 S_Bind_Nostinc 'Access,
690 S_Bind_Nostlib 'Access,
691 S_Bind_No_Time 'Access,
692 S_Bind_Object 'Access,
693 S_Bind_Order 'Access,
694 S_Bind_Output 'Access,
695 S_Bind_OutputX 'Access,
697 S_Bind_Project 'Access,
699 S_Bind_ReadX 'Access,
700 S_Bind_Rename 'Access,
701 S_Bind_Report 'Access,
702 S_Bind_ReportX 'Access,
703 S_Bind_Restr 'Access,
704 S_Bind_Return 'Access,
706 S_Bind_Search 'Access,
707 S_Bind_Shared 'Access,
708 S_Bind_Slice 'Access,
709 S_Bind_Source 'Access,
710 S_Bind_Static 'Access,
711 S_Bind_Store 'Access,
712 S_Bind_Subdirs 'Access,
714 S_Bind_Verbose 'Access,
716 S_Bind_WarnX 'Access,
718 S_Bind_Zero 'Access);
720 -----------------------------
721 -- Switches for GNAT CHECK --
722 -----------------------------
724 S_Check_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
726 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
728 -- Add directories to the project search path.
730 S_Check_All : aliased constant S := "/ALL " &
735 -- Also check the components of the GNAT run time and process the needed
736 -- components of the GNAT RTL when building and analyzing the global
737 -- structure for checking the global rules.
739 S_Check_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
741 -- /EXTERNAL_REFERENCE="name=val"
743 -- Specifies an external reference to the project manager. Useful only if
744 -- /PROJECT_FILE is used.
747 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
749 S_Check_Files : aliased constant S := "/FILES=@" &
753 -- Take as arguments the files that are listed in the specified
756 S_Check_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
758 -- /NOFOLLOW_LINKS_FOR_FILES (D)
759 -- /FOLLOW_LINKS_FOR_FILES
761 -- Follow links when parsing project files
763 S_Check_Help : aliased constant S := "/HELP " &
768 -- Print information about currently implemented checks.
770 S_Check_Locs : aliased constant S := "/LOCS " &
775 -- Use full source locations references in the report file.
777 S_Diagnosis : aliased constant S := "/DIAGNOSTIC_LIMIT=#" &
779 -- /DIAGNOSTIC_LIMIT=500 (D)
780 -- /DIAGNOSTIC_LIMIT=nnn
782 -- NNN is a decimal integer in the range of 1 to 1000 and limits the
783 -- number of diagnostic messages to be generated into Stdout to that
784 -- number. Once that number has been reached, gnatcheck stops
785 -- to print out diagnoses into Stderr. If NNN is equal to 0, this means
786 -- that there is no limit on the number of diagnoses in Stdout.
788 S_Check_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
795 -- /MESSAGES_PROJECT_FILE[=messages-option]
797 -- Specifies the "verbosity" of the parsing of project files.
798 -- messages-option may be one of the following:
800 -- DEFAULT (D) No messages are output if there is no error or warning.
802 -- MEDIUM A small number of messages are output.
804 -- HIGH A great number of messages are output, most of them not
805 -- being useful for the user.
807 S_Check_Project : aliased constant S := "/PROJECT_FILE=<" &
809 -- /PROJECT_FILE=filename
811 -- Specifies the main project file to be used. The project files rooted
812 -- at the main project file will be parsed before the invocation of the
813 -- gnatcheck. The source directories to be searched will be communicated
814 -- to gnatcheck through logical name ADA_PRJ_INCLUDE_FILE.
816 S_Check_Quiet : aliased constant S := "/QUIET " &
821 -- Work quietly, only output warnings and errors.
823 S_Check_Time : aliased constant S := "/TIME " &
828 -- Print out execution time
830 S_Check_Log : aliased constant S := "/LOG " &
835 -- Duplicate all the output sent to Stderr into a log file.
837 S_Check_Short : aliased constant S := "/SHORT " &
842 -- Generate a short form of the report file.
844 S_Check_Include : aliased constant S := "/INCLUDE_FILE=@" &
847 -- /INCLUDE_FILE=filename
849 -- Add the content of the specified text file to the generated report
852 S_Check_Subdirs : aliased constant S := "/SUBDIRS=<" &
856 -- The actual directories (object, exec, library, ...) are subdirectories
857 -- of the directory specified in the project file. If the subdirectory
858 -- does not exist, it is created automatically.
860 S_Check_Verb : aliased constant S := "/VERBOSE " &
865 -- The version number and copyright notice are output, as well as exact
866 -- copies of the gnat1 commands spawned to obtain the chop control
869 S_Check_Out : aliased constant S := "/OUTPUT=@" &
873 -- Specify the name of the output file.
875 Check_Switches : aliased constant Switches :=
876 (S_Check_Add 'Access,
880 S_Check_Files 'Access,
881 S_Check_Follow 'Access,
882 S_Check_Help 'Access,
883 S_Check_Locs 'Access,
884 S_Check_Mess 'Access,
885 S_Check_Project'Access,
886 S_Check_Quiet 'Access,
887 S_Check_Time 'Access,
889 S_Check_Short 'Access,
890 S_Check_Include'Access,
891 S_Check_Subdirs'Access,
892 S_Check_Verb 'Access,
893 S_Check_Out 'Access);
895 ----------------------------
896 -- Switches for GNAT CHOP --
897 ----------------------------
899 S_Chop_Comp : aliased constant S := "/COMPILATION " &
901 -- /NOCOMPILATION (D)
904 -- Compilation mode, handle configuration pragmas strictly according to
907 S_Chop_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
909 -- /FILE_NAME_MAX_LENGTH[=nnn]
911 -- Limit generated file names to NNN (default of 8) characters. This is
912 -- useful if the resulting set of files is required to be interoperable
913 -- with systems like MS-DOS which limit the length of file names.
915 S_Chop_Help : aliased constant S := "/HELP " &
920 -- Print usage information.
922 S_Chop_Over : aliased constant S := "/OVERWRITE " &
927 -- Overwrite existing file names. Normally GNAT CHOP regards it as a
928 -- fatal error situation if there is already a file with the same name as
929 -- a file it would otherwise output. The /OVERWRITE qualifier bypasses
930 -- this check, and any such existing files will be silently overwritten.
932 S_Chop_Pres : aliased constant S := "/PRESERVE " &
937 -- Causes the file modification time stamp of the input file to be
938 -- preserved and used for the time stamp of the output file(s). This may
939 -- be useful for preserving coherency of time stamps in an environment
940 -- where gnatchop is used as part of a standard build process.
942 S_Chop_Quiet : aliased constant S := "/QUIET " &
947 -- Work quietly, only output warnings and errors.
949 S_Chop_Ref : aliased constant S := "/REFERENCE " &
954 -- Generate "Source_Reference" pragmas. Use this qualifier if the output
955 -- files are regarded as temporary and development is to be done in terms
956 -- of the original unchopped file. The /REFERENCE qualifier causes
957 -- "Source_Reference" pragmas to be inserted into each of the generated
958 -- files to refers back to the original file name and line number. The
959 -- result is that all error messages refer back to the original unchopped
962 -- In addition, the debugging information placed into the object file
963 -- (when the /DEBUG qualifier of GNAT COMPILE or GNAT MAKE is specified)
964 -- also refers back to this original file so that tools like profilers
965 -- and debuggers will give information in terms of the original unchopped
968 S_Chop_Verb : aliased constant S := "/VERBOSE " &
973 -- The version number and copyright notice are output, as well as exact
974 -- copies of the gnat1 commands spawned to obtain the chop control
977 Chop_Switches : aliased constant Switches :=
978 (S_Chop_Comp 'Access,
983 S_Chop_Quiet 'Access,
985 S_Chop_Verb 'Access);
987 -----------------------------
988 -- Switches for GNAT CLEAN --
989 -----------------------------
991 S_Clean_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
993 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
995 -- Add directories to the project search path.
997 S_Clean_Compil : aliased constant S := "/COMPILER_FILES_ONLY " &
999 -- /NOCOMPILER_FILES_ONLY (D)
1000 -- /COMPILER_FILES_ONLY
1002 -- Only attempt to delete the files produced by the compiler, not those
1003 -- produced by the binder or the linker. The files that are not to be
1004 -- deleted are library files, interface copy files, binder generated files
1005 -- and executable files.
1007 S_Clean_Current : aliased constant S := "/CURRENT_DIRECTORY " &
1009 -- /CURRENT_DIRECTORY (D)
1011 -- Look for ALI or object files in the directory where GNAT CLEAN was
1014 -- /NOCURRENT_DIRECTORY
1016 -- Do not look for ALI or object files in the directory where GNAT CLEAN
1019 S_Clean_Delete : aliased constant S := "/DELETE " &
1023 -- Delete the files that are not read-only.
1027 -- Informative-only mode. Do not delete any files. Output the list of the
1028 -- files that would have been deleted if this switch was not specified.
1030 S_Clean_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
1032 -- /DIRECTORY_OBJECTS=<file>
1034 -- Find the object files and .ALI files in <file>.
1035 -- This qualifier is not compatible with /PROJECT_FILE.
1037 S_Clean_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1039 -- /EXTERNAL_REFERENCE="name=val"
1041 -- Specifies an external reference to the project manager. Useful only if
1042 -- /PROJECT_FILE is used.
1045 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1047 S_Clean_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
1049 -- /NOFOLLOW_LINKS_FOR_FILES (D)
1050 -- /FOLLOW_LINKS_FOR_FILES
1052 -- Follow links when parsing project files
1054 S_Clean_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1056 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1057 -- /FULL_PATH_IN_BRIEF_MESSAGES
1059 -- When using project files, if some errors or warnings are detected
1060 -- during parsing and verbose mode is not in effect (no use of qualifier
1061 -- /VERBOSE), then error lines start with the full path name of the
1062 -- project file, rather than its simple file name.
1064 S_Clean_Help : aliased constant S := "/HELP " &
1069 -- Output a message explaining the usage of gnatclean.
1071 S_Clean_Index : aliased constant S := "/SOURCE_INDEX=#" &
1073 -- /SOURCE_INDEX=nnn
1075 -- Specifies the index of the units in the source file
1076 -- By default, source files are mono-unit and there is no index
1078 S_Clean_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1085 -- /MESSAGES_PROJECT_FILE[=messages-option]
1087 -- Specifies the "verbosity" of the parsing of project files.
1088 -- messages-option may be one of the following:
1090 -- DEFAULT (D) No messages are output if there is no error or warning.
1092 -- MEDIUM A small number of messages are output.
1094 -- HIGH A great number of messages are output, most of them not
1095 -- being useful for the user.
1097 S_Clean_Object : aliased constant S := "/OBJECT_SEARCH=*" &
1099 -- /OBJECT_SEARCH=(directory,...)
1101 -- When searching for library and object files, look in the specified
1102 -- directories. The order in which library files are searched is the same
1105 S_Clean_Project : aliased constant S := "/PROJECT_FILE=<" &
1107 -- /PROJECT_FILE=filename
1109 -- Specifies the main project file to be used. The project files rooted
1110 -- at the main project file will be parsed before the invocation of the
1111 -- compiler. The source and object directories to be searched will be
1112 -- communicated to gnatclean through logical names ADA_PRJ_INCLUDE_FILE
1113 -- and ADA_PRJ_OBJECTS_FILE.
1115 S_Clean_Quiet : aliased constant S := "/QUIET " &
1120 -- Quiet output. If there are no error, do not output anything, except in
1121 -- verbose mode (qualifier /VERBOSE) or in informative-only mode
1122 -- (qualifier /NODELETE).
1124 S_Clean_Recurs : aliased constant S := "/RECURSIVE " &
1129 -- When a project file is specified (using switch -P), clean all imported
1130 -- and extended project files, recursively. If this qualifier is not
1131 -- specified, only the files related to the main project file are to be
1132 -- deleted. This qualifier has no effect if no project file is specified.
1134 S_Clean_Search : aliased constant S := "/SEARCH=*" &
1136 -- /SEARCH=(directory,...)
1138 -- Equivalent to /OBJECT_SEARCH=(directory,...).
1140 S_Clean_Subdirs : aliased constant S := "/SUBDIRS=<" &
1144 -- The actual directories (object, exec, library, ...) are subdirectories
1145 -- of the directory specified in the project file. If the subdirectory
1146 -- does not exist, it is created automatically.
1148 S_Clean_Verbose : aliased constant S := "/VERBOSE " &
1155 Clean_Switches : aliased constant Switches :=
1156 (S_Clean_Add 'Access,
1157 S_Clean_Compil 'Access,
1158 S_Clean_Current'Access,
1159 S_Clean_Delete 'Access,
1160 S_Clean_Dirobj 'Access,
1161 S_Clean_Ext 'Access,
1162 S_Clean_Follow 'Access,
1163 S_Clean_Full 'Access,
1164 S_Clean_Help 'Access,
1165 S_Clean_Index 'Access,
1166 S_Clean_Mess 'Access,
1167 S_Clean_Object 'Access,
1168 S_Clean_Project'Access,
1169 S_Clean_Quiet 'Access,
1170 S_Clean_Recurs 'Access,
1171 S_Clean_Search 'Access,
1172 S_Clean_Subdirs'Access,
1173 S_Clean_Verbose'Access);
1175 -------------------------------
1176 -- Switches for GNAT COMPILE --
1177 -------------------------------
1179 S_GCC_Ada_83 : aliased constant S := "/83 " &
1184 -- Although GNAT is primarily an Ada 95 compiler, it accepts this
1185 -- qualifier to specify that an Ada 83 mode program is being compiled. If
1186 -- you specify this qualifier, GNAT rejects Ada 95 extensions and applies
1187 -- Ada 83 semantics. It is not possible to guarantee this qualifier does
1188 -- a perfect job; for example, some subtle tests of pathological cases,
1189 -- such as are found in ACVC tests that have been removed from the ACVC
1190 -- suite for Ada 95, may not compile correctly. However for practical
1191 -- purposes, using this qualifier should ensure that programs that
1192 -- compile correctly under the /83 qualifier can be ported reasonably
1193 -- easily to an Ada 83 compiler. This is the main use of this qualifier.
1195 -- With few exceptions (most notably the need to use "<>" on
1196 -- unconstrained generic formal parameters), it is not necessary to use
1197 -- this qualifier switch when compiling Ada 83 programs, because, with
1198 -- rare and obscure exceptions, Ada 95 is upwardly compatible with Ada
1199 -- 83. This means that a correct Ada 83 program is usually also a correct
1202 S_GCC_Ada_95 : aliased constant S := "/95 " &
1206 -- Allows GNAT to recognize the full range of Ada 95 constructs.
1207 -- This is the normal default for GNAT Pro.
1209 S_GCC_Ada_05 : aliased constant S := "/05 " &
1213 -- Allows GNAT to recognize all implemented proposed Ada 2005
1214 -- extensions. See features file for list of implemented features.
1216 S_GCC_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
1218 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
1220 -- Add directories to the project search path.
1222 S_GCC_Asm : aliased constant S := "/ASM " &
1227 -- Use to cause the assembler source file to be generated, using S as the
1228 -- filetype, instead of the object file. This may be useful if you need
1229 -- to examine the generated assembly code.
1231 S_GCC_AValid : aliased constant S := "/ASSUME_VALID " &
1233 -- /NO_ASSUME_VALID (D)
1236 -- Use to tell the compiler to assume that all objects have valid values
1237 -- except those occurring as prefixes to 'Valid attributes. In the default
1238 -- mode, the compiler assumes that values may be invalid unless it can
1239 -- be sure that they are valid, and code is generated to allow for this
1240 -- possibility. The use of /ASSUME_VALID will improve the code.
1242 S_GCC_Checks : aliased constant S := "/CHECKS=" &
1244 "-gnato,!-gnatE,!-gnatp " &
1252 "!-gnato,!-gnatp " &
1258 -- /CHECKS[=(keyword[,...])]
1260 -- If you compile with the default options, GNAT will insert many runtime
1261 -- checks into the compiled code, including code that performs range
1262 -- checking against constraints, but not arithmetic overflow checking for
1263 -- integer operations (including division by zero) or checks for access
1264 -- before elaboration on subprogram calls. All other runtime checks, as
1265 -- required by the Ada 95 Reference Manual, are generated by default.
1267 -- You may specify one or more of the following keywords to the /CHECKS
1268 -- qualifier to modify this behavior:
1270 -- DEFAULT The behavior described above. This is the default
1271 -- if the /CHECKS qualifier is not present on the
1272 -- command line. Same as /NOCHECKS.
1274 -- OVERFLOW Enables overflow checking for integer operations and
1275 -- checks for access before elaboration on subprogram
1276 -- calls. This causes GNAT to generate slower and larger
1277 -- executable programs by adding code to check for both
1278 -- overflow and division by zero (resulting in raising
1279 -- "Constraint_Error" as required by Ada semantics).
1280 -- Similarly, GNAT does not generate elaboration check
1281 -- by default, and you must specify this keyword to
1284 -- Note that this keyword does not affect the code
1285 -- generated for any floating-point operations; it
1286 -- applies only to integer operations. For floating-point,
1287 -- GNAT has the "Machine_Overflows" attribute set to
1288 -- "False" and the normal mode of operation is to generate
1289 -- IEEE NaN and infinite values on overflow or invalid
1290 -- operations (such as dividing 0.0 by 0.0).
1292 -- ELABORATION Enables dynamic checks for access-before-elaboration
1293 -- on subprogram calls and generic instantiations.
1295 -- ASSERTIONS The pragmas "Assert" and "Debug" normally have no
1296 -- effect and are ignored. This keyword causes "Assert"
1297 -- and "Debug" pragmas to be activated, as well as
1298 -- "Check", "Precondition" and "Postcondition" pragmas.
1300 -- SUPPRESS_ALL Suppress all runtime checks as though you have "pragma
1301 -- Suppress (all_checks)" in your source. Use this switch
1302 -- to improve the performance of the code at the expense
1303 -- of safety in the presence of invalid data or program
1306 -- DEFAULT Suppress the effect of any option OVERFLOW or
1309 -- FULL (D) Similar to OVERFLOW, but suppress the effect of any
1310 -- option ELABORATION or SUPPRESS_ALL.
1312 -- These keywords only control the default setting of the checks. You
1313 -- may modify them using either "Suppress" (to remove checks) or
1314 -- "Unsuppress" (to add back suppressed checks) pragmas in your program
1317 S_GCC_ChecksX : aliased constant S := "/NOCHECKS " &
1318 "-gnatp,!-gnato,!-gnatE";
1319 -- NODOC (see /CHECKS)
1321 S_GCC_Compres : aliased constant S := "/COMPRESS_NAMES " &
1323 -- /NOCOMPRESS_NAMES (D)
1326 -- Compress debug information and external symbol name table entries.
1327 -- In the generated debugging information, and also in the case of long
1328 -- external names, the compiler uses a compression mechanism if the name
1329 -- is very long. This compression method uses a checksum, and avoids
1330 -- trouble on some operating systems which have difficulty with very long
1333 S_GCC_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
1335 -- /CONFIGURATION_PRAGMAS_FILE=file
1337 -- Specify a configuration pragmas file that need to be taken into account
1339 S_GCC_Current : aliased constant S := "/CURRENT_DIRECTORY " &
1341 -- /CURRENT_DIRECTORY (D)
1342 -- /NOCURRENT_DIRECTORY
1344 -- Look for source files in the default directory.
1346 S_GCC_Data : aliased constant S := "/DATA_PREPROCESSING=<" &
1348 -- /DATA_PREPROCESSING=file_name
1350 -- This qualifier indicates to the compiler the file name (without
1351 -- directory information) of the preprocessor data file to use.
1352 -- The preprocessor data file should be found in the source directories.
1354 -- A preprocessing data file is a text file with significant lines
1355 -- indicating how should be preprocessed either a specific source or all
1356 -- sources not mentioned in other lines. A significant line is a non
1357 -- empty, non comment line. Comments are similar to Ada comments.
1359 -- Each significant line starts with either a literal string or the
1360 -- character '*'. A literal string is the file name (without directory
1361 -- information) of the source to preprocess. A character '*' indicates the
1362 -- preprocessing for all the sources that are not specified explicitly on
1363 -- other lines. It is an error to have two lines with the same file name
1364 -- or two lines starting with the character '*'.
1366 -- After the file name or the character '*', another optional literal
1367 -- string indicating the file name of the definition file to be used for
1368 -- preprocessing. (see 15.3 Form of Definitions File. The definition files
1369 -- are found by the compiler in one of the source directories. In some
1370 -- cases, when compiling a source in a directory other than the current
1371 -- directory, if the definition file is in the current directory, it may
1372 -- be necessary to add the current directory as a source directory through
1373 -- qualifier "/SEARCH=[]", otherwise the compiler would not find the
1376 -- Then, optionally, switches similar to those of gnatprep may be found.
1377 -- Those switches are:
1379 -- -b Causes both preprocessor lines and the lines deleted by
1380 -- preprocessing to be replaced by blank lines, preserving
1381 -- the line number. This switch is always implied;
1382 -- however, if specified after `-c' it cancels the effect
1385 -- -c Causes both preprocessor lines and the lines deleted by
1386 -- preprocessing to be retained as comments marked with
1387 -- the special string "--! ".
1389 -- -Dsymbol=value Define or redefine a symbol, associated with value.
1390 -- A symbol is an Ada identifier, or an Ada reserved word,
1391 -- with the exception of "if", "else", "elsif", "end",
1392 -- "and", "or" and "then". value is either a literal
1393 -- string, an Ada identifier or any Ada reserved word.
1394 -- A symbol declared with this switch replaces a symbol
1395 -- with the same name defined in a definition file.
1397 -- -s Causes a sorted list of symbol names and values to be
1398 -- listed on the standard output file.
1400 -- -u Causes undefined symbols to be treated as having the
1401 -- value FALSE in the context of a preprocessor test.
1402 -- In the absence of this option, an undefined symbol
1403 -- in a #if or #elsif test will be treated as an error.
1405 -- Examples of valid lines in a preprocessor data file:
1407 -- "toto.adb" "prep.def" -u
1408 -- -- preprocess "toto.adb", using definition file "prep.def",
1409 -- -- undefined symbol are False.
1411 -- * -c -DVERSION=V101
1412 -- -- preprocess all other sources without a definition file;
1413 -- -- suppressed lined are commented; symbol VERSION has the value
1416 -- "titi.adb" "prep2.def" -s
1417 -- -- preprocess "titi.adb", using definition file "prep2.def";
1418 -- -- list all symbols with their values.
1420 S_GCC_Debug : aliased constant S := "/DEBUG=" &
1433 -- /DEBUG[=debug-level]
1436 -- Specifies how much debugging information is to be included in
1437 -- the resulting object fie.
1439 -- 'debug-level' is one of the following:
1441 -- SYMBOLS (D) Include both debugger symbol records and traceback
1442 -- in the object file.
1444 -- ALL Include debugger symbol records, traceback plus
1445 -- extra debug information in the object file.
1447 -- NONE Excludes both debugger symbol records and traceback
1448 -- from the object file. Same as /NODEBUG.
1450 -- TRACEBACK Includes only traceback records in the object
1451 -- file. This is the default when /DEBUG is not used.
1453 S_GCC_DebugX : aliased constant S := "/NODEBUG " &
1455 -- NODOC (see /Debug)
1457 S_GCC_Dist : aliased constant S := "/DISTRIBUTION_STUBS=" &
1462 -- /NODISTRIBUTION_STUBS (D)
1463 -- /DISTRIBUTION_STUBS[=dist-opt]
1465 -- 'dist-opt' is either RECEIVER (the default) or SENDER and indicates
1466 -- that stubs for use in distributed programs (see the Distributed
1467 -- Systems Annex of the Ada RM) should be generated.
1469 S_GCC_DistX : aliased constant S := "/NODISTRIBUTION_STUBS " &
1470 "!-gnatzr,!-gnatzc";
1471 -- NODOC (see /DISTRIBUTION_STUBS)
1473 S_GCC_Error : aliased constant S := "/ERROR_LIMIT=#" &
1475 -- /NOERROR_LIMIT (D)
1478 -- NNN is a decimal integer in the range of 1 to 999999 and limits the
1479 -- number of error messages to be generated to that number. Once that
1480 -- number has been reached, the compilation is abandoned.
1481 -- Specifying 999999 is equivalent to /NOERROR_LIMIT.
1483 S_GCC_ErrorX : aliased constant S := "/NOERROR_LIMIT " &
1485 -- NODOC (see /ERROR_LIMIT)
1487 S_GCC_Expand : aliased constant S := "/EXPAND_SOURCE " &
1489 -- /NOEXPAND_SOURCE (D)
1492 -- Produces a listing of the expanded code in Ada source form. For
1493 -- example, all tasking constructs are reduced to appropriate run-time
1494 -- library calls. The maximum line length for the listing 72.
1496 S_GCC_Lexpand : aliased constant S := "/LEXPAND_SOURCE=#" &
1498 -- /LEXPAND_SOURCE=nnn
1500 -- Produces a listing of the expanded code in Ada source form. For
1501 -- example, all tasking constructs are reduced to appropriate run-time
1502 -- library calls. The parameter is the maximum line length for the
1505 S_GCC_Extend : aliased constant S := "/EXTENSIONS_ALLOWED " &
1507 -- /NOEXTENSIONS_ALLOWED (D)
1508 -- /EXTENSIONS_ALLOWED
1510 -- GNAT specific language extensions allowed.
1512 S_GCC_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1514 -- /EXTERNAL_REFERENCE="name=val"
1516 -- Specifies an external reference to the project manager. Useful only if
1517 -- /PROJECT_FILE is used.
1520 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1522 S_GCC_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
1524 -- /FILE_NAME_MAX_LENGTH=nnn
1526 -- Activates file name "krunching". NNN, a decimal integer in the range
1527 -- 1-999, indicates the maximum allowable length of a file name (not
1528 -- including the ADS or ADB filetype. The default is not to enable file
1531 S_GCC_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
1533 -- /NOFOLLOW_LINKS_FOR_FILES (D)
1534 -- /FOLLOW_LINKS_FOR_FILES
1536 -- Follow links when parsing project files
1538 S_GCC_Force : aliased constant S := "/FORCE_ALI " &
1543 -- In normal operation mode, the .ALI file is not generated if any
1544 -- illegalities are detected in the program. The use of this qualifier
1545 -- forces generation of the .ALI file. This file is marked as being
1546 -- in error, so it cannot be used for binding purposes, but it does
1547 -- contain reasonably complete cross-reference information, and thus may
1548 -- be useful for use by tools (e.g. semantic browsing tools or integrated
1549 -- development environments) that are driven from the .ALI file.
1551 S_GCC_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1553 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1554 -- /FULL_PATH_IN_BRIEF_MESSAGES
1556 -- When using project files, if some errors or warnings are detected
1557 -- during parsing and verbose mode is not in effect (no use of qualifier
1558 -- /VERBOSE), then error lines start with the full path name of the
1559 -- project file, rather than its simple file name.
1561 S_GCC_Generate : aliased constant S := "/GENERATE_PROCESSED_SOURCE " &
1563 -- /NOGENERATE_PROCESSED_SOURCE (D)
1564 -- /GENERATE_PROCESSED_SOURCE
1566 -- Generate a file <source>_prep if the integrated preprocessing
1567 -- is modifying the source text.
1569 S_GCC_GNAT : aliased constant S := "/GNAT_INTERNAL " &
1571 -- /NOGNAT_INTERNAL (D)
1574 -- Internal GNAT implementation mode. This should not be used for
1575 -- applications programs, it is intended only for use by the compiler
1576 -- and its run-time library. For documentation, see the GNAT sources.
1577 -- Note that it implies /WARNINGS=ALL,ERRORS and /STYLE_CHECKS=GNAT
1578 -- so that all standard warnings and all standard style options are
1579 -- turned on. All warnings and style error messages are treated as
1582 S_GCC_Help : aliased constant S := "/HELP " &
1587 -- Output usage information.
1589 S_GCC_Ident : aliased constant S := "/IDENTIFIER_CHARACTER_SET=" &
1612 -- /NOIDENTIFIER_CHARACTER_SET (D)
1613 -- /IDENTIFIER_CHARACTER_SET=char-set
1615 -- Normally GNAT recognizes the Latin-1 character set in source program
1616 -- identifiers, as described in the reference manual. This qualifier
1617 -- causes GNAT to recognize alternate character sets in identifiers.
1618 -- 'char-set' is one of the following strings indicating the character
1621 -- DEFAULT (D) Equivalent to 1, below. Also equivalent to
1622 -- /NOIDENTIFIER_CHARACTER_SET.
1624 -- 1 The basic character set is Latin-1. This character
1625 -- set is defined by ISO standard 8859, part 1. The lower
1626 -- half (character codes 16#00# ... 16#7F#) is identical
1627 -- to standard ASCII coding, but the upper half is used
1628 -- to represent additional characters. This includes
1629 -- extended letters used by European languages, such as
1630 -- the umlaut used in German.
1632 -- You may use any of these extended characters freely
1633 -- in character or string literals. In addition, the
1634 -- extended characters that represent letters can be
1635 -- used in identifiers.
1637 -- 2 Latin-2 letters allowed in identifiers, with uppercase
1638 -- and lowercase equivalence.
1640 -- 3 Latin-3 letters allowed in identifiers, with uppercase
1641 -- and lower case equivalence.
1643 -- 4 Latin-4 letters allowed in identifiers, with uppercase
1644 -- and lower case equivalence.
1646 -- PC IBM PC code page 437. This code page is the normal
1647 -- default for PCs in the U.S. It corresponds to the
1648 -- original IBM PC character set. This set has some, but
1649 -- not all, of the extended Latin-1 letters, but these
1650 -- letters do not have the same encoding as Latin-1. In
1651 -- this mode, these letters are allowed in identifiers
1652 -- with uppercase and lowercase equivalence.
1654 -- PC850 This code page (850) is a modification of 437 extended
1655 -- to include all the Latin-1 letters, but still not with
1656 -- the usual Latin-1 encoding. In this mode, all these
1657 -- letters are allowed in identifiers with uppercase and
1658 -- lower case equivalence.
1660 -- FULL_UPPER Any character in the range 80-FF allowed in
1661 -- identifiers, and all are considered distinct. In
1662 -- other words, there are no uppercase and lower case
1663 -- equivalences in this range.
1665 -- NO_UPPER No upper-half characters in the range 80-FF are
1666 -- allowed in identifiers. This gives Ada 95
1667 -- compatibility for identifier names.
1669 -- WIDE GNAT allows wide character codes to appear in
1670 -- character and string literals, and also optionally
1671 -- in identifiers. See the /WIDE_CHARACTER_ENCODING
1672 -- qualifier for information on encoding formats.
1674 S_GCC_IdentX : aliased constant S := "/NOIDENTIFIER_CHARACTER_SET " &
1676 -- NODOC (see /IDENTIFIER_CHARACTER_SET)
1678 S_GCC_Ignore : aliased constant S := "/IGNORE_REP_CLAUSES " &
1680 -- /IGNORE_REP_CLAUSES
1682 -- Causes all representation clauses to be ignored and treated as
1683 -- comments. Useful when compiling foreign code (for example when ASIS
1684 -- is used to analyze such code).
1686 S_GCC_Immed : aliased constant S := "/IMMEDIATE_ERRORS " &
1688 -- /NOIMMEDIATE_ERRORS (D)
1689 -- /IMMEDIATE_ERRORS
1691 -- Causes errors to be displayed as soon as they are encountered, rather
1692 -- than after compilation is terminated. If GNAT terminates prematurely
1693 -- or goes into an infinite loop, the last error message displayed may
1694 -- help to pinpoint the culprit.
1696 S_GCC_Inline : aliased constant S := "/INLINE=" &
1704 -- /INLINE[=keyword]
1706 -- Selects the level of inlining for your program. In the absence of this
1707 -- qualifier, GNAT does not attempt inlining across units and does not
1708 -- need to access the bodies of subprograms for which "pragma Inline" is
1709 -- specified if they are not in the current unit.
1711 -- The supported keywords are as follows:
1713 -- PRAGMA (D) Recognize and process "Inline" pragmas. However,
1714 -- for the inlining to actually occur, optimization
1715 -- must be enabled. This enables inlining across unit
1716 -- boundaries, that is, inlining a call in one unit of
1717 -- a subprogram declared in a with'ed unit. The compiler
1718 -- will access these bodies, creating an extra source
1719 -- dependency for the resulting object file, and where
1720 -- possible, the call will be inlined.
1722 -- This qualifier also turns on full optimization and
1723 -- requests GNAT to try to attempt automatic inlining
1724 -- of small subprograms within a unit.
1726 -- Specifying /OPTIMIZE=NONE will disable the main effect
1727 -- of this qualifier, but you may specify other
1728 -- optimization options, to get either lower
1729 -- (/OPTIMIZE=SOME) or higher (/OPTIMIZE=UNROLL_LOOPS)
1730 -- levels of optimization.
1732 -- FULL Front end inlining. The front end inlining activated
1733 -- by this switch is generally more extensive, and quite
1734 -- often more effective than the standard PRAGMA inlining
1735 -- mode. It will also generate additional dependencies.
1737 -- SUPPRESS Suppresses all inlining, even if other optimization
1738 -- or inlining switches are set.
1740 S_GCC_InlineX : aliased constant S := "/NOINLINE " &
1742 -- NODOC (see /INLINE)
1744 S_GCC_Intsrc : aliased constant S := "/INTERSPERSE_SOURCE " &
1747 -- /NO_INTERSPERSE_SOURCE (D)
1748 -- /INTERSPERSE_SOURCE
1750 -- Causes output from /XDEBUG or /EXPAND_SOURCE to be interspersed with
1751 -- lines from the original source file, output as comment lines with the
1752 -- associated line number.
1754 S_GCC_Just : aliased constant S := "/JUSTIFY_MESSAGES=#" &
1757 -- /NO_JUSTIFY_MESSAGES (D)
1758 -- /JUSTIFY_MESSAGES=nnn
1760 -- Causes error messages to be reformatted so that a message and all its
1761 -- continuation lines count as one warning or error in the statistics on
1762 -- total errors, and the message is broken down into lines (justified) so
1763 -- that no line is longer than nnn characters. The default message
1764 -- behavior (each message counted separately and not reformatted to fit
1765 -- a particular line length) can be obtained using /NO_JUSTIFY_MESSAGES.
1767 S_GCC_JustX : aliased constant S := "/NO_JUSTIFY_MESSAGES " &
1770 -- NODOC (see /JUSTIFY_MESSAGES)
1772 S_GCC_Length : aliased constant S := "/MAX_LINE_LENGTH=#" &
1774 -- /MAX_LINE_LENGTH=nnn
1776 -- Set maximum line length.
1777 -- The length of lines must not exceed the given value nnn.
1779 S_GCC_List : aliased constant S := "/LIST " &
1784 -- Cause a full listing of the file to be generated. In the case where
1785 -- a body is compiled, the corresponding spec is also listed, along
1786 -- with any subunits.
1788 S_GCC_Machine : aliased constant S := "/MACHINE_CODE_LISTING " &
1790 -- /NOMACHINE_CODE_LISTING (D)
1791 -- /MACHINE_CODE_LISTING
1793 -- Cause a full machine code listing of the file to be generated to
1794 -- <filename>.lis. Interspersed source is included if the /DEBUG
1795 -- qualifier is also present.
1797 S_GCC_Mapping : aliased constant S := "/MAPPING_FILE=<" &
1799 -- /MAPPING_FILE=file_name
1801 -- Use mapping file file_name
1803 -- A mapping file is a way to communicate to the compiler two mappings:
1804 -- from unit names to file names (without any directory information) and
1805 -- from file names to path names (with full directory information).
1806 -- These mappings are used by the compiler to short-circuit the path
1809 -- The use of mapping files is not required for correct operation of the
1810 -- compiler, but mapping files can improve efficiency, particularly when
1811 -- sources are read over a slow network connection. In normal operation,
1812 -- you need not be concerned with the format or use of mapping files,
1813 -- and /MAPPING_FILE is not a qualifier that you would use explicitly.
1814 -- It is intended only for use by automatic tools such as GNAT MAKE
1815 -- running under the project file facility. The description here of the
1816 -- format of mapping files is provided for completeness and for possible
1817 -- use by other tools.
1819 -- A mapping file is a sequence of sets of three lines. In each set, the
1820 -- first line is the unit name, in lower case, with "%s" appended for
1821 -- specifications and "%b" appended for bodies; the second line is the
1822 -- file name; and the third line is the path name.
1828 -- /gnat/project1/sources/main.2_ada
1830 -- When qualifier ?MAPPING_FILE is specified, the compiler will create in
1831 -- memory the two mappings from the specified file. If there is any
1832 -- problem (non existent file, truncated file or duplicate entries),
1833 -- no mapping will be created.
1835 -- Several /MAPPING_FILE qualifiers may be specified; however, only the
1836 -- last one on the command line will be taken into account.
1838 -- When using a project file, GNAT MAKE creates a temporary mapping file
1839 -- and communicates it to the compiler using this switch.
1841 S_GCC_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1848 -- /MESSAGES_PROJECT_FILE[=messages-option]
1850 -- Specifies the "verbosity" of the parsing of project files.
1851 -- messages-option may be one of the following:
1853 -- DEFAULT (D) No messages are output if there is no error or warning.
1855 -- MEDIUM A small number of messages are output.
1857 -- HIGH A great number of messages are output, most of them not
1858 -- being useful for the user.
1860 S_GCC_Nesting : aliased constant S := "/MAX_NESTING=#" &
1864 -- Set maximum level of nesting of constructs (including subprograms,
1865 -- loops, blocks, packages, and conditionals).
1866 -- The level of nesting must not exceed the given value nnn.
1867 -- A value of zero disable this style check (not enabled by default).
1869 S_GCC_Noadc : aliased constant S := "/NO_GNAT_ADC " &
1873 -- Cause the compiler to ignore any configuration pragmas file GNAT.ADC
1874 -- in the default directory. Implied by qualifier /PROJECT_FILE.
1875 -- Often used in conjunction with qualifier /CONFIGURATION_PRAGMAS_FILE.
1877 S_GCC_Noload : aliased constant S := "/NOLOAD " &
1881 -- Cause the compiler to operate in semantic check mode with full
1882 -- checking for all illegalities specified in the reference manual, but
1883 -- without generation of any source code (no object or ALI file
1886 -- Since dependent files must be accessed, you must follow the GNAT
1887 -- semantic restrictions on file structuring to operate in this mode:
1889 -- o The needed source files must be accessible.
1890 -- o Each file must contain only one compilation unit.
1891 -- o The file name and unit name must match.
1893 -- The output consists of error messages as appropriate. No object file
1894 -- or ALI file is generated. The checking corresponds exactly to the
1895 -- notion of legality in the Ada reference manual.
1897 -- Any unit can be compiled in semantics-checking-only mode, including
1898 -- units that would not normally be compiled (generic library units,
1899 -- subunits, and specifications where a separate body is present).
1901 S_GCC_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
1905 -- Do not look in the default directory for source files of the runtime.
1907 S_GCC_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
1911 -- Do not look for library files in the system default directory.
1913 S_GCC_NoWarnP : aliased constant S := "/NOWARNING_PRAGMAS " &
1915 -- /NOWARNING_PRAGMAS
1917 -- Causes all Warnings pragmas to be ignored. Useful to check if the
1918 -- program has obsolete warnings pragmas that are hiding problems.
1920 S_GCC_Opt : aliased constant S := "/OPTIMIZE=" &
1922 "-O2,!-O0,!-O1,!-O3 " &
1924 "-O0,!-O1,!-O2,!-O3 " &
1926 "-O1,!-O0,!-O2,!-O3 " &
1928 "-Os,!-O0,!-O1,!-O2,!-O3 " &
1930 "-O1,!-O0,!-O2,!-O3 " &
1933 "NO_STRICT_ALIASING " &
1934 "-fno-strict-aliasing " &
1936 "-O3,!-O0,!-O1,!-O2";
1938 -- /OPTIMIZE[=(keyword[,...])]
1940 -- Selects the level of optimization for your program. The supported
1941 -- keywords are as follows:
1943 -- ALL (D) Perform most optimizations, including those that
1944 -- may be expensive.
1946 -- NONE Do not do any optimizations. Same as /NOOPTIMIZE.
1948 -- SOME Perform some optimizations, but omit ones that
1949 -- are costly in compilation time.
1951 -- SPACE Optimize space usage
1953 -- DEVELOPMENT Same as SOME.
1955 -- INLINING Full optimization, and also attempt automatic inlining
1956 -- of small subprograms within a unit
1958 -- UNROLL_LOOPS Try to unroll loops. This keyword may be specified
1959 -- with any keyword above other than NONE. Loop
1960 -- unrolling usually, but not always, improves the
1961 -- performance of programs.
1963 -- NO_STRICT_ALIASING
1964 -- Suppress aliasing analysis. When optimization is
1965 -- enabled (ALL or SOME above), the compiler assumes
1966 -- that pointers do in fact point to legitimate values
1967 -- of the pointer type (allocated from the proper pool).
1968 -- If this assumption is violated, e.g. by the use of
1969 -- unchecked conversion, then it may be necessary to
1970 -- suppress this assumption using this keyword (which
1971 -- may be specified only in conjunction with any
1972 -- keyword above, other than NONE).
1974 S_GCC_OptX : aliased constant S := "/NOOPTIMIZE " &
1975 "-O0,!-O1,!-O2,!-O3";
1976 -- NODOC (see /OPTIMIZE)
1978 S_GCC_Output : aliased constant S := "/OUTPUT_FILE=<" &
1980 -- /OUTPUT_FILE=fname
1982 -- This has the same effect as /LIST except that the output is written
1983 -- to a file instead of to standard output. If the given fname
1984 -- does not start with a period, then it is the full name of the file
1985 -- to be written. If fname starts with a period, the name of the file
1986 -- is the concatenation of to the name of the file being compiled with
1987 -- fname where the period is replace by an underline. For example, if
1988 -- file xyz.adb is compiled with -gnatl=.lst, then the output is written
1989 -- to file xyz.adb_lst.
1991 S_GCC_Pointer : aliased constant S := "/POINTER_SIZE=" &
2000 -- /POINTER_SIZE=64 (D)
2001 -- /POINTER_SIZE[=(keyword[,...])]
2003 -- Change how pointers and descriptors are allocated. The following
2004 -- keywords are supported:
2006 -- 64 (D) Allocate heap pointers in 64bit space except as
2007 -- constrained by a 32bit size clause or by
2008 -- Convention_C and generate 64bit descriptors for
2009 -- Descriptor mechanisms for calling imported
2010 -- subprograms and accept both 64bit and 32bit
2011 -- descriptors for calls to exported subprograms.
2013 -- LONG Equivalent to option 64.
2015 -- 32 Allocate all heap pointers in 32bit space and
2016 -- generate 32bit descriptors for Descriptor
2017 -- mechanisms for calling imported subprograms.
2019 -- SHORT Equivalent to option 32.
2021 S_GCC_Polling : aliased constant S := "/POLLING " &
2026 -- Enable polling. See the description of pragma Polling in the GNAT
2027 -- Reference Manual for full details.
2029 S_GCC_Project : aliased constant S := "/PROJECT_FILE=<" &
2031 -- /PROJECT_FILE=filename
2033 -- Specifies the main project file to be used. The project files rooted
2034 -- at the main project file will be parsed before the invocation of the
2035 -- compiler. The source and object directories to be searched will be
2036 -- communicated to the compiler through logical names
2037 -- ADA_PRJ_INCLUDE_FILE and ADA_PRJ_OBJECTS_FILE.
2039 S_GCC_Psta : aliased constant S := "/PRINT_STANDARD " &
2043 -- cause the compiler to output a representation of package Standard
2044 -- in a form very close to standard Ada. It is not quite possible to
2045 -- do this and remain entirely Standard (since new numeric base types
2046 -- cannot be created in standard Ada), but the output is easily
2047 -- readable to any Ada programmer, and is useful to determine the
2048 -- characteristics of target dependent types in package Standard.
2050 S_GCC_Reswarn : aliased constant S := "/TREAT_RESTRICTIONS_AS_WARNINGS " &
2053 -- /NO_TREAT_RESTRICTIONS_AS_WARNINGS (D)
2054 -- /TREAT_RESTRICTIONS_AS_WARNINGS
2056 -- Causes all restrictions to be treated as warnings (pragma Restriction
2057 -- treated as Restriction_Warnings, pragma Profile as Profile_Warnings,
2058 -- and pragma Ravenscar sets restriction warnings instead of restrictions)
2060 S_GCC_Report : aliased constant S := "/REPORT_ERRORS=" &
2071 -- /NOREPORT_ERRORS (D)
2072 -- /REPORT_ERRORS[=(keyword[,...])]
2074 -- Change the way errors are reported. The following keywords are
2077 -- VERBOSE (D) Verbose mode. Full error output with source lines
2080 -- BRIEF Generate the brief format error messages to
2081 -- SYS$OUTPUT as well as the verbose format message or
2084 -- FULL Normally, the compiler suppresses error messages that
2085 -- are likely to be redundant. This keyword causes all
2086 -- error messages to be generated. One particular effect
2087 -- is for the case of references to undefined variables.
2088 -- If a given variable is referenced several times, the
2089 -- normal format of messages produces one error. With
2090 -- FULL, each undefined reference produces a separate
2093 -- IMMEDIATE Normally, the compiler saves up error messages and
2094 -- generates them at the end of compilation in proper
2095 -- sequence. This keyword causes error messages to be
2096 -- generated as soon as they are detected. The use of
2097 -- IMMEDIATE usually causes error messages to be
2098 -- generated out of sequence. Use it when the compiler
2099 -- blows up due to an internal error. In this case, the
2100 -- error messages may be lost. Sometimes blowups are
2101 -- the result of mishandled error messages, so you may
2102 -- want to run with this keyword to determine whether
2103 -- any error messages were generated.
2105 -- DEFAULT Turn off VERBOSE and BRIEF. Same as /NOREPORT_ERRORS.
2107 S_GCC_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
2109 -- NODOC (see /REPORT_ERRORS)
2111 S_GCC_Repinfo : aliased constant S := "/REPRESENTATION_INFO=" &
2128 -- /NOREPRESENTATION_INFO (D)
2129 -- /REPRESENTATION_INFO[=(keyword[,...])]
2131 -- This qualifier controls output from the compiler of a listing showing
2132 -- representation information for declared types and objects.
2134 -- ARRAYS (D) Size and alignment information is listed for
2135 -- declared array and record types.
2137 -- ARRAYS_FILE Similar to ARRAYS, but the output is to a file
2138 -- with the name 'file_rep' where 'file' is the name
2139 -- of the corresponding source file.
2141 -- NONE no information is output (equivalent to omitting
2142 -- the /REPRESENTATION_INFO qualifiers).
2144 -- OBJECTS Size and alignment information is listed for all
2145 -- declared types and objects.
2147 -- OBJECTS_FILE Similar to OBJECTS, but the output is to a file
2148 -- with the name 'file_rep' where 'file' is the name
2149 -- of the corresponding source file.
2151 -- SYMBOLIC Symbolic expression information for values that
2152 -- are computed at run time for variant records.
2154 -- SYMBOLIC_FILE Similar to SYMBOLIC, but the output is to a file
2155 -- with the name 'file_rep' where 'file' is the name
2156 -- of the corresponding source file.
2158 -- DEFAULT Equivalent to ARRAYS.
2160 S_GCC_RepinfX : aliased constant S := "/NOREPRESENTATION_INFO " &
2162 -- NODOC (see /REPRESENTATION_INFO)
2164 S_GCC_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
2166 -- /RUNTIME_SYSTEM=xxx
2168 -- Build against an alternate runtime system named xxx or RTS-xxx.
2170 S_GCC_SCO : aliased constant S := "/SCO_OUTPUT " &
2172 -- /NOSCO_OUTPUT (D)
2175 -- Controls the output of SCO (Source Coverage Obligation) information
2176 -- in the generated ALI file. This information is used by advanced source
2177 -- coverage tools. For a full description of the SCO format, see unit
2178 -- SCOs in the compiler sources (sco.ads/sco.adb).
2180 S_GCC_Search : aliased constant S := "/SEARCH=*" &
2182 -- /SEARCH=(directory[,...])
2184 -- When looking for source files also look in directories specified.
2186 S_GCC_Style : aliased constant S := "/STYLE_CHECKS=" &
2215 "NOARRAY_INDEXES " &
2219 "BOOLEAN_OPERATORS " &
2227 "DOS_LINE_ENDINGS " &
2229 "NODOS_LINE_ENDINGS " &
2267 "STANDARD_CASING " &
2269 "NOSTANDARD_CASING " &
2271 "ORDERED_SUBPROGRAMS " &
2273 "NOORDERED_SUBPROGRAMS " &
2275 "OVERRIDING_INDICATORS " &
2277 "NOOVERRIDING_INDICATORS " &
2291 "STATEMENTS_AFTER_THEN_ELSE " &
2293 "NOSTATEMENTS_AFTER_THEN_ELSE " &
2299 "UNNECESSARY_BLANK_LINES " &
2301 "NOUNNECESSARY_BLANK_LINES " &
2307 -- /NOSTYLE_CHECKS (D)
2308 -- /STYLE_CHECKS[=(keyword,[...])]
2310 -- Normally, GNAT permits any code layout consistent with the reference
2311 -- manual requirements. This qualifier imposes style checking on the
2312 -- input source code. The following keywords are supported:
2314 -- ALL_BUILTIN (D) Equivalent to the following list of options:
2315 -- 3, ATTRIBUTE, BLANKS, COMMENTS, END, VTABS,
2316 -- HTABS, IF_THEN, KEYWORD, LAYOUT, LINE_LENGTH,
2317 -- PRAGMA, REFERENCES, SPECS, TOKEN.
2319 -- 1 .. 9 Specify indentation level from 1 to 9.
2320 -- The general style of required indentation is as
2321 -- specified by the examples in the Ada Reference
2322 -- Manual. Full line comments must be aligned with
2323 -- the -- starting on a column that is a multiple
2324 -- of the alignment level.
2326 -- ATTRIBUTE Check attribute casing.
2327 -- Attribute names, including the case of keywords
2328 -- such as digits used as attributes names,
2329 -- must be written in mixed case, that is,
2330 -- the initial letter and any letter following an
2331 -- underscore must be uppercase.
2332 -- All other letters must be lowercase.
2334 -- ARRAY_INDEXES Check indexes of array attributes.
2335 -- For array attributes First, Last, Range,
2336 -- or Length, the index number must be omitted
2337 -- for one-dimensional arrays and is required
2338 -- for multi-dimensional arrays.
2340 -- BLANKS Blanks not allowed at statement end.
2341 -- Trailing blanks are not allowed at the end of
2342 -- statements. The purpose of this rule, together
2343 -- with option HTABS (no horizontal tabs), is to
2344 -- enforce a canonical format for the use of
2345 -- blanks to separate source tokens.
2347 -- COMMENTS Check comments.
2348 -- Comments must meet the following set of rules:
2350 -- * The "--" that starts the column must either
2351 -- start in column one, or else at least one
2352 -- blank must precede this sequence.
2354 -- * Comments that follow other tokens on a line
2355 -- must have at least one blank following the
2356 -- "--" at the start of the comment.
2358 -- * Full line comments must have two blanks
2359 -- following the "--" that starts the comment,
2360 -- with the following exceptions.
2362 -- * A line consisting only of the "--"
2363 -- characters, possibly preceded by blanks is
2366 -- * A comment starting with "--x" where x is
2367 -- a special character is permitted. This
2368 -- allows proper processing of the output
2369 -- generated by specialized tools including
2370 -- gnatprep (where --! is used) and the SPARK
2371 -- annotation language (where --# is used).
2372 -- For the purposes of this rule, a special
2373 -- character is defined as being in one of the
2374 -- ASCII ranges 16#21#..16#2F# or
2377 -- * A line consisting entirely of minus signs,
2378 -- possibly preceded by blanks, is permitted.
2379 -- This allows the construction of box
2380 -- comments where lines of minus signs are
2381 -- used to form the top and bottom of the box.
2383 -- * If a comment starts and ends with "--" is
2384 -- permitted as long as at least one blank
2385 -- follows the initial "--". Together with
2386 -- the preceding rule, this allows the
2387 -- construction of box comments, as shown in
2388 -- the following example:
2390 -- ---------------------------
2391 -- -- This is a box comment --
2392 -- ---------------------------
2394 -- DOS_LINE_ENDINGS Check that no DOS line terminators are present
2395 -- All lines must be terminated by a single
2396 -- ASCII.LF character. In particular the DOS line
2397 -- terminator sequence CR / LF is not allowed).
2399 -- END Check end/exit labels.
2400 -- Optional labels on end statements ending
2401 -- subprograms and on exit statements exiting
2402 -- named loops, are required to be present.
2404 -- GNAT Enforces a set of style conventions that
2405 -- match the style used in the GNAT source code.
2406 -- This maybe useful when developing code that
2407 -- is eventually intended to be incorporated into
2408 -- GNAT. For further details, see GNAT sources.
2410 -- HTABS No horizontal tabs.
2411 -- Horizontal tab characters are not permitted in
2412 -- the source text. Together with the BLANKS
2413 -- (no blanks at end of line) option, this
2414 -- enforces a canonical form for the use of blanks
2415 -- to separate source tokens.
2417 -- IF_THEN Check if-then layout.
2418 -- The keyword then must appear either on the
2419 -- same line as the corresponding if, or on a line
2420 -- on its own, lined up under the if with at least
2421 -- one non-blank line in between containing all or
2422 -- part of the condition to be tested.
2424 -- KEYWORD Check keyword casing.
2425 -- All keywords must be in lower case (with the
2426 -- exception of keywords such as digits used as
2427 -- attribute names to which this check does not
2430 -- LAYOUT Check layout.
2431 -- Layout of statement and declaration constructs
2432 -- must follow the recommendations in the Ada
2433 -- Reference Manual, as indicated by the form of
2434 -- the syntax rules. For example an else keyword
2435 -- must be lined up with the corresponding if
2438 -- There are two respects in which the style rule
2439 -- enforced by this check option are more liberal
2440 -- than those in the Ada Reference Manual.
2441 -- First in the case of record declarations,
2442 -- it is permissible to put the record keyword on
2443 -- the same line as the type keyword, and then
2444 -- the end in end record must line up under type.
2445 -- For example, either of the following two
2446 -- layouts is acceptable:
2459 -- Second, in the case of a block statement,
2460 -- a permitted alternative is to put the block
2461 -- label on the same line as the declare or begin
2462 -- keyword, and then line the end keyword up under
2463 -- the block label. For example both the following
2469 -- A : Integer := 3;
2476 -- A : Integer := 3;
2481 -- The same alternative format is allowed for
2482 -- loops. For example, both of the following are
2487 -- Clear : while J < 10 loop
2492 -- while J < 10 loop
2498 -- LINE_LENGTH Check maximum line length.
2499 -- The length of source lines must not exceed 79
2500 -- characters, including any trailing blanks
2501 -- The value of 79 allows convenient display on
2502 -- an 80 character wide device or window, allowing
2503 -- for possible special treatment of 80 character
2506 -- NONE Clear any previously set style checks.
2508 -- ORDERED_SUBPROGRAMS Check order of subprogram bodies.
2509 -- All subprogram bodies in a given scope (e.g.
2510 -- a package body) must be in alphabetical order.
2511 -- The ordering rule uses normal Ada rules for
2512 -- comparing strings, ignoring casing of letters,
2513 -- except that if there is a trailing numeric
2514 -- suffix, then the value of this suffix is used
2515 -- in the ordering (e.g. Junk2 comes before
2518 -- OVERRIDING_INDICATORS Check that overriding subprograms are
2519 -- explicitly marked as such. The declaration of
2520 -- a primitive operation of a type extension that
2521 -- overrides an inherited operation must carry
2522 -- an overriding indicator.
2524 -- PRAGMA Check pragma casing.
2525 -- Pragma names must be written in mixed case,
2526 -- that is, the initial letter and any letter
2527 -- following an underscore must be uppercase.
2528 -- All other letters must be lowercase.
2530 -- REFERENCES Check references.
2531 -- All identifier references must be cased in the
2532 -- same way as the corresponding declaration.
2533 -- No specific casing style is imposed on
2534 -- identifiers. The only requirement is for
2535 -- consistency of references with declarations.
2537 -- SPECS Check separate specs.
2538 -- Separate declarations ("specs") are required
2539 -- for subprograms (a body is not allowed to serve
2540 -- as its own declaration). The only exception is
2541 -- that parameterless library level procedures are
2542 -- not required to have a separate declaration.
2543 -- This exception covers the most frequent form of
2544 -- main program procedures.
2546 -- STANDARD_CASING Check casing of entities in Standard.
2547 -- Any identifier from Standard must be cased to
2548 -- match the presentation in the Ada Reference
2549 -- Manual (for example, Integer and ASCII.NUL).
2551 -- TOKEN Check token spacing.
2552 -- The following token spacing rules are enforced:
2554 -- * The keywords abs and not must be followed
2557 -- * The token => must be surrounded by spaces.
2559 -- * The token <> must be preceded by a space or
2560 -- a left parenthesis.
2562 -- * Binary operators other than ** must be
2563 -- surrounded by spaces. There is no
2564 -- restriction on the layout of the ** binary
2567 -- * Colon must be surrounded by spaces.
2569 -- * Colon-equal (assignment) must be surrounded
2572 -- * Comma must be the first non-blank character
2573 -- on the line, or be immediately preceded by
2574 -- a non-blank character, and must be followed
2577 -- * If the token preceding a left paren ends
2578 -- with a letter or digit, then a space must
2579 -- separate the two tokens.
2581 -- * A right parenthesis must either be the
2582 -- first non-blank character on a line, or it
2583 -- must be preceded by a non-blank character.
2585 -- * A semicolon must not be preceded by
2586 -- a space, and must not be followed by
2587 -- a non-blank character.
2589 -- * A unary plus or minus may not be followed
2592 -- * A vertical bar must be surrounded by
2595 -- In the above rules, appearing in column one is
2596 -- always permitted, that is, counts as meeting
2597 -- either a requirement for a required preceding
2598 -- space, or as meeting a requirement for no
2601 -- Appearing at the end of a line is also always
2602 -- permitted, that is, counts as meeting either
2603 -- a requirement for a following space,
2604 -- or as meeting a requirement for no following
2607 -- UNNECESSARY_BLANK_LINES
2608 -- Check for unnecessary blank lines.
2609 -- A blank line is considered unnecessary if it
2610 -- appears at the end of the file, or if more
2611 -- than one blank line occurs in sequence.
2613 -- VTABS No form feeds or vertical tabs.
2614 -- Form feeds or vertical tab characters are not
2615 -- permitted in the source text.
2617 -- XTRA_PARENS Check for the use of an unnecessary extra
2618 -- level of parentheses (C - style) around
2619 -- conditions in if statements, while statements
2620 -- and exit statements.
2622 S_GCC_StyleX : aliased constant S := "/NOSTYLE_CHECKS " &
2624 -- NODOC (see /STYLE_CHECKS)
2626 S_GCC_Subdirs : aliased constant S := "/SUBDIRS=<" &
2630 -- The actual directories (object, exec, library, ...) are subdirectories
2631 -- of the directory specified in the project file. If the subdirectory
2632 -- does not exist, it is created automatically.
2634 S_GCC_Symbol : aliased constant S := "/SYMBOL_PREPROCESSING=" & '"' &
2636 -- /SYMBOL_PREPROCESSING="symbol=value"
2638 -- Define or redefine a preprocessing symbol, associated with value.
2639 -- If "=value" is not specified, then the value of the symbol is True.
2640 -- A symbol is an identifier, following normal Ada (case-insensitive)
2641 -- rules for its syntax, and value is any sequence (including an empty
2642 -- sequence) of characters from the set (letters, digits, period,
2643 -- underline). Ada reserved words may be used as symbols, with the
2644 -- exceptions of "if", "else", "elsif", "end", "and", "or" and "then".
2646 -- A symbol declared with this qualifier on the command line replaces
2647 -- a symbol with the same name either in a definition file or specified
2648 -- with a switch -D in the preprocessor data file.
2650 -- This qualifier is similar to qualifier /ASSOCIATE of
2651 -- GNAT PREPROCESSING.
2653 S_GCC_Syntax : aliased constant S := "/SYNTAX_ONLY " &
2655 -- /NOSYNTAX_ONLY (D)
2658 -- Run GNAT in syntax checking only mode. You can check a series of
2659 -- files in a single command, and can use wild cards to specify such a
2662 -- You may use other qualifiers in conjunction with this qualifier. In
2663 -- particular, /LIST and /REPORT_ERRORS=VERBOSE are useful to control the
2664 -- format of any generated error messages.
2666 -- The output is simply the error messages, if any. No object file or ALI
2667 -- file is generated by a syntax-only compilation. Also, no units other
2668 -- than the one specified are accessed. For example, if a unit "X" with's
2669 -- a unit "Y", compiling unit "X" in syntax check only mode does not
2670 -- access the source file containing unit "Y".
2672 -- Normally, GNAT allows only a single unit in a source file. However,
2673 -- this restriction does not apply in syntax-check-only mode, and it is
2674 -- possible to check a file containing multiple compilation units
2675 -- concatenated together. This is primarily used by the GNAT CHOP
2678 S_GCC_Table : aliased constant S := "/TABLE_MULTIPLIER=#" &
2680 -- /TABLE_MULTIPLIER=nnn
2682 -- All compiler tables start at nnn times usual starting size.
2684 S_GCC_Trace : aliased constant S := "/TRACE_UNITS " &
2689 -- This switch that does for the frontend what /VERBOSE does for the
2690 -- backend. The system prints the name of each unit, either a compilation
2691 -- unit or nested unit, as it is being analyzed.
2693 S_GCC_Tree : aliased constant S := "/TREE_OUTPUT " &
2698 -- Cause GNAT to write the internal tree for a unit to a file (with the
2699 -- filetype ATB for a body or ATS for a spec). This is not normally
2700 -- required, but is used by separate analysis tools. Typically these
2701 -- tools do the necessary compilations automatically, so you should never
2702 -- have to specify this switch in normal operation.
2704 S_GCC_Trys : aliased constant S := "/TRY_SEMANTICS " &
2709 -- In normal operation mode the compiler first parses the program and
2710 -- determines if there are any syntax errors. If there are, appropriate
2711 -- error messages are generated and compilation is immediately
2712 -- terminated. This qualifier tells GNAT to continue with semantic
2713 -- analysis even if syntax errors have been found. This may enable the
2714 -- detection of more errors in a single run. On the other hand, the
2715 -- semantic analyzer is more likely to encounter some internal fatal
2716 -- error when given a syntactically invalid tree.
2718 S_GCC_Units : aliased constant S := "/UNITS_LIST " &
2720 -- /NOUNITS_LIST (D)
2723 -- Print a list of units required by this compilation on SYS$OUTPUT. The
2724 -- listing includes all units on which the unit being compiled depends
2725 -- either directly or indirectly.
2727 S_GCC_Unique : aliased constant S := "/UNIQUE_ERROR_TAG " &
2729 -- /NOUNIQUE_ERROR_TAG (D)
2730 -- /UNIQUE_ERROR_TAG
2732 -- Tag compiler error messages with the string "error: ".
2734 S_GCC_Upcase : aliased constant S := "/UPPERCASE_EXTERNALS " &
2736 -- /NOUPPERCASE_EXTERNALS (D)
2737 -- /UPPERCASE_EXTERNALS
2739 -- Fold default and explicit external names in pragmas Import and Export
2740 -- to uppercase for compatibility with the default behavior of DEC C.
2742 S_GCC_Valid : aliased constant S := "/VALIDITY_CHECKING=" &
2791 -- /VALIDITY_CHECKING[=(keyword,[...])]
2793 -- Control level of validity checking.
2795 -- DEFAULT (D) In this mode checks are made to prevent
2796 -- erroneous behavior in accordance with the RM.
2797 -- Notably extra checks may be needed for case
2798 -- statements and subscripted array assignments.
2800 -- NONE No special checks for invalid values are
2801 -- performed. This means that references to
2802 -- uninitialized variables can cause erroneous
2803 -- behavior from constructs like case statements
2804 -- and subscripted array assignments. In this
2805 -- mode, invalid values can lead to erroneous
2808 -- FULL Every assignment is checked for validity, so
2809 -- that it is impossible to assign invalid values.
2810 -- The RM specifically allows such assignments,
2811 -- but in this mode, invalid values can never be
2812 -- assigned, and an attempt to perform such an
2813 -- assignment immediately raises Constraint_Error.
2814 -- This behavior is allowed (but not required) by
2815 -- the RM. This mode is intended as a debugging aid,
2816 -- and may be useful in helping to track down
2817 -- uninitialized variables. It may be useful to
2818 -- use this in conjunction with the Normalize_Scalars
2819 -- pragma which attempts to initialize with invalid
2820 -- values where possible.
2822 S_GCC_Verbose : aliased constant S := "/VERBOSE " &
2827 -- Show commands generated by the GCC driver. Normally used only for
2828 -- debugging purposes or if you need to be sure what version of the
2829 -- compiler you are executing.
2831 S_GCC_Verb_Asm : aliased constant S := "/VERBOSE_ASM " &
2832 "-S,-verbose_asm,!-c";
2836 -- Use to cause the assembler source file to be generated, using S as the
2837 -- filetype, instead of the object file. This may be useful if you need
2838 -- to examine the generated assembly code.
2840 S_GCC_Warn : aliased constant S := "/WARNINGS=" &
2842 "!-gnatws,!-gnatwe " &
2855 "FAILING_ASSERTIONS " &
2857 "NO_FAILING_ASSERTIONS " &
2859 "BAD_FIXED_VALUES " &
2861 "NO_BAD_FIXED_VALUES " &
2863 "BIASED_REPRESENTATION " &
2865 "NO_BIASED_REPRESENTATION " &
2871 "MISSING_COMPONENT_CLAUSES " &
2873 "NOMISSING_COMPONENT_CLAUSES " &
2875 "IMPLICIT_DEREFERENCE " &
2877 "NO_IMPLICIT_DEREFERENCE " &
2881 "UNREFERENCED_FORMALS " &
2883 "NOUNREFERENCED_FORMALS " &
2885 "UNRECOGNIZED_PRAGMAS " &
2887 "NOUNRECOGNIZED_PRAGMAS " &
2895 "NOIMPLEMENTATION " &
2901 "CONSTANT_VARIABLES " &
2903 "NOCONSTANT_VARIABLES " &
2911 "NOMODIFIED_UNREF " &
2913 "SUSPICIOUS_MODULUS " &
2915 "NOSUSPICIOUS_MODULUS " &
2923 "OUT_PARAM_UNREF " &
2925 "NOOUT_PARAM_UNREF " &
2927 "INEFFECTIVE_INLINE " &
2929 "NOINEFFECTIVE_INLINE " &
2933 "PARAMETER_ORDER " &
2935 "NOPARAMETER_ORDER " &
2937 "NOMISSING_PARENS " &
2945 "NOOBJECT_RENAMES " &
2954 "-Wuninitialized " &
2959 "VARIABLES_UNINITIALIZED " &
2961 "NOVARIABLES_UNINITIALIZED " &
2963 "REVERSE_BIT_ORDER " &
2965 "NOREVERSE_BIT_ORDER " &
2967 "LOWBOUND_ASSUMED " &
2969 "NOLOWBOUND_ASSUMED " &
2971 "WARNINGS_OFF_PRAGMAS " &
2973 "NO_WARNINGS_OFF_PRAGMAS " &
2975 "IMPORT_EXPORT_PRAGMAS " &
2977 "NOIMPORT_EXPORT_PRAGMAS " &
2979 "LOCAL_RAISE_HANDLING " &
2981 "NOLOCAL_RAISE_HANDLING " &
2983 "ADA_2005_COMPATIBILITY " &
2985 "NOADA_2005_COMPATIBILITY " &
2987 "UNCHECKED_CONVERSIONS " &
2989 "NOUNCHECKED_CONVERSIONS " &
2993 -- Suppress the output of all warning messages from the GNAT front end.
2994 -- Note that it does not suppress warnings from the gcc back end.
2996 -- /WARNINGS[=(keyword[,...])]
2998 -- In addition to error messages, corresponding to illegalities as
2999 -- defined in the reference manual, the compiler detects two kinds of
3000 -- warning situations. First, the compiler considers some constructs
3001 -- suspicious and generates a warning message to alert you to a possible
3002 -- error. Second, if the compiler detects a situation that is sure to
3003 -- raise an exception at runtime, it generates a warning message.
3005 -- You may specify the following keywords to change this behavior:
3007 -- DEFAULT (D) The default behavior above.
3009 -- ALL Activate all optional warnings.
3010 -- Activates most optional warning messages,
3011 -- see remaining list in this section for
3012 -- details on optional warning messages that
3013 -- can be individually controlled.
3014 -- The warnings that are not turned on by
3015 -- this option are BIASED_ROUNDING,
3016 -- IMPLICIT_DEREFERENCE, HIDING and
3017 -- ELABORATION. All other optional Ada
3018 -- warnings are turned on.
3020 -- EVERY Activate every optional warning.
3021 -- Activates all optional warnings, including
3022 -- those listed above as exceptions for ALL.
3024 -- NOALL Suppress all optional errors.
3025 -- Suppresses all optional warning messages
3026 -- that can be activated by option ALL.
3028 -- ALL_GCC Request additional messages from the GCC
3029 -- backend. Most of these are not relevant
3032 -- CONDITIONALS Activate warnings for conditional
3033 -- Expressions used in tests that are known
3034 -- to be True or False at compile time. The
3035 -- default is that such warnings are not
3038 -- NOCONDITIONALS Suppress warnings for conditional
3039 -- expressions used in tests that are known
3040 -- to be True or False at compile time.
3042 -- IMPLICIT_DEREFERENCE Activate warnings on implicit dereferencing.
3043 -- The use of a prefix of an access type in an
3044 -- indexed component, slice, or selected component
3045 -- without an explicit .all will generate
3046 -- a warning. With this warning enabled, access
3047 -- checks occur only at points where an explicit
3048 -- .all appears in the source code (assuming no
3049 -- warnings are generated as a result of this
3050 -- option). The default is that such warnings are
3051 -- not generated. Note that /WARNINGS=ALL does not
3052 -- affect the setting of this warning option.
3054 -- NOIMPLICIT_DEREFERENCE Suppress warnings on implicit dereferencing.
3055 -- in indexed components, slices, and selected
3058 -- ELABORATION Activate warnings on missing pragma
3059 -- Elaborate_All statements. The default is
3060 -- that such warnings are not generated.
3062 -- NOELABORATION Suppress warnings on missing pragma
3063 -- Elaborate_All statements.
3065 -- ERRORS Warning messages are to be treated as errors.
3066 -- The warning string still appears, but the
3067 -- warning messages are counted as errors, and
3068 -- prevent the generation of an object file.
3070 -- HIDING Activate warnings on hiding declarations.
3071 -- A declaration is considered hiding if it is
3072 -- for a non-overloadable entity, and it declares
3073 -- an entity with the same name as some other
3074 -- entity that is directly or use-visible. The
3075 -- default is that such warnings are not
3078 -- NOHIDING Suppress warnings on hiding declarations.
3080 -- IMPLEMENTATION Activate warnings for a with of an internal
3081 -- GNAT implementation unit, defined as any unit
3082 -- from the Ada, Interfaces, GNAT, DEC or
3083 -- System hierarchies that is not documented in
3084 -- either the Ada Reference Manual or the GNAT
3085 -- Programmer's Reference Manual. Such units are
3086 -- intended only for internal implementation
3087 -- purposes and should not be with'ed by user
3088 -- programs. The default is that such warnings
3091 -- NOIMPLEMENTATION Disables warnings for a with of an internal
3092 -- GNAT implementation unit.
3094 -- INEFFECTIVE_INLINE Activate warnings on ineffective pragma Inlines
3095 -- Activates warnings for failure of front end
3096 -- inlining (activated by /INLINE=FULL) to inline
3097 -- a particular call. There are many reasons for
3098 -- not being able to inline a call, including most
3099 -- commonly that the call is too complex to
3100 -- inline. This warning can also be turned on
3101 -- using /INLINE=FULL.
3103 -- NOINEFFECTIVE_INLINE Suppress warnings on ineffective pragma Inlines
3104 -- Suppresses warnings on ineffective pragma
3105 -- Inlines. If the inlining mechanism cannot
3106 -- inline a call, it will simply ignore the
3107 -- request silently.
3109 -- MISSING_COMPONENT_CLAUSES
3110 -- Activate warnings for cases when there are
3111 -- component clauses for a record type, but not
3112 -- for every component of the record.
3114 -- NOMISSING_COMPONENT_CLAUSES
3115 -- Suppress warnings for cases when there are
3116 -- missing component clauses for a record type.
3119 -- Activate warnings for cases where parentheses
3120 -- are not used and the result is potential
3121 -- ambiguity from a reader's point of view.
3122 -- For example (not a > b) when a and b are
3123 -- modular means (not (a) > b) and very likely
3124 -- the programmer intended (not (a > b)).
3127 -- Suppress warnings for cases where parentheses
3128 -- are not used and the result is potential
3129 -- ambiguity from a reader's point of view.
3131 -- MODIFIED_UNREF Activates warnings for variables that are
3132 -- assigned (using an initialization value or with
3133 -- one or more assignment statements) but whose
3134 -- value is never read. The warning is suppressed
3135 -- for volatile variables and also for variables
3136 -- that are renamings of other variables or for
3137 -- which an address clause is given. This warning
3138 -- can also be turned on using /WARNINGS/OPTIONAL.
3140 -- NOMODIFIED_UNREF Disables warnings for variables that are
3141 -- assigned or initialized, but never read.
3143 -- NORMAL Sets normal warning mode, in which enabled
3144 -- warnings are issued and treated as warnings
3145 -- rather than errors. This is the default mode.
3146 -- It can be used to cancel the effect of an
3147 -- explicit /WARNINGS=SUPPRESS or
3148 -- /WARNINGS=ERRORS. It also cancels the effect
3149 -- of the implicit /WARNINGS=ERRORS that is
3150 -- activated by the use of /STYLE=GNAT.
3152 -- OBSOLESCENT Activates warnings for calls to subprograms
3153 -- marked with pragma Obsolescent and for use of
3154 -- features in Annex J of the Ada Reference
3155 -- Manual. In the case of Annex J, not all
3156 -- features are flagged. In particular use of the
3157 -- renamed packages (like Text_IO), use of package
3158 -- ASCII and use of the attribute 'Constrained are
3159 -- not flagged, since these are very common and
3160 -- would generate many annoying positive warnings.
3161 -- The default is that such warnings are not
3164 -- NOOBSOLESCENT Disables warnings on use of obsolescent
3167 -- OBJECT_RENAME Activate warnings for non limited objects
3168 -- renaming parameterless functions.
3170 -- NOOBJECT_RENAME Suppress warnings for non limited objects
3171 -- renaming parameterless functions.
3173 -- OPTIONAL Equivalent to ALL.
3175 -- NOOPTIONAL Equivalent to NOALL.
3177 -- OVERLAYS Activate warnings for possibly unintended
3178 -- initialization effects of defining address
3179 -- clauses that cause one variable to overlap
3180 -- another. The default is that such warnings
3183 -- NOOVERLAYS Suppress warnings on possibly unintended
3184 -- initialization effects of defining address
3185 -- clauses that cause one variable to overlap
3188 -- REDUNDANT Activate warnings for redundant constructs.
3189 -- In particular assignments of a variable to
3190 -- itself, and a type conversion that converts
3191 -- an object to its own type. The default
3192 -- is that such warnings are not generated.
3194 -- NOREDUNDANT Suppress warnings for redundant constructs.
3196 -- SUPPRESS Completely suppress the output of all warning
3197 -- messages. Same as /NOWARNINGS.
3199 -- UNCHECKED_CONVERSIONS Activates warnings on unchecked conversions.
3200 -- Causes warnings to be generated for
3201 -- unchecked conversions when the two types are
3202 -- known at compile time to have different sizes.
3203 -- The default is that such warnings are
3206 -- NOUNCHECKED_CONVERSIONS Suppress warnings for unchecked conversions.
3208 -- UNINITIALIZED Generate warnings for uninitialized variables.
3209 -- This is a GCC option, not an Ada option.
3210 -- You must also specify the /OPTIMIZE qualifier
3211 -- with a value other than NONE (in other words,
3212 -- this keyword works only if optimization is
3215 -- UNREFERENCED_FORMALS Activate warnings on unreferenced formals.
3216 -- Causes a warning to be generated if a formal
3217 -- parameter is not referenced in the body of
3218 -- the subprogram. This warning can also be turned
3219 -- on using option ALL or UNUSED.
3221 -- NOUNREFERENCED_FORMALS Suppress warnings on unreferenced formals.
3222 -- Suppresses warnings for unreferenced formal
3223 -- parameters. Note that the combination UNUSED
3224 -- followed by NOUNREFERENCED_FORMALS has the
3225 -- effect of warning on unreferenced entities
3226 -- other than subprogram formals.
3228 -- UNUSED Activates warnings to be generated for entities
3229 -- that are defined but not referenced, and for
3230 -- units that are with'ed and not referenced. In
3231 -- the case of packages, a warning is also
3232 -- generated if no entities in the package are
3233 -- referenced. This means that if the package
3234 -- is referenced but the only references are in
3235 -- use clauses or renames declarations, a warning
3236 -- is still generated. A warning is also generated
3237 -- for a generic package that is with'ed but never
3238 -- instantiated. In the case where a package or
3239 -- subprogram body is compiled, and there is a
3240 -- with on the corresponding spec that is only
3241 -- referenced in the body, a warning is also
3242 -- generated, noting that the with can be moved
3243 -- to the body. The default is that such warnings
3244 -- are not generated.
3246 -- NOUNUSED Suppress warnings for unused entities and
3249 -- VARIABLES_UNINITIALIZED Activates warnings on unassigned variables.
3250 -- Causes warnings to be generated when a variable
3251 -- is accessed which may not be properly
3253 -- The default is that such warnings are
3256 -- NOVARIABLES_UNINITIALIZED Suppress warnings for uninitialized
3259 S_GCC_WarnX : aliased constant S := "/NOWARNINGS " &
3261 -- NODOC (see /WARNINGS)
3263 S_GCC_No_Back : aliased constant S := "/NO_BACK_END_WARNINGS " &
3265 -- /NO_BACK_END_WARNINGS
3267 -- Inhibit all warning messages of the GCC back-end.
3269 S_GCC_All_Back : aliased constant S := "/ALL_BACK_END_WARNINGS " &
3271 -- /ALL_BACK_END_WARNINGS
3273 -- Activate all warning messages of the GCC back-end.
3275 S_GCC_Wide : aliased constant S := "/WIDE_CHARACTER_ENCODING=" &
3288 -- /NOWIDE_CHARACTER_ENCODING (D)
3289 -- /WIDE_CHARACTER_ENCODING[=encode-type]
3291 -- Specifies the mechanism used to encode wide characters. 'encode-type'
3292 -- is one of the following:
3294 -- BRACKETS (D) A wide character is encoded as ["xxxx"] where XXXX
3295 -- are four hexadecimal digits representing the coding
3296 -- ('Pos value) of the character in type
3297 -- Wide_Character. The hexadecimal digits may use upper
3298 -- or lower case letters.
3300 -- This notation can also be used for upper half
3301 -- Character values using the format ["xx"] where XX is
3302 -- two hexadecimal digits representing the coding ('Pos
3303 -- value) of the character in type Character (or
3304 -- Wide_Character). The hexadecimal digits may use upper
3307 -- NONE No wide characters are allowed. Same
3308 -- as /NOWIDE_CHARACTER_ENCODING.
3310 -- HEX In this encoding, a wide character is represented by
3311 -- the following five character sequence: ESC a b c d
3312 -- Where 'a', 'b', 'c', and 'd' are the four hexadecimal
3313 -- characters (using uppercase letters) of the wide
3314 -- character code. For example, ESC A345 is used to
3315 -- represent the wide character with code 16#A345#. This
3316 -- scheme is compatible with use of the full
3317 -- Wide_Character set.
3319 -- UPPER The wide character with encoding 16#abcd# where the
3320 -- upper bit is on (in other words, "a" is in the range
3321 -- 8-F) is represented as two bytes, 16#ab# and 16#cd#.
3322 -- The second byte may never be a format control
3323 -- character, but is not required to be in the upper
3324 -- half. This method can be also used for shift-JIS or
3325 -- EUC, where the internal coding matches the external
3328 -- SHIFT_JIS A wide character is represented by a two-character
3329 -- sequence, 16#ab# and 16#cd#, with the restrictions
3330 -- described for upper-half encoding as described above.
3331 -- The internal character code is the corresponding JIS
3332 -- character according to the standard algorithm for
3333 -- Shift-JIS conversion. Only characters defined in the
3334 -- JIS code set table can be used with this encoding
3337 -- UTF8 A wide character is represented using
3338 -- UCS Transformation Format 8 (UTF-8) as defined in Annex
3339 -- R of ISO 10646-1/Am.2. Depending on the character
3340 -- value, the representation is a one, two, or three byte
3343 -- 16#0000#-16#007f#: 2#0xxxxxxx#
3344 -- 16#0080#-16#07ff#: 2#110xxxxx# 2#10xxxxxx#
3345 -- 16#0800#-16#ffff#: 2#1110xxxx# 2#10xxxxxx# 2#10xxxxxx#
3347 -- where the xxx bits correspond to the left-padded bits
3348 -- of the 16-bit character value. Note that all lower
3349 -- half ASCII characters are represented as ASCII bytes
3350 -- and all upper half characters and other wide characters
3351 -- are represented as sequences of upper-half (The full
3352 -- UTF-8 scheme allows for encoding 31-bit characters as
3353 -- 6-byte sequences, but in this implementation, all UTF-8
3354 -- sequences of four or more bytes length will be treated
3357 -- EUC A wide character is represented by a two-character
3358 -- sequence 16#ab# and 16#cd#, with both characters being
3359 -- in the upper half. The internal character code is the
3360 -- corresponding JIS character according to the EUC
3361 -- encoding algorithm. Only characters defined in the JIS
3362 -- code set table can be used with this encoding method.
3364 S_GCC_WideX : aliased constant S := "/NOWIDE_CHARACTER_ENCODING " &
3366 -- NODOC (see /WIDE_CHARACTER_ENCODING)
3368 S_GCC_Xdebug : aliased constant S := "/XDEBUG " &
3373 -- Output expanded source files for source level debugging.
3374 -- The expanded source (see /EXPAND_SOURCE) is written to files
3375 -- with names formed by appending "_DG" to the input file name,
3376 -- The debugging information generated by the /DEBUG qualifier will then
3377 -- refer to the generated file. This allows source level debugging using
3378 -- the generated code which is sometimes useful for complex code, for
3379 -- example to find out exactly which part of a complex construction
3380 -- raised an exception. The maximum line length for the output is 72.
3382 S_GCC_Lxdebug : aliased constant S := "/LXDEBUG=#" &
3386 -- Output expanded source files for source level debugging.
3387 -- The expanded source (see /EXPAND_SOURCE) is written to files
3388 -- with names formed by appending "_DG" to the input file name,
3389 -- The debugging information generated by the /DEBUG qualifier will then
3390 -- refer to the generated file. This allows source level debugging using
3391 -- the generated code which is sometimes useful for complex code, for
3392 -- example to find out exactly which part of a complex construction
3393 -- raised an exception. The parameter is the maximum line length for
3396 S_GCC_Xref : aliased constant S := "/XREF=" &
3403 -- Normally the compiler generates full cross-referencing information in
3404 -- the .ALI file. This information is used by a number of tools,
3405 -- including GNAT FIND and GNAT XREF.
3407 -- GENERATE (D) Generate cross-referencing information.
3409 -- SUPPRESS Suppress cross-referencing information.
3410 -- This saves some space and may slightly
3411 -- speed up compilation, but means that some
3412 -- tools cannot be used.
3414 GCC_Switches : aliased constant Switches :=
3415 (S_GCC_Ada_83 'Access,
3416 S_GCC_Ada_95 'Access,
3417 S_GCC_Ada_05 'Access,
3420 S_GCC_AValid 'Access,
3421 S_GCC_Checks 'Access,
3422 S_GCC_ChecksX 'Access,
3423 S_GCC_Compres 'Access,
3424 S_GCC_Config 'Access,
3425 S_GCC_Current 'Access,
3426 S_GCC_Debug 'Access,
3427 S_GCC_DebugX 'Access,
3430 S_GCC_DistX 'Access,
3431 S_GCC_Error 'Access,
3432 S_GCC_ErrorX 'Access,
3433 S_GCC_Expand 'Access,
3434 S_GCC_Lexpand 'Access,
3435 S_GCC_Extend 'Access,
3438 S_GCC_Follow 'Access,
3439 S_GCC_Force 'Access,
3441 S_GCC_Generate'Access,
3444 S_GCC_Ident 'Access,
3445 S_GCC_IdentX 'Access,
3446 S_GCC_Ignore 'Access,
3447 S_GCC_Immed 'Access,
3448 S_GCC_Inline 'Access,
3449 S_GCC_InlineX 'Access,
3450 S_GCC_Intsrc 'Access,
3452 S_GCC_JustX 'Access,
3453 S_GCC_Length 'Access,
3455 S_GCC_Output 'Access,
3456 S_GCC_Machine 'Access,
3457 S_GCC_Mapping 'Access,
3459 S_GCC_Nesting 'Access,
3460 S_GCC_Noadc 'Access,
3461 S_GCC_Noload 'Access,
3462 S_GCC_Nostinc 'Access,
3463 S_GCC_Nostlib 'Access,
3464 S_GCC_NoWarnP 'Access,
3467 S_GCC_Pointer 'Access,
3468 S_GCC_Polling 'Access,
3469 S_GCC_Project 'Access,
3471 S_GCC_Report 'Access,
3472 S_GCC_ReportX 'Access,
3473 S_GCC_Repinfo 'Access,
3474 S_GCC_RepinfX 'Access,
3477 S_GCC_Search 'Access,
3478 S_GCC_Style 'Access,
3479 S_GCC_StyleX 'Access,
3480 S_GCC_Subdirs 'Access,
3481 S_GCC_Symbol 'Access,
3482 S_GCC_Syntax 'Access,
3483 S_GCC_Table 'Access,
3484 S_GCC_Trace 'Access,
3487 S_GCC_Units 'Access,
3488 S_GCC_Unique 'Access,
3489 S_GCC_Upcase 'Access,
3490 S_GCC_Valid 'Access,
3491 S_GCC_Verbose 'Access,
3492 S_GCC_Verb_Asm'Access,
3494 S_GCC_WarnX 'Access,
3496 S_GCC_WideX 'Access,
3497 S_GCC_No_Back 'Access,
3498 S_GCC_All_Back'Access,
3499 S_GCC_Xdebug 'Access,
3500 S_GCC_Lxdebug 'Access,
3501 S_GCC_Xref 'Access);
3503 ----------------------------
3504 -- Switches for GNAT ELIM --
3505 ----------------------------
3507 S_Elim_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3509 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3511 -- Add directories to the project search path.
3513 S_Elim_All : aliased constant S := "/ALL " &
3518 -- Also look for subprograms from the GNAT run time that can be
3519 -- eliminated. Note that when 'gnat.adc' is produced using this switch,
3520 -- the entire program must be recompiled with qualifier /ALL_FILES of
3523 S_Elim_Bind : aliased constant S := "/BIND_FILE=<" &
3525 -- /BIND_FILE=file_name
3527 -- Specifies file_name as the bind file to process. If this qualifier is
3528 -- not used, the name of the bind file is computed from the full expanded
3529 -- Ada name of a main subprogram.
3531 S_Elim_Comp : aliased constant S := "/COMPILER=@" &
3533 -- /COMPILER=path_name
3535 -- Instructs GNAT ELIM to use a specific gcc compiler instead of one
3536 -- available on the path.
3538 S_Elim_Config : aliased constant S := "/CONFIGURATION_PRAGMAS=<" &
3540 -- /CONFIGURATION_PRAGMAS=path_name
3542 -- Specifies a file that contains configuration pragmas.
3543 -- The file must be specified with absolute path.
3545 S_Elim_Current : aliased constant S := "/CURRENT_DIRECTORY " &
3547 -- /CURRENT_DIRECTORY (D)
3548 -- /NOCURRENT_DIRECTORY
3550 -- Look for source files in the default directory.
3552 S_Elim_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3554 -- /EXTERNAL_REFERENCE="name=val"
3556 -- Specifies an external reference to the project manager. Useful only if
3557 -- /PROJECT_FILE is used.
3560 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3562 S_Elim_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3564 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3565 -- /FOLLOW_LINKS_FOR_FILES
3567 -- Follow links when parsing project files
3569 S_Elim_GNATMAKE : aliased constant S := "/GNATMAKE=@" &
3571 -- /GNATMAKE=path_name
3573 -- Instructs GNAT MAKE to use a specific gnatmake instead of one available
3576 S_Elim_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3583 -- /MESSAGES_PROJECT_FILE[=messages-option]
3585 -- Specifies the "verbosity" of the parsing of project files.
3586 -- messages-option may be one of the following:
3588 -- DEFAULT (D) No messages are output if there is no error or warning.
3590 -- MEDIUM A small number of messages are output.
3592 -- HIGH A great number of messages are output, most of them not
3593 -- being useful for the user.
3595 S_Elim_Project : aliased constant S := "/PROJECT_FILE=<" &
3597 -- /PROJECT_FILE=filename
3599 -- Specifies the main project file to be used. The project files rooted
3600 -- at the main project file will be parsed before the invocation of the
3601 -- gnatelim. The source directories to be searched will be communicated
3602 -- to gnatelim through logical name ADA_PRJ_INCLUDE_FILE.
3604 S_Elim_Quiet : aliased constant S := "/QUIET " &
3609 -- Quiet mode: by default GNAT ELIM outputs to the standard error stream
3610 -- the number of program units left to be processed. This option turns
3613 S_Elim_Files : aliased constant S := "/FILES=@" &
3618 -- Take as arguments the files that are listed in the specified
3621 S_Elim_Log : aliased constant S := "/LOG " &
3626 -- Duplicate all the output sent to Stderr into a default log file.
3628 S_Elim_Logfile : aliased constant S := "/LOGFILE=@ " &
3631 -- /LOGFILE=logfilename
3633 -- Duplicate all the output sent to Stderr into a specified log file.
3635 S_Elim_Main : aliased constant S := "/MAIN=@ " &
3640 -- Specify the main subprogram of the partition to analyse.
3642 S_Elim_Out : aliased constant S := "/OUTPUT=@" &
3646 -- Specify the name of the output file.
3648 S_Elim_Time : aliased constant S := "/TIME " &
3653 -- Print out execution time
3655 S_Elim_Search : aliased constant S := "/SEARCH=*" &
3657 -- /SEARCH=(directory, ...)
3659 -- When looking for source files also look in the specified directories.
3661 S_Elim_Subdirs : aliased constant S := "/SUBDIRS=<" &
3665 -- The actual directories (object, exec, library, ...) are subdirectories
3666 -- of the directory specified in the project file. If the subdirectory
3667 -- does not exist, it is created automatically.
3669 S_Elim_Verb : aliased constant S := "/VERBOSE " &
3674 -- Verbose mode: GNAT ELIM version information is output as Ada comments
3675 -- to the standard output stream. Also, in addition to the number of
3676 -- program units left, GNAT ELIM will output the name of the current unit
3679 S_Elim_Warn : aliased constant S := "/WARNINGS=" &
3685 -- /WARNINGS[=(keyword[,...])]
3687 -- The following keywords are supported:
3689 -- NORMAL (D) Print warning all the messages.
3690 -- QUIET Some warning messages are suppressed
3692 Elim_Switches : aliased constant Switches :=
3693 (S_Elim_Add 'Access,
3695 S_Elim_Bind 'Access,
3696 S_Elim_Comp 'Access,
3697 S_Elim_Config 'Access,
3698 S_Elim_Current 'Access,
3700 S_Elim_Files 'Access,
3701 S_Elim_Follow 'Access,
3702 S_Elim_GNATMAKE'Access,
3704 S_Elim_Logfile 'Access,
3705 S_Elim_Main 'Access,
3706 S_Elim_Mess 'Access,
3708 S_Elim_Project 'Access,
3709 S_Elim_Quiet 'Access,
3710 S_Elim_Search 'Access,
3711 S_Elim_Subdirs 'Access,
3712 S_Elim_Time 'Access,
3713 S_Elim_Verb 'Access,
3714 S_Elim_Warn 'Access);
3716 ----------------------------
3717 -- Switches for GNAT FIND --
3718 ----------------------------
3720 S_Find_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3722 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3724 -- Add directories to the project search path.
3726 S_Find_All : aliased constant S := "/ALL_FILES " &
3731 -- If this switch is present, FIND and XREF will parse the read-only
3732 -- files found in the library search path. Otherwise, these files will
3733 -- be ignored. This option can be used to protect Gnat sources or your
3734 -- own libraries from being parsed, thus making FIND and XREF much
3735 -- faster, and their output much smaller.
3737 S_Find_Deriv : aliased constant S := "/DERIVED_TYPE_INFORMATION " &
3739 -- /NODERIVED_TYPE_INFORMATION (D)
3740 -- /DERIVED_TYPE_INFORMATION
3742 -- Output the parent type reference for each matching derived types.
3744 S_Find_Expr : aliased constant S := "/EXPRESSIONS " &
3746 -- /NOEXPRESSIONS (D)
3749 -- By default, FIND accepts the simple regular expression set for pattern.
3750 -- If this switch is set, then the pattern will be considered as a full
3751 -- Unix-style regular expression.
3753 S_Find_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3755 -- /EXTERNAL_REFERENCE="name=val"
3757 -- Specifies an external reference to the project manager. Useful only if
3758 -- /PROJECT_FILE is used.
3761 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3763 S_Find_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3765 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3766 -- /FOLLOW_LINKS_FOR_FILES
3768 -- Follow links when parsing project files
3770 S_Find_Full : aliased constant S := "/FULL_PATHNAME " &
3772 -- /NOFULL_PATHNAME (D)
3775 -- If this switch is set, the output file names will be preceded by their
3776 -- directory (if the file was found in the search path). If this switch
3777 -- is not set, the directory will not be printed.
3779 S_Find_Ignore : aliased constant S := "/IGNORE_LOCALS " &
3781 -- /NOIGNORE_LOCALS (D)
3784 -- If this switch is set, information is output only for library-level
3785 -- entities, ignoring local entities. The use of this switch may
3786 -- accelerate FIND and XREF.
3788 S_Find_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3795 -- /MESSAGES_PROJECT_FILE[=messages-option]
3797 -- Specifies the "verbosity" of the parsing of project files.
3798 -- messages-option may be one of the following:
3800 -- DEFAULT (D) No messages are output if there is no error or warning.
3802 -- MEDIUM A small number of messages are output.
3804 -- HIGH A great number of messages are output, most of them not
3805 -- being useful for the user.
3807 S_Find_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
3811 -- Do not look for sources in the system default directory.
3813 S_Find_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
3817 -- Do not look for library files in the system default directory.
3819 S_Find_Object : aliased constant S := "/OBJECT_SEARCH=*" &
3821 -- /OBJECT_SEARCH=(directory,...)
3823 -- When searching for library and object files, look in the specified
3824 -- directories. The order in which library files are searched is the same
3827 S_Find_Print : aliased constant S := "/PRINT_LINES " &
3829 -- /NOPRINT_LINES (D)
3832 -- Output the content of the Ada source file lines were the entity was
3835 S_Find_Project : aliased constant S := "/PROJECT=@" &
3839 -- Specify a project file to use. By default, FIND and XREF will try to
3840 -- locate a project file in the current directory.
3842 -- If a project file is either specified or found by the tools, then the
3843 -- content of the source directory and object directory lines are added
3844 -- as if they had been specified respectively by /SOURCE_SEARCH and
3847 -- This qualifier is not compatible with /PROJECT_FILE
3849 S_Find_Prj : aliased constant S := "/PROJECT_FILE=<" &
3851 -- /PROJECT_FILE=filename
3853 -- Specifies the main project file to be used. The project files rooted
3854 -- at the main project file will be parsed before looking for sources.
3855 -- The source and object directories to be searched will be communicated
3856 -- to gnatfind through logical names ADA_PRJ_INCLUDE_FILE and
3857 -- ADA_PRJ_OBJECTS_FILE.
3859 S_Find_Ref : aliased constant S := "/REFERENCES " &
3861 -- /NOREFERENCES (D)
3864 -- By default, FIND will output only the information about the
3865 -- declaration, body or type completion of the entities. If this switch
3866 -- is set, the FIND will locate every reference to the entities in the
3867 -- files specified on the command line (or in every file in the search
3868 -- path if no file is given on the command line).
3870 S_Find_Search : aliased constant S := "/SEARCH=*" &
3872 -- /SEARCH=(directory,...)
3875 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
3877 S_Find_Source : aliased constant S := "/SOURCE_SEARCH=*" &
3879 -- /SOURCE_SEARCH=(directory,...)
3881 -- When looking for source files also look in the specified directories.
3882 -- The order in which source file search is undertaken is the same as for
3885 S_Find_Subdirs : aliased constant S := "/SUBDIRS=<" &
3889 -- The actual directories (object, exec, library, ...) are subdirectories
3890 -- of the directory specified in the project file. If the subdirectory
3891 -- does not exist, it is created automatically.
3893 S_Find_Types : aliased constant S := "/TYPE_HIERARCHY " &
3895 -- /NOTYPE_HIERARCHY (D)
3898 -- Output the type hierarchy for the specified type. It acts like the
3899 -- /DERIVED_TYPE_INFORMATION qualifier, but recursively from parent type
3900 -- to parent type. When this qualifier is specified it is not possible to
3901 -- specify more than one file.
3903 Find_Switches : aliased constant Switches :=
3904 (S_Find_Add 'Access,
3906 S_Find_Deriv 'Access,
3907 S_Find_Expr 'Access,
3909 S_Find_Follow 'Access,
3910 S_Find_Full 'Access,
3911 S_Find_Ignore 'Access,
3912 S_Find_Mess 'Access,
3913 S_Find_Nostinc 'Access,
3914 S_Find_Nostlib 'Access,
3915 S_Find_Object 'Access,
3916 S_Find_Print 'Access,
3917 S_Find_Project 'Access,
3920 S_Find_Search 'Access,
3921 S_Find_Source 'Access,
3922 S_Find_Subdirs 'Access,
3923 S_Find_Types 'Access);
3925 ------------------------------
3926 -- Switches for GNAT KRUNCH --
3927 ------------------------------
3929 S_Krunch_Count : aliased constant S := "/COUNT=#" &
3934 -- Limit file names to nnn characters (where nnn is a decimal
3935 -- integer). The maximum file name length is 39, but if you want to
3936 -- generate a set of files that would be usable if ported to a system
3937 -- with some different maximum file length, then a different value can
3940 Krunch_Switches : aliased constant Switches :=
3941 (1 .. 1 => S_Krunch_Count 'Access);
3943 ----------------------------
3944 -- Switches for GNAT LINK --
3945 ----------------------------
3947 S_Link_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3949 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3951 -- Add directories to the project search path.
3953 S_Link_Bind : aliased constant S := "/BIND_FILE=" &
3958 -- /BIND_FILE=[bind-file-option]
3960 -- Specifies the language of the binder generated file.
3962 -- ADA (D) Binder file is Ada.
3964 -- C Binder file is 'C'.
3966 S_Link_Debug : aliased constant S := "/DEBUG=" &
3976 -- /DEBUG[=debug-option]
3978 -- Specifies the amount of debugging information included. 'debug-option'
3979 -- is one of the following:
3981 -- ALL (D) Include full debugging information.
3983 -- NONE Provide no debugging information. Same as /NODEBUG.
3985 -- TRACEBACK Provide sufficient debug information for a traceback.
3987 -- NOTRACEBACK Same as NONE.
3989 S_Link_Nodebug : aliased constant S := "/NODEBUG " &
3991 -- NODOC (see /DEBUG)
3993 S_Link_Execut : aliased constant S := "/EXECUTABLE=@" &
3995 -- /EXECUTABLE=exec-name
3997 -- 'exec-name' specifies an alternative name for the generated executable
3998 -- program. If this qualifier switch is omitted, the executable is called
3999 -- the name of the main unit. So "$ GNAT LINK TRY.ALI" creates an
4000 -- executable called TRY.EXE.
4002 S_Link_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4004 -- /EXTERNAL_REFERENCE="name=val"
4006 -- Specifies an external reference to the project manager. Useful only if
4007 -- /PROJECT_FILE is used.
4010 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4012 S_Link_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4014 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4015 -- /FOLLOW_LINKS_FOR_FILES
4017 -- Follow links when parsing project files
4019 S_Link_Forlink : aliased constant S := "/FOR_LINKER=" & '"' &
4020 "--for-linker=" & '"';
4021 -- /FOR_LINKER=<string>
4023 -- Transmit the option <string> to the underlying linker.
4025 S_Link_Force : aliased constant S := "/FORCE_OBJECT_FILE_LIST " &
4027 -- /NOFORCE_OBJECT_FILE_LIST (D)
4028 -- /FORCE_OBJECT_FILE_LIST
4030 -- Forces the generation of a file that contains commands for the linker.
4031 -- This is useful in some cases to deal with special situations where the
4032 -- command line length is exceeded.
4034 S_Link_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
4035 "--for-linker=IDENT=" &
4037 -- /IDENTIFICATION="<string>"
4039 -- "<string>" specifies the string to be stored in the image file ident-
4040 -- ification field in the image header. It overrides any pragma Ident
4041 -- specified string.
4043 S_Link_Libdir : aliased constant S := "/LIBDIR=*" &
4045 -- /LIBDIR=(directory, ...)
4047 -- Look for libraries in the specified directories.
4049 S_Link_Library : aliased constant S := "/LIBRARY=|" &
4053 -- Link with library named "xyz".
4055 S_Link_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4062 -- /MESSAGES_PROJECT_FILE[=messages-option]
4064 -- Specifies the "verbosity" of the parsing of project files.
4065 -- messages-option may be one of the following:
4067 -- DEFAULT (D) No messages are output if there is no error or warning.
4069 -- MEDIUM A small number of messages are output.
4071 -- HIGH A great number of messages are output, most of them not
4072 -- being useful for the user.
4074 S_Link_Nocomp : aliased constant S := "/NOCOMPILE " &
4078 -- Do not compile the file generated by the binder.
4079 -- This may be used when a link is rerun with different options,
4080 -- but there is no need to recompile the binder generated file.
4082 S_Link_Noinhib : aliased constant S := "/NOINHIBIT-EXEC " &
4083 "--for-linker=--noinhibit-exec";
4086 -- Delete executable if there are errors or warnings.
4088 S_Link_Nofiles : aliased constant S := "/NOSTART_FILES " &
4092 -- Link in default image initialization and startup functions.
4094 S_Link_Project : aliased constant S := "/PROJECT_FILE=<" &
4096 -- /PROJECT_FILE=filename
4098 -- Specifies the main project file to be used. The project files rooted
4099 -- at the main project file will be parsed before the invocation of the
4101 -- The source and object directories to be searched will be communicated
4102 -- to the linker through logical names ADA_PRJ_INCLUDE_FILE and
4103 -- ADA_PRJ_OBJECTS_FILE.
4105 S_Link_Return : aliased constant S := "/RETURN_CODES=" &
4107 "!-mvms-return-codes " &
4109 "-mvms-return-codes";
4110 -- /RETURN_CODES=POSIX (D)
4111 -- /RETURN_CODES=VMS
4113 -- Specifies the style of codes returned by
4114 -- Ada.Command_Line.Set_Exit_Status. Must be used in conjunction with
4115 -- and match the Bind qualifier with the same name.
4117 -- POSIX (D) Return Posix compatible exit codes.
4119 -- VMS Return VMS compatible exit codes. The value returned
4120 -- is identically equal to the Set_Exit_Status parameter.
4122 S_Link_Static : aliased constant S := "/STATIC " &
4123 "--for-linker=-static";
4127 -- Indicate to the linker that the link is static.
4129 S_Link_Subdirs : aliased constant S := "/SUBDIRS=<" &
4133 -- The actual directories (object, exec, library, ...) are subdirectories
4134 -- of the directory specified in the project file. If the subdirectory
4135 -- does not exist, it is created automatically.
4137 S_Link_Verb : aliased constant S := "/VERBOSE " &
4142 -- Causes additional information to be output, including a full list of
4143 -- the included object files. This switch option is most useful when you
4144 -- want to see what set of object files are being used in the link step.
4146 S_Link_ZZZZZ : aliased constant S := "/<other> " &
4150 -- Any other switch that will be transmitted to the underlying linker.
4152 Link_Switches : aliased constant Switches :=
4153 (S_Link_Add 'Access,
4154 S_Link_Bind 'Access,
4155 S_Link_Debug 'Access,
4156 S_Link_Nodebug 'Access,
4157 S_Link_Execut 'Access,
4159 S_Link_Follow 'Access,
4160 S_Link_Forlink 'Access,
4161 S_Link_Force 'Access,
4162 S_Link_Ident 'Access,
4163 S_Link_Libdir 'Access,
4164 S_Link_Library 'Access,
4165 S_Link_Mess 'Access,
4166 S_Link_Nocomp 'Access,
4167 S_Link_Nofiles 'Access,
4168 S_Link_Noinhib 'Access,
4169 S_Link_Project 'Access,
4170 S_Link_Return 'Access,
4171 S_Link_Static 'Access,
4172 S_Link_Subdirs 'Access,
4173 S_Link_Verb 'Access,
4174 S_Link_ZZZZZ 'Access);
4176 ----------------------------
4177 -- Switches for GNAT LIST --
4178 ----------------------------
4180 S_List_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4182 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4184 -- Add directories to the project search path.
4186 S_List_All : aliased constant S := "/ALL_UNITS " &
4191 -- Consider all units, including those of the predefined Ada library.
4192 -- Especially useful with /DEPENDENCIES.
4194 S_List_Allproj : aliased constant S := "/ALL_PROJECTS " &
4196 -- /NOALL_PROJECTS (D)
4199 -- When used with a project file and no file specified, indicate
4200 -- that gnatls should be called for all sources of all projects in
4201 -- the project tree.
4203 S_List_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4205 -- /CURRENT_DIRECTORY (D)
4206 -- /NOCURRENT_DIRECTORY
4208 -- Look for source, library or object files in the default directory.
4210 S_List_Depend : aliased constant S := "/DEPENDENCIES " &
4212 -- /NODEPENDENCIES (D)
4215 S_List_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4217 -- /EXTERNAL_REFERENCE="name=val"
4219 -- Specifies an external reference to the project manager. Useful only if
4220 -- /PROJECT_FILE is used.
4223 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4225 S_List_Files : aliased constant S := "/FILES=@" &
4229 -- Take as arguments the files that are listed in the specified
4232 S_List_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4234 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4235 -- /FOLLOW_LINKS_FOR_FILES
4237 -- Follow links when parsing project files
4239 S_List_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4246 -- /MESSAGES_PROJECT_FILE[=messages-option]
4248 -- Specifies the "verbosity" of the parsing of project files.
4249 -- messages-option may be one of the following:
4251 -- DEFAULT (D) No messages are output if there is no error or warning.
4253 -- MEDIUM A small number of messages are output.
4255 -- HIGH A great number of messages are output, most of them not
4256 -- being useful for the user.
4258 S_List_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4262 -- Do not look for sources of the run time in the standard directory.
4264 S_List_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4266 -- /OBJECT_SEARCH=(directory,...)
4268 -- When looking for library and object files look also in the specified
4271 S_List_Output : aliased constant S := "/OUTPUT=" &
4284 -- /OUTPUT=(option,option,...)
4286 -- SOURCES (D) Only output information about source files.
4288 -- DEPEND List sources from which specified units depend on.
4290 -- OBJECTS Only output information about object files.
4292 -- UNITS Only output information about compilation units.
4294 -- OPTIONS Output the list of options.
4296 -- VERBOSE Output the complete source and object paths.
4297 -- Do not use the default column layout but instead
4298 -- use long format giving as much as information
4299 -- possible on each requested units, including
4300 -- special characteristics.
4302 S_List_Project : aliased constant S := "/PROJECT_FILE=<" &
4304 -- /PROJECT_FILE=filename
4306 -- Specifies the main project file to be used. The project files rooted
4307 -- at the main project file will be parsed before doing any listing.
4308 -- The source and object directories to be searched will be communicated
4309 -- to gnatlist through logical names ADA_PRJ_INCLUDE_FILE and
4310 -- ADA_PRJ_OBJECTS_FILE.
4312 S_List_Search : aliased constant S := "/SEARCH=*" &
4314 -- /SEARCH=(directory,...)
4316 -- Search the specified directories for both source and object files.
4318 S_List_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4320 -- /SOURCE_SEARCH=(directory,...)
4322 -- When looking for source files also look in the specified directories.
4324 S_List_Subdirs : aliased constant S := "/SUBDIRS=<" &
4328 -- The actual directories (object, exec, library, ...) are subdirectories
4329 -- of the directory specified in the project file. If the subdirectory
4330 -- does not exist, it is created automatically.
4332 List_Switches : aliased constant Switches :=
4333 (S_List_Add 'Access,
4335 S_List_Allproj 'Access,
4336 S_List_Current 'Access,
4337 S_List_Depend 'Access,
4339 S_List_Files 'Access,
4340 S_List_Follow 'Access,
4341 S_List_Mess 'Access,
4342 S_List_Nostinc 'Access,
4343 S_List_Object 'Access,
4344 S_List_Output 'Access,
4345 S_List_Project 'Access,
4346 S_List_Search 'Access,
4347 S_List_Source 'Access,
4348 S_List_Subdirs 'Access);
4350 ----------------------------
4351 -- Switches for GNAT MAKE --
4352 ----------------------------
4354 S_Make_Actions : aliased constant S := "/ACTIONS=" &
4361 -- /ACTIONS=(keyword[,...])
4363 -- GNAT MAKE default behavior is to check if the sources are up to date,
4364 -- compile those sources that are not up to date, bind the main source,
4365 -- then link the executable.
4367 -- With the /ACTIONS qualifier, GNAT MAKE may be restricted to one or
4368 -- two of these three steps:
4375 -- You may specify one or more of the following keywords to the /ACTIONS
4378 -- BIND Bind only. Can be combined with /ACTIONS=COMPILE
4379 -- to do compilation and binding, but no linking.
4380 -- Can be combined with /ACTIONS=LINK to do binding and
4381 -- linking. When not combined with /ACTIONS=COMPILE,
4382 -- all the units in the closure of the main program must
4383 -- have been previously compiled and must be up to date.
4385 -- COMPILE Compile only. Do not perform binding, except when
4386 -- /ACTIONS=BIND is also specified. Do not perform
4387 -- linking, except if both /ACTIONS=BIND and /ACTIONS=LINK
4388 -- are also specified.
4390 -- LINK Link only. Can be combined with /ACTIONS=BIND to do
4391 -- binding and linking. Linking will not be performed
4392 -- if combined with /ACTIONS=COMPILE but not with
4393 -- /ACTIONS=BIND\. When not combined with /ACTIONS=BIND
4394 -- all the units in the closure of the main program must
4395 -- have been previously compiled and must be up to date,
4396 -- and the main program need to have been bound.
4398 S_Make_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4400 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4402 -- Add directories to the project search path.
4404 S_Make_All : aliased constant S := "/ALL_FILES " &
4409 -- Consider all files in the make process, even the GNAT internal system
4410 -- files (for example, the predefined Ada library files). By default,
4411 -- GNAT MAKE does not check these files (however, if there is an
4412 -- installation problem, it will be caught when GNAT MAKE binds your
4413 -- program). You may have to specify this qualifier if you are working on
4414 -- GNAT itself. The vast majority of GNAT MAKE users never need to
4415 -- specify this switch. All GNAT internal files with will be compiled
4416 -- with /STYLE_CHECK=GNAT.
4418 S_Make_Allproj : aliased constant S := "/ALL_PROJECTS " &
4420 -- /NOALL_PROJECTS (D)
4424 -- When used without project files, it is equivalent to /UNIQUE.
4425 -- When used with a project file with no main (neither on the command
4426 -- line nor in the attribute Main) check every source of every project,
4427 -- recompile all sources that are not up to date and rebuild libraries
4430 S_Make_Bind : aliased constant S := "/BINDER_QUALIFIERS=?" &
4432 -- /BINDER_QUALIFIERS
4434 -- Any qualifiers specified after this qualifier other than
4435 -- /COMPILER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4436 -- passed to any GNAT BIND commands generated by GNAT MAKE.
4438 S_Make_Bindprj : aliased constant S := "/BND_LNK_FULL_PROJECT " &
4440 -- /BND_LNK_FULL_PROJECT
4442 -- Bind and link all sources of a project, without any consideration
4443 -- to attribute Main, if there is one. This qualifier need to be
4444 -- used in conjunction with the /PROJECT_FILE= qualifier and cannot
4445 -- be used with a main subprogram on the command line or for
4446 -- a library project file. As the binder is invoked with the option
4447 -- meaning "No Ada main subprogram", the user must ensure that the
4448 -- proper options are specified to the linker. This qualifier is
4449 -- normally used when the main subprogram is in a foreign language
4452 S_Make_Comp : aliased constant S := "/COMPILER_QUALIFIERS=?" &
4454 -- /COMPILER_QUALIFIERS
4456 -- Any qualifiers specified after this qualifier other than
4457 -- /BINDER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4458 -- passed to any GNAT COMPILE commands generated by GNAT MAKE.
4460 S_Make_Cond : aliased constant S := "/CONDITIONAL_SOURCE_SEARCH=*" &
4462 -- /CONDITIONAL_SOURCE_SEARCH=dir
4464 -- Equivalent to "/SOURCE_SEARCH=dir /SKIP_MISSING=dir".
4466 S_Make_Cont : aliased constant S := "/CONTINUE_ON_ERROR " &
4468 -- /NOCONTINUE_ON_ERROR (D)
4469 -- /CONTINUE_ON_ERROR
4471 -- Keep going. Continue as much as possible after a compilation error.
4472 -- To ease the programmer's task in case of compilation errors, the list
4473 -- of sources for which the compile fails is given when GNAT MAKE
4476 S_Make_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4478 -- /CURRENT_DIRECTORY (D)
4479 -- /NOCURRENT_DIRECTORY
4481 -- Look for source, library or object files in the default directory.
4483 S_Make_Dep : aliased constant S := "/DEPENDENCIES_LIST " &
4485 -- /NODEPENDENCIES_LIST (D)
4486 -- /DEPENDENCIES_LIST
4488 -- Check if all objects are up to date. If they are, output the object
4489 -- dependences to SYS$OUTPUT in a form that can be directly exploited in
4490 -- a Unix-style Makefile. By default, each source file is prefixed with
4491 -- its (relative or absolute) directory name. This name is whatever you
4492 -- specified in the various /SOURCE_SEARCH and /SEARCH qualifiers. If
4493 -- you also specify the /QUIET qualifier, only the source file names,
4494 -- without relative paths, are output. If you just specify the
4495 -- /DEPENDENCY_LIST qualifier, dependencies of the GNAT internal system
4496 -- files are omitted. This is typically what you want. If you also
4497 -- specify the /ALL_FILES qualifier, dependencies of the GNAT internal
4498 -- files are also listed. Note that dependencies of the objects in
4499 -- external Ada libraries (see the /SKIP_MISSING qualifier) are never
4502 S_Make_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
4504 -- /DIRECTORY_OBJECTS=<file>
4506 -- Put all object files and .ALI files in <file>.
4507 -- This qualifier is not compatible with /PROJECT_FILE.
4509 S_Make_Disprog : aliased constant S := "/DISPLAY_PROGRESS " &
4511 -- /NOPLAY_PROGRESS (D)
4512 -- /DISPLAY_PROGRESS
4514 -- Display progress for each source, up to date or not, as a single line
4515 -- completed x out of y (zz%)
4516 -- If the file needs to be compiled this is displayed after the
4517 -- invocation of the compiler. These lines are displayed even in quiet
4518 -- output mode (/QUIET).
4520 S_Make_Doobj : aliased constant S := "/DO_OBJECT_CHECK " &
4522 -- /NODO_OBJECT_CHECK (D)
4525 -- Don't compile, bind, or link. Output a single command that will
4526 -- recompile an out of date unit, if any. Repeated use of this option,
4527 -- followed by carrying out the indicated compilation, will eventually
4528 -- result in recompiling all required units.
4530 -- If any ALI is missing during the process, GNAT MAKE halts and
4531 -- displays an error message.
4533 S_Make_Execut : aliased constant S := "/EXECUTABLE=@" &
4535 -- /EXECUTABLE=exec-name
4537 -- The name of the final executable program will be 'exec_name'. If this
4538 -- qualifier is omitted the default name for the executable will be the
4539 -- name of the input file with an EXE filetype. You may prefix
4540 -- 'exec_name' with a relative or absolute directory path.
4542 S_Make_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4544 -- /EXTERNAL_REFERENCE="name=val"
4546 -- Specifies an external reference to the project manager. Useful only if
4547 -- /PROJECT_FILE is used.
4550 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4552 S_Make_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4554 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4555 -- /FOLLOW_LINKS_FOR_FILES
4557 -- Follow links when parsing project files
4559 S_Make_Force : aliased constant S := "/FORCE_COMPILE " &
4561 -- /NOFORCE_COMPILE (D)
4564 -- Force recompilations. Recompile all sources, even though some object
4565 -- files may be up to date, but don't recompile predefined or GNAT
4566 -- internal files unless the /ALL_FILES qualifier is also specified.
4568 S_Make_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
4570 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
4571 -- /FULL_PATH_IN_BRIEF_MESSAGES
4573 -- When using project files, if some errors or warnings are detected
4574 -- during parsing and verbose mode is not in effect (no use of qualifier
4575 -- /VERBOSE), then error lines start with the full path name of the
4576 -- project file, rather than its simple file name.
4578 S_Make_Hi_Verb : aliased constant S := "/HIGH_VERBOSITY " &
4580 -- /NOHIGH_VERBOSITY (D)
4583 -- Displays the reason for all recompilations GNAT MAKE decides are
4584 -- necessary, in high verbosity. Equivalent to /VERBOSE.
4586 S_Make_Inplace : aliased constant S := "/IN_PLACE " &
4591 -- In normal mode, GNAT MAKE compiles all object files and ALI files
4592 -- into the current directory. If the /IN_PLACE switch is used,
4593 -- then instead object files and ALI files that already exist are over-
4594 -- written in place. This means that once a large project is organized
4595 -- into separate directories in the desired manner, then GNAT MAKE will
4596 -- automatically maintain and update this organization. If no ALI files
4597 -- are found on the Ada object path, the new object and ALI files are
4598 -- created in the directory containing the source being compiled.
4600 S_Make_Index : aliased constant S := "/SOURCE_INDEX=#" &
4602 -- /SOURCE_INDEX=nnn
4604 -- Specifies the index of the units in the source file
4605 -- By default, source files are mono-unit and there is no index
4606 -- When /SOURCE_INDEX=nnn is specified, only one main may be specified
4607 -- on the command line.
4609 S_Make_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
4611 -- /LIBRARY_SEARCH=(directory[,...])
4613 -- Add the specified directories to the list of directories in which the
4614 -- linker will search for libraries.
4616 S_Make_Link : aliased constant S := "/LINKER_QUALIFIERS=?" &
4618 -- /LINKER_QUALIFIERS
4620 -- Any qualifiers specified after this qualifier other than
4621 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /MAKE_QUALIFIERS will be
4622 -- passed to any GNAT LINK commands generated by GNAT LINK.
4624 S_Make_Low_Verb : aliased constant S := "/LOW_VERBOSITY " &
4626 -- /NOLOW_VERBOSITY (D)
4629 -- Displays the reason for all recompilations GNAT MAKE decides are
4630 -- necessary, in low verbosity, that is with less output than
4631 -- /MEDIUM_VERBOSITY, /HIGH_VERBOSITY or /VERBOSE.
4633 S_Make_Make : aliased constant S := "/MAKE_QUALIFIERS=?" &
4637 -- Any qualifiers specified after this qualifier other than
4638 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /LINKER_QUALIFIERS
4639 -- are for the benefit of GNAT MAKE itself.
4641 S_Make_Mapping : aliased constant S := "/MAPPING " &
4646 -- Use a mapping file. A mapping file is a way to communicate to the
4647 -- compiler two mappings: from unit names to file names (without any
4648 -- directory information) and from file names to path names (with full
4649 -- directory information). These mappings are used by the compiler to
4650 -- short-circuit the path search. When GNAT MAKE is invoked with this
4651 -- qualifier, it will create a mapping file, initially populated by the
4652 -- project manager, if /PROJECT_File= is used, otherwise initially empty.
4653 -- Each invocation of the compiler will add the newly accessed sources to
4654 -- the mapping file. This will improve the source search during the next
4655 -- invocations of the compiler
4657 S_Make_Med_Verb : aliased constant S := "/MEDIUM_VERBOSITY " &
4659 -- /NOMEDIUM_VERBOSITY (D)
4660 -- /MEDIUM_VERBOSITY
4662 -- Displays the reason for all recompilations GNAT MAKE decides are
4663 -- necessary, in medium verbosity, that is with potentially less output
4664 -- than /HIGH_VERBOSITY or /VERBOSE.
4666 S_Make_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4673 -- /MESSAGES_PROJECT_FILE[=messages-option]
4675 -- Specifies the "verbosity" of the parsing of project files.
4676 -- messages-option may be one of the following:
4678 -- DEFAULT (D) No messages are output if there is no error or warning.
4680 -- MEDIUM A small number of messages are output.
4682 -- HIGH A great number of messages are output, most of them not
4683 -- being useful for the user.
4685 S_Make_Minimal : aliased constant S := "/MINIMAL_RECOMPILATION " &
4687 -- /NOMINIMAL_RECOMPILATION (D)
4688 -- /MINIMAL_RECOMPILATION
4690 -- Specifies that the minimum necessary amount of recompilation
4691 -- be performed. In this mode GNAT MAKE ignores time stamp differences
4692 -- when the only modifications to a source file consist in
4693 -- adding/removing comments, empty lines, spaces or tabs.
4695 S_Make_Missing : aliased constant S := "/CREATE_MISSING_DIRS " &
4697 -- /NOCREATE_MISSING_DIRS (D)
4698 -- /CREATE_MISSING_DIRS
4700 -- When an object directory, a library directory or an exec directory
4701 -- in missing, attempt to create the directory.
4703 S_Make_Nolink : aliased constant S := "/NOLINK " &
4707 -- Compile only. Do not perform binding and linking. If the root unit is
4708 -- not a main unit, this is the default. Otherwise GNAT MAKE will
4709 -- attempt binding and linking unless all objects are up to date and the
4710 -- executable is more recent than the objects.
4711 -- This is equivalent to /ACTIONS=COMPILE
4713 S_Make_Nomain : aliased constant S := "/NOMAIN " &
4717 -- No main subprogram. Bind and link the program even if the unit name
4718 -- given on the command line is a package name. The resulting executable
4719 -- will execute the elaboration routines of the package and its closure,
4720 -- then the finalization routines.
4722 S_Make_Nonpro : aliased constant S := "/NON_PROJECT_UNIT_COMPILATION " &
4724 -- /NON_PROJECT_UNIT_COMPILATION
4726 -- Normally, when using project files, a unit that is not part of any
4727 -- project file, cannot be compile. These units may be compile, when
4728 -- needed, if this qualifier is specified.
4730 S_Make_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4734 -- Do not look for sources the in the system default directory.
4736 S_Make_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
4740 -- Do not look for library files in the system default directory.
4742 S_Make_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4744 -- /OBJECT_SEARCH=(directory[,...])
4746 -- When looking for library and object files look also in the specified
4749 S_Make_Proc : aliased constant S := "/PROCESSES=#" &
4754 -- Use NNN processes to carry out the (re)compilations. If you have a
4755 -- multiprocessor machine, compilations will occur in parallel. In the
4756 -- event of compilation errors, messages from various compilations might
4757 -- get interspersed (but GNAT MAKE will give you the full ordered list of
4758 -- failing compiles at the end). This can at times be annoying. To get a
4759 -- clean list of error messages don't use this qualifier.
4761 S_Make_Nojobs : aliased constant S := "/NOPROCESSES " &
4763 -- NODOC (see /PROCESS)
4765 S_Make_Project : aliased constant S := "/PROJECT_FILE=<" &
4767 -- /PROJECT_FILE=filename
4769 -- Specifies the main project file to be used. The project files rooted
4770 -- at the main project file will be parsed before any other processing to
4771 -- set the building environment.
4773 S_Make_Quiet : aliased constant S := "/QUIET " &
4778 -- When this qualifiers is specified, the commands carried out by GNAT
4779 -- MAKE are not displayed.
4781 S_Make_Reason : aliased constant S := "/REASONS " &
4786 -- Displays the reason for all recompilations GNAT MAKE decides are
4789 S_Make_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
4791 -- /RUNTIME_SYSTEM=xxx
4793 -- Build against an alternate runtime system named xxx or RTS-xxx.
4795 S_Make_Search : aliased constant S := "/SEARCH=*" &
4797 -- /SEARCH=(directory[,...])
4799 -- Search the specified directories for both source and object files.
4801 S_Make_Skip : aliased constant S := "/SKIP_MISSING=*" &
4803 -- /SKIP_MISSING=(directory[,...])
4805 -- Skip missing library sources if ALI in 'directory'.
4807 S_Make_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4809 -- /SOURCE_SEARCH=(directory[,...])
4811 -- When looking for source files also look in the specified directories.
4813 S_Make_Stand : aliased constant S := "/STANDARD_OUTPUT_FOR_COMMANDS " &
4815 -- /NOSTANDARD_OUTPUT_FOR_COMMANDS (D)
4816 -- /STANDARD_OUTPUT_FOR_COMMANDS
4818 -- Output the commands for the compiler, the binder and the linker
4819 -- on SYS$OUTPUT, instead of SYS$ERROR.
4821 S_Make_Subdirs : aliased constant S := "/SUBDIRS=<" &
4825 -- The actual directories (object, exec, library, ...) are subdirectories
4826 -- of the directory specified in the project file. If the subdirectory
4827 -- does not exist, it is created automatically.
4829 S_Make_Switch : aliased constant S := "/SWITCH_CHECK " &
4831 -- /NOSWITCH_CHECK (D)
4834 -- Recompile if compiler switches have changed since last compilation.
4835 -- All compiler switches but -I and -o are taken into account in the
4836 -- following way: orders between different "first letter" switches are
4837 -- ignored, but orders between same switches are taken into account.
4838 -- For example, -O -O2 is different than -O2 -O, but -g -O is equivalent
4841 S_Make_Unique : aliased constant S := "/UNIQUE " &
4846 -- Recompile at most the main file. It implies /ACTIONS=COMPILE.
4847 -- Combined with /FORCE_COMPILE, it is equivalent to calling the compiler
4850 S_Make_Use_Map : aliased constant S := "/USE_MAPPING_File=@" &
4852 -- /USE_MAPPING_FILE=file_name
4854 -- Use a specific mapping file. The file 'file_name', specified as a path
4855 -- name (absolute or relative) by this qualifier, should already exist,
4856 -- otherwise the qualifier is ineffective. The specified mapping file
4857 -- will be communicated to the compiler. This switch is not compatible
4858 -- with a project file (/PROJECT_FILE=) or with multiple compiling
4859 -- processes (/PROCESSES=nnn, when nnn is greater than 1).
4861 S_Make_Verbose : aliased constant S := "/VERBOSE " &
4866 -- Displays the reason for all recompilations GNAT MAKE decides are
4869 Make_Switches : aliased constant Switches :=
4870 (S_Make_Add 'Access,
4871 S_Make_Actions 'Access,
4873 S_Make_Allproj 'Access,
4874 S_Make_Bind 'Access,
4875 S_Make_Comp 'Access,
4876 S_Make_Cond 'Access,
4877 S_Make_Cont 'Access,
4878 S_Make_Current 'Access,
4880 S_Make_Dirobj 'Access,
4881 S_Make_Disprog 'Access,
4882 S_Make_Doobj 'Access,
4883 S_Make_Execut 'Access,
4885 S_Make_Follow 'Access,
4886 S_Make_Force 'Access,
4887 S_Make_Full 'Access,
4888 S_Make_Hi_Verb 'Access,
4889 S_Make_Inplace 'Access,
4890 S_Make_Index 'Access,
4891 S_Make_Library 'Access,
4892 S_Make_Link 'Access,
4893 S_Make_Low_Verb'Access,
4894 S_Make_Make 'Access,
4895 S_Make_Mapping 'Access,
4896 S_Make_Med_Verb'Access,
4897 S_Make_Mess 'Access,
4898 S_Make_Minimal 'Access,
4899 S_Make_Missing 'Access,
4900 S_Make_Nolink 'Access,
4901 S_Make_Nomain 'Access,
4902 S_Make_Nonpro 'Access,
4903 S_Make_Nostinc 'Access,
4904 S_Make_Nostlib 'Access,
4905 S_Make_Object 'Access,
4906 S_Make_Proc 'Access,
4907 S_Make_Nojobs 'Access,
4908 S_Make_Project 'Access,
4909 S_Make_Quiet 'Access,
4910 S_Make_Reason 'Access,
4912 S_Make_Search 'Access,
4913 S_Make_Skip 'Access,
4914 S_Make_Source 'Access,
4915 S_Make_Stand 'Access,
4916 S_Make_Subdirs 'Access,
4917 S_Make_Switch 'Access,
4918 S_Make_Unique 'Access,
4919 S_Make_Use_Map 'Access,
4920 S_Make_Verbose 'Access);
4922 ------------------------------
4923 -- Switches for GNAT METRIC --
4924 ------------------------------
4926 S_Metric_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4928 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4930 -- Add directories to the project search path.
4932 S_Metric_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
4934 -- /NOALL_PROJECTS (D)
4936 -- When GNAT METRIC is used with a Project File and no source is
4937 -- specified, the underlying tool gnatmetric is called for all the
4938 -- sources of all the Project Files in the project tree.
4940 S_Metric_Debug : aliased constant S := "/DEBUG_OUTPUT " &
4944 -- Generate the debug information
4946 S_Metric_Direct : aliased constant S := "/DIRECTORY=@" &
4948 -- /DIRECTORY=pathname
4950 -- Put the files with detailed metric information into the specified
4953 S_Metric_Element : aliased constant S := "/ELEMENT_METRICS=" &
4955 "!-ed,!-es,!-enl,!-eps," &
4956 "!-eas,!-ept,!-eat,!-enu," &
4958 "DECLARATION_TOTAL " &
4960 "STATEMENT_TOTAL " &
4962 "LOOP_NESTING_MAX " &
4964 "INT_SUBPROGRAMS " &
4966 "SUBPROGRAMS_ALL " &
4972 "PROGRAM_NESTING_MAX " &
4974 "CONSTRUCT_NESTING_MAX " &
4976 -- NODOC (see /SYNTAX_METRICS)
4978 S_Metric_Syntax : aliased constant S := "/SYNTAX_METRICS=" &
4982 "--no-syntax-all " &
4986 "--no-declarations " &
4990 "--no-statements " &
4991 "PUBLIC_SUBPROGRAMS " &
4992 "--public-subprograms " &
4993 "NOPUBLIC_SUBPROGRAMS " &
4994 "--no-public-subprograms " &
4995 "ALL_SUBPROGRAMS " &
4996 "--all-subprograms " &
4997 "NOALL_SUBPROGRAMS " &
4998 "--no-all-subprograms " &
5002 "--no-public-types " &
5010 "--no-unit-nesting " &
5011 "CONSTRUCT_NESTING " &
5012 "--construct-nesting " &
5013 "NOCONSTRUCT_NESTING " &
5014 "--no-construct-nesting";
5015 -- /SYNTAX_METRICS(option, option ...)
5017 -- Specifies the syntax element metrics to be computed (if at least one
5018 -- positive syntax element metric, line metric, complexity or coupling
5019 -- metric is specified then only explicitly specified syntax element
5020 -- metrics are computed and reported)
5022 -- option may be one of the following:
5024 -- ALL (D) All the syntax element metrics are computed
5025 -- NONE None of syntax element metrics is computed
5026 -- DECLARATIONS Compute the total number of declarations
5027 -- NODECLARATIONS Do not compute the total number of declarations
5028 -- STATEMENTS Compute the total number of statements
5029 -- NOSTATEMENTS Do not compute the total number of statements
5030 -- PUBLIC_SUBPROGRAMS Compute the number of public subprograms
5031 -- NOPUBLIC_SUBPROGRAMS Do not compute the number of public subprograms
5032 -- ALL_SUBPROGRAMS Compute the number of all the subprograms
5033 -- NOALL_SUBPROGRAMS Do not compute the number of all the
5035 -- PUBLIC_TYPES Compute the number of public types
5036 -- NOPUBLIC_TYPES Do not compute the number of public types
5037 -- ALL_TYPES Compute the number of all the types
5038 -- NOALL_TYPES Do not compute the number of all the types
5039 -- UNIT_NESTING Compute the maximal program unit nesting
5041 -- NOUNIT_NESTING Do not compute the maximal program unit
5043 -- CONSTRUCT_NESTING Compute the maximal construct nesting level
5044 -- NOCONSTRUCT_NESTING Do not compute the maximal construct nesting
5047 -- All combinations of syntax element metrics options are allowed.
5049 S_Metric_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5051 -- /EXTERNAL_REFERENCE="name=val"
5053 -- Specifies an external reference to the project manager. Useful only if
5054 -- /PROJECT_FILE is used.
5057 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5059 S_Metric_Files : aliased constant S := "/FILES=@" &
5063 -- Take as arguments the files that are listed in the specified
5066 S_Metric_Format : aliased constant S := "/FORMAT_OUTPUT=" &
5075 "SHORT_SOURCE_FILE_NAME " &
5077 -- /FORMAT_OUTPUT=(option, option ...)
5079 -- Specifies the details of the tool output
5081 -- option may be one of the following:
5083 -- DEFAULT (D) Generate the text output only, use full
5084 -- argument source names in global information
5085 -- XML Generate the output in XML format
5086 -- XSD Generate the output in XML format, and
5087 -- generate an XML schema file that describes
5088 -- the structure of XML metrics report
5089 -- NO_TEXT Do not generate the text output (implies XML)
5090 -- SHORT_SOURCE_FILE_NAME Use short argument source names in output
5092 S_Metric_Globout : aliased constant S := "/GLOBAL_OUTPUT=@" &
5094 -- /GLOBAL_OUTPUT=filename
5096 -- Put the textual global metric information into the specified file
5098 S_Metric_Line : aliased constant S := "/LINE_METRICS=" &
5100 "!-la,!-lcode,!-lcomm," &
5108 "MIXED_CODE_COMMENTS " &
5110 "COMMENT_PERCENTAGE " &
5114 "AVERAGE_LINES_IN_BODIES " &
5116 -- NODOC (see /LINE_COUNT_METRICS)
5118 S_Metric_Lines : aliased constant S := "/LINE_COUNT_METRICS=" &
5130 "--no-lines-code " &
5132 "--lines-comment " &
5133 "NOCOMMENT_LINES " &
5134 "--no-lines-comment " &
5135 "CODE_COMMENT_LINES " &
5136 "--lines-eol-comment " &
5137 "NOCODE_COMMENT_LINES " &
5138 "--no-lines-eol-comment " &
5139 "COMMENT_PERCENTAGE " &
5141 "NOCOMMENT_PERCENTAGE " &
5142 "--no-lines-ratio " &
5146 "--no-lines-blank " &
5147 "AVERAGE_BODY_LINES " &
5148 "--lines-average " &
5149 "NOAVERAGE_BODY_LINES " &
5150 "--no-lines-average";
5151 -- /LINE_COUNT_METRICS=(option, option ...)
5153 -- Specifies the line metrics to be computed (if at least one positive
5154 -- syntax element metric, line metric, complexity or coupling metric is
5155 -- specified then only explicitly specified line metrics are computed
5158 -- option may be one of the following:
5160 -- ALL (D) All the line metrics are computed
5161 -- NONE None of line metrics is computed
5162 -- ALL_LINES All lines are computed
5163 -- NOALL_LINES All lines are not computed
5164 -- CODE_LINES Lines with Ada code are computed
5165 -- NOCODE_LINES Lines with Ada code are not computed
5166 -- COMMENT_LINES Comment lines are computed
5167 -- NOCOMMENT_LINES Comment lines are not computed
5168 -- CODE_COMMENT_LINES Lines containing both code and comment parts
5170 -- NOCODE_COMMENT_LINES Lines containing both code and comment parts
5172 -- COMMENT_PERCENTAGE Ratio between comment lines and all the lines
5173 -- containing comments and program code is
5175 -- NOCOMMENT_PERCENTAGE Ratio between comment lines and all the lines
5176 -- containing comments and program code is not
5178 -- BLANK_LINES Blank lines are computed
5179 -- NOBLANK_LINES Blank lines are not computed
5180 -- AVERAGE_BODY_LINES Average number of code lines in subprogram,
5181 -- task and entry bodies and statement sequences
5182 -- of package bodies is computed
5183 -- NOAVERAGE_BODY_LINES Average number of code lines in subprogram,
5184 -- task and entry bodies and statement sequences
5185 -- of package bodies is not computed
5187 -- All combinations of line metrics options are allowed.
5189 S_Metric_Complexity : aliased constant S := "/COMPLEXITY_METRICS=" &
5191 "--complexity-all " &
5193 "--no-complexity-all " &
5195 "--complexity-cyclomatic " &
5197 "--no-complexity-cyclomatic "&
5199 "--complexity-essential " &
5201 "--no-complexity-essential " &
5205 "--no-loop-nesting " &
5206 "AVERAGE_COMPLEXITY " &
5207 "--complexity-average " &
5208 "NOAVERAGE_COMPLEXITY " &
5209 "--no-complexity-average " &
5210 "EXTRA_EXIT_POINTS " &
5211 "--extra-exit-points " &
5212 "NOEXTRA_EXIT_POINTS " &
5213 "--no-extra-exit-points";
5214 -- /COMPLEXITY_METRICS=(option, option ...)
5216 -- Specifies the complexity metrics to be computed (if at least one
5217 -- positive syntax element metric, line metric, complexity or coupling
5218 -- metric is specified then only explicitly specified complexity metrics
5219 -- are computed and reported)
5221 -- option may be one of the following:
5223 -- ALL (D) All the complexity metrics are computed
5224 -- NONE None of complexity metrics is computed
5225 -- CYCLOMATIC Compute the McCabe Cyclomatic Complexity
5226 -- NOCYCLOMATIC Do not compute the McCabe Cyclomatic Complexity
5227 -- ESSENTIAL Compute the Essential Complexity
5228 -- NOESSENTIAL Do not compute the Essential Complexity
5229 -- LOOP_NESTING Compute the maximal loop nesting
5230 -- NOLOOP_NESTING Do not compute the maximal loop nesting
5231 -- AVERAGE_COMPLEXITY Compute the average complexity for executable
5233 -- NOAVERAGE_COMPLEXITY Do not compute the average complexity for
5234 -- executable bodies
5235 -- EXTRA_EXIT_POINTS Compute extra exit points metric
5236 -- NOEXTRA_EXIT_POINTS Do not compute extra exit points metric
5238 -- All combinations of line metrics options are allowed.
5240 S_Metric_Coupling : aliased constant S := "/COUPLING_METRICS=" &
5244 "--no-coupling-all " &
5245 "PACKAGE_EFFERENT " &
5246 "--package-efferent-coupling " &
5247 "NOPACKAGE_EFFERENT " &
5248 "--no-package-efferent-coupling " &
5249 "PACKAGE_AFFERENT " &
5250 "--package-afferent-coupling " &
5251 "NOPACKAGE_AFFERENT " &
5252 "--no-package-afferent-coupling " &
5253 "CATEGORY_EFFERENT " &
5254 "--category-efferent-coupling " &
5255 "NOCATEGORY_EFFERENT " &
5256 "--no-category-efferent-coupling " &
5257 "CATEGORY_AFFERENT " &
5258 "--category-afferent-coupling " &
5259 "NOCATEGORY_AFFERENT " &
5260 "--no-category-afferent-coupling";
5262 -- /COUPLING_METRICS=(option, option ...)
5264 -- Specifies the coupling metrics to be computed.
5266 -- option may be one of the following:
5268 -- ALL All the coupling metrics are computed
5269 -- NONE (D) None of coupling metrics is computed
5270 -- PACKAGE_EFFERENT Compute package efferent coupling
5271 -- NOPACKAGE_EFFERENT Do not compute package efferent coupling
5272 -- PACKAGE_AFFERENT Compute package afferent coupling
5273 -- NOPACKAGE_AFFERENT Do not compute package afferent coupling
5274 -- CATEGORY_EFFERENT Compute category efferent coupling
5275 -- NOCATEGORY_EFFERENT Do not compute category efferent coupling
5276 -- CATEGORY_AFFERENT Compute category afferent coupling
5277 -- NOCATEGORY_AFFERENT Do not compute category afferent coupling
5279 -- All combinations of coupling metrics options are allowed.
5281 S_Metric_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5283 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5284 -- /FOLLOW_LINKS_FOR_FILES
5286 -- Follow links when parsing project files
5288 S_Metric_No_Local : aliased constant S := "/NO_LOCAL_DETAILS " &
5290 -- /LOCAL_DETAILS (D)
5291 -- /NO_LOCAL_DETAILS
5293 -- Do not compute the detailed metrics for local program units.
5295 S_Metric_No_Exits_As_Gotos : aliased constant S := "/NO_EXITS_AS_GOTOS " &
5297 -- /EXITS_AS_GOTOS (D)
5298 -- /NO_EXITS_AS_GOTOS
5300 -- Do not count EXIT statements as GOTOs when computing the Essential
5303 S_Metric_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5310 -- /MESSAGES_PROJECT_FILE[=messages-option]
5312 -- Specifies the "verbosity" of the parsing of project files.
5313 -- messages-option may be one of the following:
5315 -- DEFAULT (D) No messages are output if there is no error or warning.
5317 -- MEDIUM A small number of messages are output.
5319 -- HIGH A great number of messages are output, most of them not
5320 -- being useful for the user.
5322 S_Metric_Project : aliased constant S := "/PROJECT_FILE=<" &
5324 -- /PROJECT_FILE=filename
5326 -- Specifies the main project file to be used. The project files rooted
5327 -- at the main project file will be parsed before the invocation of the
5330 S_Metric_Quiet : aliased constant S := "/QUIET " &
5335 -- Quiet mode: by default GNAT METRIC outputs to the standard error stream
5336 -- the number of program units left to be processed. This option turns
5339 S_Metric_Subdirs : aliased constant S := "/SUBDIRS=<" &
5343 -- The actual directories (object, exec, library, ...) are subdirectories
5344 -- of the directory specified in the project file. If the subdirectory
5345 -- does not exist, it is created automatically.
5347 S_Metric_Suffix : aliased constant S := "/SUFFIX_DETAILS=" & '"' &
5349 -- /SUFFIX_DETAILS=suffix
5351 -- Use the given suffix as the suffix for the name of the file to place
5352 -- the detailed metrics into.
5354 S_Metric_Suppress : aliased constant S := "/SUPPRESS=" &
5356 "!-nocc,!-noec,!-nonl," &
5358 "CYCLOMATIC_COMPLEXITY " &
5360 "ESSENTIAL_COMPLEXITY " &
5362 "MAXIMAL_LOOP_NESTING " &
5368 -- NODOC (see /COMPLEXITY_METRICS /NO_LOCAL_DETAILS /NO_EXITS_AS_GOTOS)
5370 S_Metric_Verbose : aliased constant S := "/VERBOSE " &
5377 S_Metric_XMLout : aliased constant S := "/XML_OUTPUT=@" &
5379 -- /XML_OUTPUT=filename
5381 -- Place the XML output into the specified file
5383 Metric_Switches : aliased constant Switches :=
5384 (S_Metric_Add 'Access,
5385 S_Metric_All_Prjs 'Access,
5386 S_Metric_Complexity 'Access,
5387 S_Metric_Coupling 'Access,
5388 S_Metric_Debug 'Access,
5389 S_Metric_Direct 'Access,
5390 S_Metric_Element 'Access,
5391 S_Metric_Ext 'Access,
5392 S_Metric_Files 'Access,
5393 S_Metric_Follow 'Access,
5394 S_Metric_Format 'Access,
5395 S_Metric_Globout 'Access,
5396 S_Metric_Line 'Access,
5397 S_Metric_Lines 'Access,
5398 S_Metric_Mess 'Access,
5399 S_Metric_No_Exits_As_Gotos'Access,
5400 S_Metric_No_Local 'Access,
5401 S_Metric_Project 'Access,
5402 S_Metric_Quiet 'Access,
5403 S_Metric_Suffix 'Access,
5404 S_Metric_Subdirs 'Access,
5405 S_Metric_Syntax 'Access,
5406 S_Metric_Suppress 'Access,
5407 S_Metric_Verbose 'Access,
5408 S_Metric_XMLout 'Access);
5410 ----------------------------
5411 -- Switches for GNAT NAME --
5412 ----------------------------
5414 S_Name_Conf : aliased constant S := "/CONFIG_FILE=<" &
5416 -- /CONFIG_FILE=path_name
5418 -- Create a configuration pragmas file 'path_name' (instead of the default
5419 -- 'gnat.adc'). 'path_name' may include directory information. 'path_name'
5420 -- must be writable. There may be only one qualifier /CONFIG_FILE.
5421 -- This qualifier is not compatible with qualifier /PROJECT_FILE.
5423 S_Name_Dirs : aliased constant S := "/SOURCE_DIRS=*" &
5425 -- /SOURCE_DIRS=(directory, ...)
5427 -- Look for source files in the specified directories. When this qualifier
5428 -- is specified, the current working directory will not be searched for
5429 -- source files, unless it is explicitly specified with a qualifier
5430 -- /SOURCE_DIRS or /DIRS_FILE. Several qualifiers /SOURCE_DIRS may be
5431 -- specified. If a directory is specified as a relative path, it is
5432 -- relative to the directory of the configuration pragmas file specified
5433 -- with qualifier /CONFIG_FILE, or to the directory of the project file
5434 -- specified with qualifier /PROJECT_FILE or, if neither qualifier
5435 -- /CONFIG_FILE nor qualifier /PROJECT_FILE are specified, it is relative
5436 -- to the current working directory. The directories specified with
5437 -- qualifiers /SOURCE_DIRS must exist and be readable.
5439 S_Name_Dfile : aliased constant S := "/DIRS_FILE=<" &
5441 -- /DIRS_FILE=file_name
5443 -- Look for source files in all directories listed in text file
5444 -- 'file_name'. 'file_name' must be an existing, readable text file.
5445 -- Each non empty line in the specified file must be a directory.
5446 -- Specifying qualifier /DIRS_FILE is equivalent to specifying as many
5447 -- qualifiers /SOURCE_DIRS as there are non empty lines in the specified
5450 S_Name_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5452 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5453 -- /FOLLOW_LINKS_FOR_FILES
5455 -- Follow links when parsing project files
5457 S_Name_Frng : aliased constant S := "/FOREIGN_PATTERN=" & '"' &
5459 -- /FOREIGN_PATTERN=<string>
5461 -- Specify a foreign pattern.
5462 -- Using this qualifier, it is possible to add sources of languages other
5463 -- than Ada to the list of sources of a project file. It is only useful
5464 -- if a qualifier /PROJECT_FILE is used. For example,
5466 -- GNAT NAME /PROJECT_FILE=PRJ /FOREIGN_PATTERN="*.C" "*.ADA"
5468 -- will look for Ada units in all files with the '.ADA' extension, and
5469 -- will add to the list of file for project PRJ.GPR the C files with
5472 S_Name_Help : aliased constant S := "/HELP " &
5477 -- Output usage information to the standard output stream.
5479 S_Name_Proj : aliased constant S := "/PROJECT_FILE=<" &
5481 -- /PROJECT_FILE=file_name
5483 -- Create or update a project file. 'file_name' may include directory
5484 -- information. The specified file must be writable. There may be only
5485 -- one qualifier /PROJECT_FILE. When a qualifier /PROJECT_FILE is
5486 -- specified, no qualifier /CONFIG_FILE may be specified.
5488 S_Name_Subdirs : aliased constant S := "/SUBDIRS=<" &
5492 -- The actual directories (object, exec, library, ...) are subdirectories
5493 -- of the directory specified in the project file. If the subdirectory
5494 -- does not exist, it is created automatically.
5496 S_Name_Verbose : aliased constant S := "/VERBOSE " &
5501 -- Verbose mode. Output detailed explanation of behavior to the standard
5502 -- output stream. This includes name of the file written, the name of the
5503 -- directories to search and, for each file in those directories whose
5504 -- name matches at least one of the Naming Patterns, an indication of
5505 -- whether the file contains a unit, and if so the name of the unit.
5507 S_Name_Excl : aliased constant S := "/EXCLUDED_PATTERN=" & '"' &
5509 -- /EXCLUDED_PATTERN=<string>
5511 -- Specify an excluded pattern.
5512 -- Using this qualifier, it is possible to exclude some files that would
5513 -- match the Naming patterns. For example,
5515 -- GNAT NAME /EXCLUDED_PATTERN="*_NT.ADA" "*.ADA"
5517 -- will look for Ada units in all files with the '.ADA' extension, except
5518 -- those whose names end with '_NT.ADA'.
5520 Name_Switches : aliased constant Switches :=
5521 (S_Name_Conf 'Access,
5522 S_Name_Dirs 'Access,
5523 S_Name_Dfile 'Access,
5524 S_Name_Follow 'Access,
5525 S_Name_Frng 'Access,
5526 S_Name_Help 'Access,
5527 S_Name_Proj 'Access,
5528 S_Name_Subdirs 'Access,
5529 S_Name_Verbose 'Access,
5530 S_Name_Excl 'Access);
5532 ----------------------------------
5533 -- Switches for GNAT PREPROCESS --
5534 ----------------------------------
5536 S_Prep_Assoc : aliased constant S := "/ASSOCIATE=" & '"' &
5538 -- /ASSOCIATE="name=val"
5540 -- Defines a new symbol, associated with value. If no value is given
5541 -- on the command line, then symbol is considered to be True.
5542 -- This qualifier can be used in place of a definition file.
5544 S_Prep_Blank : aliased constant S := "/BLANK_LINES " &
5546 -- /NOBLANK_LINES (D)
5549 -- Causes both preprocessor lines and the lines deleted by preprocessing
5550 -- to be replaced by blank lines in the output source file, thus
5551 -- preserving line numbers in the output file.
5553 S_Prep_Com : aliased constant S := "/COMMENTS " &
5558 -- /COMMENTS causes both preprocessor lines and the lines deleted
5559 -- by preprocessing to be retained in the output source as comments marked
5560 -- with the special string "--! ". This option will result in line numbers
5561 -- being preserved in the output file.
5563 -- /NOCOMMENTS causes both preprocessor lines and the lines deleted by
5564 -- preprocessing to be replaced by blank lines in the output source file,
5565 -- thus preserving line numbers in the output file.
5567 S_Prep_Ref : aliased constant S := "/REFERENCE " &
5572 -- Causes a "Source_Reference" pragma to be generated that references the
5573 -- original input file, so that error messages will use the file name of
5574 -- this original file. Also implies /BLANK_LINES if /COMMENTS is not
5577 S_Prep_Remove : aliased constant S := "/REMOVE " &
5582 -- Preprocessor lines and deleted lines are completely removed from the
5585 S_Prep_Replace : aliased constant S := "/REPLACE_IN_COMMENTS " &
5587 -- /NOREPLACE_IN_COMMENTS (D)
5588 -- /REPLACE_IN_COMMENTS
5590 -- Causes preprocessor to scan comments and perform replacements on
5591 -- any $symbol occurrences within the comment text.
5593 S_Prep_Symbols : aliased constant S := "/SYMBOLS " &
5598 -- Causes a sorted list of symbol names and values to be listed on
5601 S_Prep_Undef : aliased constant S := "/UNDEFINED " &
5606 Prep_Switches : aliased constant Switches :=
5607 (S_Prep_Assoc 'Access,
5608 S_Prep_Blank 'Access,
5611 S_Prep_Remove 'Access,
5612 S_Prep_Replace 'Access,
5613 S_Prep_Symbols 'Access,
5614 S_Prep_Undef 'Access);
5616 ------------------------------
5617 -- Switches for GNAT PRETTY --
5618 ------------------------------
5620 S_Pretty_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5622 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
5624 -- Add directories to the project search path.
5626 S_Pretty_Align : aliased constant S := "/ALIGN=" &
5639 "COMPONENT_CLAUSES " &
5641 -- /ALIGN[=align-option, align-option, ...]
5643 -- Set alignments. By default, all alignments (colons in declarations,
5644 -- initialisations in declarations, assignments and arrow delimiters) are
5647 -- align-option may be one of the following:
5649 -- OFF (D) Set all alignments to OFF
5650 -- COLONS Set alignments of colons in declarations to ON
5651 -- DECLARATIONS Set alignments of initialisations in declarations
5653 -- STATEMENTS Set alignments of assignments statements to ON
5654 -- ARROWS Set alignments of arrow delimiters to ON.
5655 -- COMPONENT_CLAUSES Set alignments of AT keywords in component
5658 -- Specifying one of the ON options without first specifying the OFF
5659 -- option has no effect, because by default all alignments are set to ON.
5661 S_Pretty_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
5663 -- /NOALL_PROJECTS (D)
5665 -- When GNAT PRETTY is used with a Project File and no source is
5666 -- specified, the underlying tool gnatpp is called for all the
5667 -- sources of all the Project Files in the project tree.
5669 S_Pretty_Attrib : aliased constant S := "/ATTRIBUTE_CASING=" &
5676 -- /ATTRIBUTE_CASING[=casing-option]
5678 -- Set the case of the attributes. By default the attributes are in mixed
5680 -- casing-option may be one of the following:
5686 S_Pretty_Comments : aliased constant S := "/COMMENTS_LAYOUT=" &
5691 "STANDARD_INDENT " &
5699 -- /COMMENTS_LAYOUT[=layout-option, layout-option, ...]
5701 -- Set the comment layout. By default, comments use the GNAT style
5702 -- comment line indentation.
5704 -- layout-option may be one of the following:
5706 -- UNTOUCHED All the comments remain unchanged
5707 -- DEFAULT (D) GNAT style comment line indentation
5708 -- STANDARD_INDENT Standard comment line indentation
5709 -- GNAT_BEGINNING GNAT style comment beginning
5710 -- REFORMAT Reformat comment blocks
5711 -- KEEP_SPECIAL Keep unchanged special form comments
5713 -- All combinations of layout options are allowed, except for DEFAULT
5714 -- and STANDARD_INDENT which are mutually exclusive, and also if
5715 -- UNTOUCHED is specified, this must be the only option.
5717 -- The difference between "GNAT style comment line indentation" and
5718 -- "standard comment line indentation" is the following: for standard
5719 -- comment indentation, any comment line is indented as if it were
5720 -- a declaration or statement at the same place.
5721 -- For GNAT style comment indentation, comment lines which are
5722 -- immediately followed by if or case statement alternative, record
5723 -- variant or 'begin' keyword are indented as the keyword that follows
5726 -- Standard indentation:
5735 -- GNAT style indentation:
5744 -- Option "GNAT style comment beginning" means that for each comment
5745 -- which is not considered as non-formattable separator (that is, the
5746 -- comment line contains only dashes, or a comment line ends with two
5747 -- dashes), there will be at least two spaces between starting "--" and
5748 -- the first non-blank character of the comment.
5750 S_Pretty_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
5752 -- /CONFIGURATION_PRAGMAS_FILE=file
5754 -- Specify a configuration pragmas file that need to be passed to the
5757 S_Pretty_Constr : aliased constant S := "/CONSTRUCT_LAYOUT=" &
5764 -- /CONSTRUCT_LAYOUT[=construct-option]
5766 -- Set construct layout. Default is GNAT style layout.
5767 -- construct-option may be one of the following:
5773 -- The difference between GNAT style and Compact layout on one hand
5774 -- and Uncompact layout on the other hand can be illustrated by the
5775 -- following examples:
5777 -- GNAT style and Uncompact layout
5780 -- type q is record type q is
5781 -- a : integer; record
5782 -- b : integer; a : integer;
5783 -- end record; b : integer;
5787 -- Block : declare Block :
5788 -- A : Integer := 3; declare
5789 -- begin A : Integer := 3;
5790 -- Proc (A, A); begin
5791 -- end Block; Proc (A, A);
5794 -- Clear : for J in 1 .. 10 loop Clear :
5795 -- A (J) := 0; for J in 1 .. 10 loop
5796 -- end loop Clear; A (J) := 0;
5800 -- A further difference between GNAT style layout and compact layout is
5801 -- that in GNAT style layout compound statements, return statements and
5802 -- bodies are always separated by empty lines.
5804 S_Pretty_Comind : aliased constant S := "/CONTINUATION_INDENT=#" &
5806 -- /CONTINUATION_INDENT=nnn
5808 -- Indentation level for continuation lines, nnn from 1 .. 9.
5809 -- The default value is one less then the (normal) indentation level,
5810 -- unless the indentation is set to 1: in that case the default value for
5811 -- continuation line indentation is also 1.
5813 S_Pretty_Compact_Is : aliased constant S := "/NO_SEPARATE_IS " &
5817 -- Do not place the IS keyword on a separate line in a subprogram body in
5818 -- case if the specification occupies more then one line.
5820 S_Pretty_Sep_Label : aliased constant S := "/SEPARATE_LABEL " &
5824 -- Place statement label(s) and the statement itself on separate lines.
5826 S_Pretty_Sep_Loop_Then : aliased constant S := "/SEPARATE_LOOP_THEN " &
5827 "--separate-loop-then";
5828 -- /SEPARATE_LOOP_THEN
5830 -- Place the THEN keyword in IF statement and the LOOP keyword in for-
5831 -- and while-loops on a separate line.
5833 S_Pretty_N_Sep_Loop_Then : aliased constant S := "/NO_SEPARATE_LOOP_THEN " &
5834 "--no-separate-loop-then";
5835 -- /NO_SEPARATE_LOOP_THEN
5837 -- Do not place the THEN keyword in IF statement and the LOOP keyword in
5838 -- for- and while-loops on a separate line.
5840 S_Pretty_Use_On_New_Line : aliased constant S := "/USE_ON_NEW_LINE " &
5841 "--use-on-new-line";
5844 -- Start any USE clause that is a part of a context clause from a
5847 S_Pretty_Stnm_On_Nw_Line : aliased constant S := "/STMT_NAME_ON_NEW_LINE " &
5848 "--separate-stmt-name";
5849 -- /STMT_NAME_ON_NEW_LINE
5851 -- For named block and loop statements use a separate line for the
5852 -- statement name, but do not use an extra indentation level for the
5853 -- statement itself.
5855 S_Pretty_Eol : aliased constant S := "/END_OF_LINE=" &
5864 -- /END_OF_LINE=[option]
5866 -- Specifies the form of the line terminators in the produced source.
5867 -- By default, the form of the line terminator depends on the platforms.
5868 -- On Unix and VMS, it is a Line Feed (LF) character. On Windows (DOS),
5869 -- It is a Carriage Return (CR) followed by a Line Feed.
5870 -- The Options DOS and CRLF are equivalent. The options UNIX and LF are
5873 S_Pretty_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5875 -- /EXTERNAL_REFERENCE="name=val"
5877 -- Specifies an external reference to the project manager. Useful only if
5878 -- /PROJECT_FILE is used.
5881 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5883 S_Pretty_Current : aliased constant S := "/CURRENT_DIRECTORY " &
5885 -- /CURRENT_DIRECTORY (D)
5887 -- Look for source files in the current working directory.
5889 -- /NOCURRENT_DIRECTORY
5890 -- Do not look for source files in the current working directory.
5892 S_Pretty_Dico : aliased constant S := "/DICTIONARY=*" &
5894 -- /DICTIONARY=(file_name, ...)
5896 -- Use each specified file as a dictionary file that defines the casing
5897 -- for a set of specified names, thereby overriding the effect on these
5898 -- names by any explicit or implicit /NAME_CASING qualifier.
5900 -- GNAT PRETTY implicitly uses a default dictionary file to define the
5901 -- casing for the Ada predefined names and the names declared in the GNAT
5904 -- The structure of a dictionary file, and details on the conventions
5905 -- used in the default dictionary file, are defined in the GNAT User's
5908 S_Pretty_Encoding : aliased constant S := "/RESULT_ENCODING=" &
5921 -- /RESULT_ENCODING[=encoding-type]
5923 -- Specify the wide character encoding method used when writing the
5924 -- reformatted code in the result file. 'encoding-type' is one of the
5927 -- BRACKETS (D) Brackets encoding.
5929 -- HEX Hex ESC encoding.
5931 -- UPPER Upper half encoding.
5933 -- SHIFT_JIS Shift-JIS encoding.
5935 -- EUC EUC Encoding.
5937 -- UTF8 UTF-8 encoding.
5939 -- See 'HELP GNAT COMPILE /WIDE_CHARACTER_ENCODING' for an explanation
5940 -- about the different character encoding methods.
5942 S_Pretty_Files : aliased constant S := "/FILES=@" &
5946 -- Take as arguments the files that are listed in the specified
5949 S_Pretty_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5951 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5952 -- /FOLLOW_LINKS_FOR_FILES
5954 -- Follow links when parsing project files
5956 S_Pretty_Forced : aliased constant S := "/FORCED_OUTPUT=@" &
5958 -- /FORCED_OUTPUT=file
5960 -- Write the output into the specified file, overriding any possibly
5963 S_Pretty_Formfeed : aliased constant S := "/FORM_FEED_AFTER_PRAGMA_PAGE " &
5965 -- /FORM_FEED_AFTER_PRAGMA_PAGE
5967 -- When there is a pragma Page in the source, insert a Form Feed
5968 -- character immediately after the semicolon that follows the pragma
5971 S_Pretty_Indent : aliased constant S := "/INDENTATION_LEVEL=#" &
5973 -- /INDENTATION_LEVEL=nnn
5975 -- Specify the number of spaces to add for each indentation level.
5976 -- nnn must be between 1 and 9. The default is 3.
5978 S_Pretty_Keyword : aliased constant S := "/KEYWORD_CASING=" &
5983 -- /KEYWORD_CASING[=keyword-option]
5985 -- Specify the case of Ada keywords. The default is keywords in lower
5988 -- keyword-option may be one of the following:
5993 S_Pretty_Maxlen : aliased constant S := "/LINE_LENGTH_MAX=#" &
5995 -- /LINE_LENGTH_MAX=nnn
5997 -- Set the maximum line length, nnn from 32 ..256. The default is 79.
5999 S_Pretty_Maxind : aliased constant S := "/MAX_INDENT=#" &
6003 -- Do not use an additional indentation level for case alternatives
6004 -- and variants if their number is nnn or more. The default is 10.
6005 -- If nnn is zero, an additional indentation level is used for any
6006 -- number of case alternatives and variants.
6008 S_Pretty_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6015 -- /MESSAGES_PROJECT_FILE[=messages-option]
6017 -- Specifies the "verbosity" of the parsing of project files.
6018 -- messages-option may be one of the following:
6020 -- DEFAULT (D) No messages are output if there is no error or warning.
6022 -- MEDIUM A small number of messages are output.
6024 -- HIGH A great number of messages are output, most of them not
6025 -- being useful for the user.
6027 S_Pretty_Names : aliased constant S := "/NAME_CASING=" &
6036 -- /NAME_CASING[=name-option]
6038 -- Specify the casing of names.
6039 -- 'name-option' may be one of:
6041 -- AS_DECLARED (D) Name casing for defining occurrences are as they
6042 -- appear in the source file.
6044 -- LOWER_CASE Names are in lower case.
6046 -- UPPER_CASE Names are in upper case.
6048 -- MIXED_CASE Names are in mixed case.
6050 S_Pretty_Replace_No_Backup : aliased constant S := "/REPLACE_NO_BACKUP " &
6052 -- /REPLACE_NO_BACKUP
6054 -- Replace the argument source with the pretty-printed source without
6055 -- creating any backup copy of the argument source.
6057 S_Pretty_No_Labels : aliased constant S := "/NO_MISSED_LABELS " &
6059 -- /NO_MISSED_LABELS
6061 -- Do not insert missing end/exit labels. The end label is the name of
6062 -- a construct that may optionally appear at the end of the construct.
6063 -- This includes the names of packages and subprograms.
6064 -- Similarly, the exit label is the name of a loop that may appear as the
6065 -- argument of an exit statement within the loop. By default, GNAT PRETTY
6066 -- inserts these end/exit labels when they are absent in the original
6067 -- source. This qualifier /NO_MISSED_LABELS suppresses this insertion,
6068 -- so that the formatted source reflects the original.
6070 S_Pretty_Notabs : aliased constant S := "/NOTABS " &
6074 -- Replace all tabulations in comments with spaces.
6076 S_Pretty_Output : aliased constant S := "/OUTPUT=@" &
6080 -- Write the output to the specified file. If the file already exists,
6081 -- an error is reported.
6083 S_Pretty_Override : aliased constant S := "/OVERRIDING_REPLACE " &
6085 -- /NOOVERRIDING_REPLACE (D)
6086 -- /OVERRIDING_REPLACE
6088 -- Replace the argument source with the pretty-printed source and copy the
6089 -- argument source into filename.NPP, overriding any existing file if
6092 S_Pretty_Pragma : aliased constant S := "/PRAGMA_CASING=" &
6099 -- /PRAGMA_CASING[=pragma-option]
6101 -- Set the case of pragma identifiers. The default is Mixed case.
6102 -- pragma-option may be one of the following:
6108 S_Pretty_Project : aliased constant S := "/PROJECT_FILE=<" &
6110 -- /PROJECT_FILE=filename
6112 -- Specifies the main project file to be used. The project files rooted
6113 -- at the main project file will be parsed before any other processing to
6114 -- set the building environment.
6116 S_Pretty_Replace : aliased constant S := "/REPLACE " &
6121 -- Replace the argument source with the pretty-printed source and copy the
6122 -- argument source into filename.NPP. If filename.NPP already exists,
6123 -- report an error and exit.
6125 S_Pretty_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
6127 -- /RUNTIME_SYSTEM=xxx
6129 -- Compile against an alternate runtime system named xxx or RTS-xxx.
6131 S_Pretty_Search : aliased constant S := "/SEARCH=*" &
6133 -- /SEARCH=(directory[,...])
6135 -- When looking for source files also look in directories specified.
6137 S_Pretty_Specific : aliased constant S := "/SPECIFIC_CASING " &
6141 -- Do not use the default dictionary file; instead, use the casing
6142 -- defined by a qualifier /NAME_CASING and/or any explicit dictionary
6143 -- file specified by a qualifier /DICTIONARY.
6145 S_Pretty_Standard : aliased constant S := "/STANDARD_OUTPUT " &
6147 -- /NOSTANDARD_OUTPUT (D)
6150 -- Redirect the output to the standard output.
6152 S_Pretty_Subdirs : aliased constant S := "/SUBDIRS=<" &
6156 -- The actual directories (object, exec, library, ...) are subdirectories
6157 -- of the directory specified in the project file. If the subdirectory
6158 -- does not exist, it is created automatically.
6160 S_Pretty_Verbose : aliased constant S := "/VERBOSE " &
6165 -- Verbose mode; GNAT PRETTY generates version information and then a
6166 -- trace of the actions it takes to produce or obtain the ASIS tree.
6168 S_Pretty_Warnings : aliased constant S := "/WARNINGS " &
6173 -- Issue a warning to the standard error stream if it is not possible
6174 -- to provide the required layout in the result source.
6175 -- By default such warnings are not activated.
6177 Pretty_Switches : aliased constant Switches :=
6178 (S_Pretty_Add 'Access,
6179 S_Pretty_Align 'Access,
6180 S_Pretty_All_Prjs 'Access,
6181 S_Pretty_Attrib 'Access,
6182 S_Pretty_Comments 'Access,
6183 S_Pretty_Compact_Is 'Access,
6184 S_Pretty_Config 'Access,
6185 S_Pretty_Constr 'Access,
6186 S_Pretty_Comind 'Access,
6187 S_Pretty_Current 'Access,
6188 S_Pretty_Dico 'Access,
6189 S_Pretty_Eol 'Access,
6190 S_Pretty_Ext 'Access,
6191 S_Pretty_Encoding 'Access,
6192 S_Pretty_Files 'Access,
6193 S_Pretty_Follow 'Access,
6194 S_Pretty_Forced 'Access,
6195 S_Pretty_Formfeed 'Access,
6196 S_Pretty_Indent 'Access,
6197 S_Pretty_Keyword 'Access,
6198 S_Pretty_Maxlen 'Access,
6199 S_Pretty_Maxind 'Access,
6200 S_Pretty_Mess 'Access,
6201 S_Pretty_Names 'Access,
6202 S_Pretty_No_Labels 'Access,
6203 S_Pretty_Notabs 'Access,
6204 S_Pretty_Output 'Access,
6205 S_Pretty_Override 'Access,
6206 S_Pretty_Pragma 'Access,
6207 S_Pretty_Replace 'Access,
6208 S_Pretty_Replace_No_Backup'Access,
6209 S_Pretty_Project 'Access,
6210 S_Pretty_RTS 'Access,
6211 S_Pretty_Search 'Access,
6212 S_Pretty_Sep_Label 'Access,
6213 S_Pretty_Sep_Loop_Then 'Access,
6214 S_Pretty_N_Sep_Loop_Then 'Access,
6215 S_Pretty_Subdirs 'Access,
6216 S_Pretty_Use_On_New_Line 'Access,
6217 S_Pretty_Stnm_On_Nw_Line 'Access,
6218 S_Pretty_Specific 'Access,
6219 S_Pretty_Standard 'Access,
6220 S_Pretty_Verbose 'Access,
6221 S_Pretty_Warnings 'Access);
6223 ------------------------------
6224 -- Switches for GNAT SHARED --
6225 ------------------------------
6227 S_Shared_Debug : aliased constant S := "/DEBUG=" &
6236 -- /DEBUG[=debug-option]
6239 -- Specifies the amount of debugging information included. 'debug-option'
6240 -- is one of the following:
6242 -- ALL (D) Include full debugging information.
6244 -- NONE Provide no debugging information. Same as /NODEBUG.
6246 -- TRACEBACK Provide sufficient debug information for a traceback.
6248 -- NOTRACEBACK Same as NONE.
6250 S_Shared_Image : aliased constant S := "/IMAGE=@" &
6252 -- /IMAGE=image-name
6254 -- 'image-name' specifies the name for the generated shared library.
6256 S_Shared_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
6257 "--for-linker=IDENT=" &
6259 -- /IDENTIFICATION="<string>"
6261 -- "<string>" specifies the string to be stored in the image file ident-
6262 -- ification field in the image header. It overrides any pragma Ident
6263 -- specified string.
6265 S_Shared_Nofiles : aliased constant S := "/NOSTART_FILES " &
6269 -- Link in default image initialization and startup functions.
6271 S_Shared_Noinhib : aliased constant S := "/NOINHIBIT-IMAGE " &
6272 "--for-linker=--noinhibit-exec";
6275 -- Delete image if there are errors or warnings.
6277 S_Shared_Verb : aliased constant S := "/VERBOSE " &
6282 -- Causes additional information to be output, including a full list of
6283 -- the included object files. This switch option is most useful when you
6284 -- want to see what set of object files are being used in the link step.
6286 S_Shared_ZZZZZ : aliased constant S := "/<other> " &
6290 -- Any other switch transmitted to the underlying linker.
6292 Shared_Switches : aliased constant Switches :=
6293 (S_Shared_Debug 'Access,
6294 S_Shared_Image 'Access,
6295 S_Shared_Ident 'Access,
6296 S_Shared_Nofiles 'Access,
6297 S_Shared_Noinhib 'Access,
6298 S_Shared_Verb 'Access,
6299 S_Shared_ZZZZZ 'Access);
6301 -----------------------------
6302 -- Switches for GNAT STACK --
6303 -----------------------------
6305 S_Stack_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6307 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6309 -- Add directories to the project search path.
6311 S_Stack_All : aliased constant S := "/ALL_SUBPROGRAMS " &
6313 -- /NOALL_SUBPROGRAMS (D)
6316 -- Consider all subprograms as entry points.
6318 S_Stack_All_Cycles : aliased constant S := "/ALL_CYCLES " &
6320 -- /NOALL_CYCLES (D)
6323 -- Extract all possible cycles in the call graph.
6325 S_Stack_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
6327 -- /NOALL_PROJECTS (D)
6330 -- When GNAT STACK is used with a Project File and no source is
6331 -- specified, the underlying tool gnatstack is called for all the
6332 -- units of all the Project Files in the project tree.
6334 S_Stack_Debug : aliased constant S := "/DEBUG " &
6339 -- Generate internal debug information.
6341 S_Stack_Directory : aliased constant S := "/DIRECTORY=*" &
6343 -- /DIRECTORY=(direc[,...])
6345 -- When looking for .ci files look also in directories specified.
6347 S_Stack_Entries : aliased constant S := "/ENTRIES=*" &
6350 -- /ENTRY=(entry_point[,...])
6352 -- Name of symbol to be used as entry point for the analysis.
6354 S_Stack_Files : aliased constant S := "/FILES=@" &
6358 -- Take as arguments the files that are listed in the specified
6361 S_Stack_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6363 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6364 -- /FOLLOW_LINKS_FOR_FILES
6366 -- Follow links when parsing project files
6368 S_Stack_Help : aliased constant S := "/HELP " &
6373 -- Output a message explaining the usage of gnatstack.
6375 S_Stack_List : aliased constant S := "/LIST=#" &
6379 -- Print the nnn subprograms requiring the biggest local stack usage. By
6380 -- default none will be displayed.
6382 S_Stack_Order : aliased constant S := "/ORDER=" &
6387 -- /ORDER[=order-option]
6389 -- Specifies the order for displaying the different call graphs.
6390 -- order-option may be one of the following:
6392 -- STACK (D) Select stack usage order
6394 -- ALPHABETICAL Select alphabetical order
6396 S_Stack_Path : aliased constant S := "/PATH " &
6401 -- Print all the subprograms that make up the worst-case path for every
6404 S_Stack_Project : aliased constant S := "/PROJECT_FILE=<" &
6406 -- /PROJECT_FILE=filename
6408 -- Specifies the main project file to be used. The project files rooted
6409 -- at the main project file will be parsed before the invocation of
6412 S_Stack_Output : aliased constant S := "/OUTPUT=@" &
6416 -- Name of the file containing the generated graph (VCG format).
6418 S_Stack_Regexp : aliased constant S := "/EXPRESSION=|" &
6421 -- /EXPRESSION=regular-expression
6423 -- Any symbol matching the regular expression will be considered as a
6424 -- potential entry point for the analysis.
6426 S_Stack_Subdirs : aliased constant S := "/SUBDIRS=<" &
6430 -- The actual directories (object, exec, library, ...) are subdirectories
6431 -- of the directory specified in the project file. If the subdirectory
6432 -- does not exist, it is created automatically.
6434 S_Stack_Unbounded : aliased constant S := "/UNBOUNDED=#" &
6438 -- Default stack size to be used for unbounded (dynamic) frames.
6440 S_Stack_Unknown : aliased constant S := "/UNKNOWN=#" &
6444 -- Default stack size to be used for unknown (external) calls.
6446 S_Stack_Verbose : aliased constant S := "/VERBOSE " &
6451 -- Specifies the amount of information to be displayed about the
6452 -- different subprograms. In verbose mode the full location of the
6453 -- subprogram will be part of the output, as well as detailed information
6454 -- about inaccurate data.
6456 S_Stack_Warnings : aliased constant S := "/WARNINGS=" &
6467 -- /WARNINGS[=(keyword[,...])]
6469 -- The following keywords are supported:
6471 -- ALL Turn on all optional warnings
6473 -- CYCLES Turn on warnings for cycles
6475 -- UNBOUNDED Turn on warnings for unbounded frames
6477 -- EXTERNAL Turn on warnings for external calls
6479 -- INDIRECT Turn on warnings for indirect calls
6481 Stack_Switches : aliased constant Switches :=
6482 (S_Stack_Add 'Access,
6483 S_Stack_All 'Access,
6484 S_Stack_All_Cycles 'Access,
6485 S_Stack_All_Prjs 'Access,
6486 S_Stack_Debug 'Access,
6487 S_Stack_Directory 'Access,
6488 S_Stack_Entries 'Access,
6489 S_Stack_Files 'Access,
6490 S_Stack_Follow 'Access,
6491 S_Stack_Help 'Access,
6492 S_Stack_List 'Access,
6493 S_Stack_Order 'Access,
6494 S_Stack_Path 'Access,
6495 S_Stack_Project 'Access,
6496 S_Stack_Output 'Access,
6497 S_Stack_Regexp 'Access,
6498 S_Stack_Subdirs 'Access,
6499 S_Stack_Unbounded 'Access,
6500 S_Stack_Unknown 'Access,
6501 S_Stack_Verbose 'Access,
6502 S_Stack_Warnings 'Access);
6504 ----------------------------
6505 -- Switches for GNAT STUB --
6506 ----------------------------
6508 S_Stub_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6510 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6512 -- Add directories to the project search path.
6514 S_Stub_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
6516 -- /CONFIGURATION_PRAGMAS_FILE=filespec
6518 -- Specifies a configuration pragmas file that must be taken into account
6521 S_Stub_Current : aliased constant S := "/CURRENT_DIRECTORY " &
6523 -- /CURRENT_DIRECTORY (D)
6524 -- /NOCURRENT_DIRECTORY
6526 -- Look for source, library or object files in the default directory.
6528 S_Stub_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6530 -- /EXTERNAL_REFERENCE="name=val"
6532 -- Specifies an external reference to the project manager. Useful only if
6533 -- /PROJECT_FILE is used.
6536 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6538 S_Stub_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6540 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6541 -- /FOLLOW_LINKS_FOR_FILES
6543 -- Follow links when parsing project files
6545 S_Stub_Full : aliased constant S := "/FULL " &
6550 -- If the destination directory already contains a file with the name of
6551 -- the body file for the argument file spec, replace it with the generated
6552 -- body stub. If /FULL is not used and there is already a body file, this
6553 -- existing body file is not replaced.
6555 S_Stub_Header : aliased constant S := "/HEADER=" &
6560 -- /HEADER[=header-option]
6562 -- Specifies the form of the comment header above the generated body stub.
6563 -- If no /HEADER qualifier is specified, there is no comment header.
6564 -- header-option is one of the following:
6567 -- GENERAL (D) Put a sample comment header into the body stub.
6569 -- SPEC Put the comment header (i.e., all the comments
6570 -- preceding the compilation unit) from the source of the
6571 -- library unit declaration into the body stub.
6573 S_Stub_Header_File : aliased constant S := "/FROM_HEADER_FILE=<" &
6576 -- /FROM_HEADER_FILE==filename
6578 -- Use the content of the file as the comment header for a generated body
6581 S_Stub_Indent : aliased constant S := "/INDENTATION=#" &
6585 -- (nnn is a non-negative integer). Set the indentation level in the
6586 -- generated body stub to nnn. nnn=0 means "no indentation".
6587 -- Default indentation is 3.
6589 S_Stub_Keep : aliased constant S := "/KEEP " &
6594 -- Do not delete the tree file (i.e., the snapshot of the compiler
6595 -- internal structures used by gnatstub) after creating the body stub.
6597 S_Stub_Length : aliased constant S := "/LINE_LENGTH=#" &
6601 -- (n is a non-negative integer). Set the maximum line length in the body
6602 -- stub to nnn. Default is 78.
6604 S_Stub_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6611 -- /MESSAGES_PROJECT_FILE[=messages-option]
6613 -- Specifies the "verbosity" of the parsing of project files.
6614 -- messages-option may be one of the following:
6616 -- DEFAULT (D) No messages are output if there is no error or warning.
6618 -- MEDIUM A small number of messages are output.
6620 -- HIGH A great number of messages are output, most of them not
6621 -- being useful for the user.
6623 S_Stub_No_Exc : aliased constant S := "/NO_EXCEPTION " &
6625 -- /NONO_EXCEPTION (D)
6628 -- Avoid raising PROGRAM_ERROR in the generated program unit stubs.
6630 S_Stub_No_Head : aliased constant S := "/NO_LOCAL_HEADER " &
6631 "--no-local-header";
6632 -- /NONO_LOCAL_HEADER (D)
6635 -- Do not put local comment header before body stub for local program unit.
6637 S_Stub_Output : aliased constant S := "/OUTPUT=@" &
6641 -- Body file name. This should be set if the argument file name does not
6642 -- follow the GNAT file naming conventions. If this switch is omitted,
6643 -- the default name for the body will be obtained from the argument file
6644 -- name according to the GNAT file naming conventions.
6646 S_Stub_Project : aliased constant S := "/PROJECT_FILE=<" &
6648 -- /PROJECT_FILE=filename
6650 -- Specifies the main project file to be used. The project files rooted
6651 -- at the main project file will be parsed before any other processing.
6652 -- The source and object directories to be searched will be communicated
6653 -- to gnatstub through logical names ADA_PRJ_INCLUDE_FILE and
6654 -- ADA_PRJ_OBJECTS_FILE.
6656 S_Stub_Quiet : aliased constant S := "/QUIET " &
6661 -- Quiet mode: do not generate a confirmation when a body is successfully
6662 -- created, and do not generate a message when a body is not required for
6663 -- an argument unit.
6665 S_Stub_Search : aliased constant S := "/SEARCH=*" &
6667 -- /SEARCH=(directory[,...])
6669 -- When looking for source files also look in directories specified.
6671 S_Stub_Subdirs : aliased constant S := "/SUBDIRS=<" &
6675 -- The actual directories (object, exec, library, ...) are subdirectories
6676 -- of the directory specified in the project file. If the subdirectory
6677 -- does not exist, it is created automatically.
6679 S_Stub_Tree : aliased constant S := "/TREE_FILE=" &
6686 -- /TREE_FILE[=treefile-option]
6688 -- Specify what to do with the tree file.
6689 -- treefile-option is one of the following:
6691 -- OVERWRITE (D) Overwrite the existing tree file. If the current
6692 -- directory already contains the file which, according
6693 -- to the GNAT file naming rules should be considered
6694 -- as a tree file for the argument source file, gnatstub
6695 -- will refuse to create the tree file needed to create
6696 -- a sample body unless this option is chosen.
6698 -- SAVE Do not remove the tree file (i.e., the snapshot
6699 -- of the compiler internal structures used by gnatstub)
6700 -- after creating the body stub.
6702 -- REUSE Reuse the tree file (if it exists) instead of
6704 -- Instead of creating the tree file for the library
6705 -- unit declaration, gnatstub tries to find it in the
6706 -- current directory and use it for creating a body.
6707 -- If the tree file is not found, no body is created.
6708 -- This option also implies `SAVE', whether or not the
6709 -- latter is set explicitly.
6711 S_Stub_Verbose : aliased constant S := "/VERBOSE " &
6716 -- Verbose mode: generate version information.
6718 Stub_Switches : aliased constant Switches :=
6719 (S_Stub_Add 'Access,
6720 S_Stub_Config 'Access,
6721 S_Stub_Current 'Access,
6723 S_Stub_Follow 'Access,
6724 S_Stub_Full 'Access,
6725 S_Stub_Header 'Access,
6726 S_Stub_Header_File'Access,
6727 S_Stub_Indent 'Access,
6728 S_Stub_Keep 'Access,
6729 S_Stub_Length 'Access,
6730 S_Stub_Mess 'Access,
6731 S_Stub_Output 'Access,
6732 S_Stub_Project 'Access,
6733 S_Stub_No_Exc 'Access,
6734 S_Stub_No_Head 'Access,
6735 S_Stub_Quiet 'Access,
6736 S_Stub_Search 'Access,
6737 S_Stub_Subdirs 'Access,
6738 S_Stub_Tree 'Access,
6739 S_Stub_Verbose 'Access);
6741 ----------------------------
6742 -- Switches for GNAT SYNC --
6743 ----------------------------
6745 S_Sync_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6747 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6749 -- Add directories to the project search path.
6751 S_Sync_All : aliased constant S := "/ALL " &
6756 -- Also check the components of the GNAT run time and process the needed
6757 -- components of the GNAT RTL when building and analyzing the global
6758 -- structure for checking the global rules.
6760 S_Sync_Allproj : aliased constant S := "/ALL_PROJECTS " &
6762 -- /NOALL_PROJECTS (D)
6765 -- When GNAT SYNC is used with a Project File and no source is
6766 -- specified, the underlying tool gnatsync is called for all the
6767 -- sources of all the Project Files in the project tree.
6769 S_Sync_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6771 -- /EXTERNAL_REFERENCE="name=val"
6773 -- Specifies an external reference to the project manager. Useful only if
6774 -- /PROJECT_FILE is used.
6777 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6779 S_Sync_Files : aliased constant S := "/FILES=@" &
6783 -- Take as arguments the files that are listed in the specified
6786 S_Sync_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6788 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6789 -- /FOLLOW_LINKS_FOR_FILES
6791 -- Follow links when parsing project files
6793 S_Sync_Main : aliased constant S := "/MAIN_SUBPROGRAM=@" &
6795 -- /MAIN_SUBPROGRAM=filename
6797 -- Specify the name of the file containing the main subprogram
6799 S_Sync_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6806 -- /MESSAGES_PROJECT_FILE[=messages-option]
6808 -- Specifies the "verbosity" of the parsing of project files.
6809 -- messages-option may be one of the following:
6811 -- DEFAULT (D) No messages are output if there is no error or warning.
6813 -- MEDIUM A small number of messages are output.
6815 -- HIGH A great number of messages are output, most of them not
6816 -- being useful for the user.
6818 S_Sync_Project : aliased constant S := "/PROJECT_FILE=<" &
6820 -- /PROJECT_FILE=filename
6822 -- Specifies the main project file to be used. The project files rooted
6823 -- at the main project file will be parsed before the invocation of the
6824 -- gnatcheck. The source directories to be searched will be communicated
6825 -- to gnatcheck through logical name ADA_PRJ_INCLUDE_FILE.
6827 S_Sync_Quiet : aliased constant S := "/QUIET " &
6832 -- Work quietly, only output warnings and errors.
6834 S_Sync_Subdirs : aliased constant S := "/SUBDIRS=<" &
6838 -- The actual directories (object, exec, library, ...) are subdirectories
6839 -- of the directory specified in the project file. If the subdirectory
6840 -- does not exist, it is created automatically.
6842 S_Sync_Verb : aliased constant S := "/VERBOSE " &
6847 -- The version number and copyright notice are output, as well as exact
6848 -- copies of the gnat1 commands spawned to obtain the chop control
6851 S_Sync_Exec : aliased constant S := "/EXECUTION_TIME " &
6853 -- /NOEXECUTION_TIME (D)
6856 -- Output the execution time
6858 S_Sync_Details : aliased constant S := "/DETAILS=" &
6865 -- /DETAILS[=options]
6867 -- Specifies the details of the output.
6868 -- Options may be one of the following:
6874 S_Sync_Warnoff : aliased constant S := "/WARNINGS_OFF " &
6879 -- Turn warnings off
6881 S_Sync_Output : aliased constant S := "/OUTPUT_FILE=<" &
6884 -- /OUTPUT_FILE=filename
6886 -- Redirect output to a text file
6888 Sync_Switches : aliased constant Switches :=
6889 (S_Sync_Add 'Access,
6891 S_Sync_Allproj 'Access,
6893 S_Sync_Follow 'Access,
6894 S_Sync_Files 'Access,
6895 S_Sync_Main 'Access,
6896 S_Sync_Mess 'Access,
6897 S_Sync_Project 'Access,
6898 S_Sync_Quiet 'Access,
6899 S_Sync_Subdirs 'Access,
6900 S_Sync_Verb 'Access,
6901 S_Sync_Exec 'Access,
6902 S_Sync_Details 'Access,
6903 S_Sync_Warnoff 'Access,
6904 S_Sync_Output 'Access);
6906 ----------------------------
6907 -- Switches for GNAT XREF --
6908 ----------------------------
6910 S_Xref_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6912 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6914 -- Add directories to the project search path.
6916 S_Xref_All : aliased constant S := "/ALL_FILES " &
6921 -- If this switch is present, FIND and XREF will parse the read-only
6922 -- files found in the library search path. Otherwise, these files will
6923 -- be ignored. This option can be used to protect Gnat sources or your
6924 -- own libraries from being parsed, thus making FIND and XREF much
6925 -- faster, and their output much smaller.
6927 S_Xref_Deriv : aliased constant S := "/DERIVED_TYPES " &
6929 -- /NODERIVED_TYPES (D)
6932 -- Output the parent type reference for each matching derived types.
6934 S_Xref_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6936 -- /EXTERNAL_REFERENCE="name=val"
6938 -- Specifies an external reference to the project manager. Useful only if
6939 -- /PROJECT_FILE is used.
6942 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6944 S_Xref_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6946 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6947 -- /FOLLOW_LINKS_FOR_FILES
6949 -- Follow links when parsing project files
6951 S_Xref_Full : aliased constant S := "/FULL_PATHNAME " &
6953 -- /NOFULL_PATHNAME (D)
6956 -- If this switch is set, the output file names will be preceded by their
6957 -- directory (if the file was found in the search path). If this switch
6958 -- is not set, the directory will not be printed.
6960 S_Xref_Global : aliased constant S := "/IGNORE_LOCALS " &
6962 -- /NOIGNORE_LOCALS (D)
6965 -- If this switch is set, information is output only for library-level
6966 -- entities, ignoring local entities. The use of this switch may
6967 -- accelerate FIND and XREF.
6969 S_Xref_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6976 -- /MESSAGES_PROJECT_FILE[=messages-option]
6978 -- Specifies the "verbosity" of the parsing of project files.
6979 -- messages-option may be one of the following:
6981 -- DEFAULT (D) No messages are output if there is no error or warning.
6983 -- MEDIUM A small number of messages are output.
6985 -- HIGH A great number of messages are output, most of them not
6986 -- being useful for the user.
6988 S_Xref_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
6992 -- Do not look for sources in the system default directory.
6994 S_Xref_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
6998 -- Do not look for library files in the system default directory.
7000 S_Xref_Object : aliased constant S := "/OBJECT_SEARCH=*" &
7002 -- /OBJECT_SEARCH=(directory,...)
7004 -- When searching for library and object files, look in the specified
7005 -- directories. The order in which library files are searched is the same
7008 S_Xref_Project : aliased constant S := "/PROJECT=@" &
7012 -- Specify a project file to use. By default, FIND and XREF will try to
7013 -- locate a project file in the current directory.
7015 -- If a project file is either specified or found by the tools, then the
7016 -- content of the source directory and object directory lines are added
7017 -- as if they had been specified respectively by /SOURCE_SEARCH and
7020 S_Xref_Prj : aliased constant S := "/PROJECT_FILE=<" &
7022 -- /PROJECT_FILE=filename
7024 -- Specifies the main project file to be used. The project files rooted
7025 -- at the main project file will be parsed before doing any processing.
7026 -- The source and object directories to be searched will be communicated
7027 -- to gnatxref through logical names ADA_PRJ_INCLUDE_FILE and
7028 -- ADA_PRJ_OBJECTS_FILE.
7030 S_Xref_Search : aliased constant S := "/SEARCH=*" &
7032 -- /SEARCH=(directory,...)
7035 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
7037 S_Xref_Source : aliased constant S := "/SOURCE_SEARCH=*" &
7039 -- /SOURCE_SEARCH=(directory,...)
7041 -- When looking for source files also look in the specified directories.
7042 -- The order in which source file search is undertaken is the same as for
7045 S_Xref_Subdirs : aliased constant S := "/SUBDIRS=<" &
7049 -- The actual directories (object, exec, library, ...) are subdirectories
7050 -- of the directory specified in the project file. If the subdirectory
7051 -- does not exist, it is created automatically.
7053 S_Xref_Output : aliased constant S := "/UNUSED " &
7055 -- /SOURCE_SEARCH=(directory,...)
7057 -- When looking for source files also look in the specified directories.
7058 -- The order in which source file search is undertaken is the same as for
7061 S_Xref_Tags : aliased constant S := "/TAGS " &
7066 -- Print a 'tags' file for vi.
7068 Xref_Switches : aliased constant Switches :=
7069 (S_Xref_Add 'Access,
7071 S_Xref_Deriv 'Access,
7073 S_Xref_Follow 'Access,
7074 S_Xref_Full 'Access,
7075 S_Xref_Global 'Access,
7076 S_Xref_Mess 'Access,
7077 S_Xref_Nostinc 'Access,
7078 S_Xref_Nostlib 'Access,
7079 S_Xref_Object 'Access,
7080 S_Xref_Project 'Access,
7082 S_Xref_Search 'Access,
7083 S_Xref_Source 'Access,
7084 S_Xref_Subdirs 'Access,
7085 S_Xref_Output 'Access,
7086 S_Xref_Tags 'Access);