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_Sections : aliased constant S := "/SECTIONS=" &
844 "BY_FILES_BY_RULES " &
846 -- /SECTIONS[=section-option, section-option, ...]
848 -- Specify what sections should be included into the report file.
849 -- By default, all three section (diagnoses in the format corresponding
850 -- to compiler error and warning messages, diagnoses grouped by rules and
851 -- then - by files, diagnoses grouped by files and then - by rules) are
852 -- included in the report file.
854 -- section-option may be one of the following:
856 -- COMPILER_STYLE Include diagnostics in compile-style format
857 -- (diagnoses are grouped by files, for each file
858 -- they are ordered according to the references
860 -- BY_RULES Include diagnostics grouped first by rules and
862 -- BY_FILES_BY_RULES Include diagnostics grouped first by files and
865 -- If one of these options is specified, then the report file contains
866 -- only sections set by these options
868 S_Check_Short : aliased constant S := "/SHORT " &
873 -- Generate a short form of the report file.
875 S_Check_Subdirs : aliased constant S := "/SUBDIRS=<" &
879 -- The actual directories (object, exec, library, ...) are subdirectories
880 -- of the directory specified in the project file. If the subdirectory
881 -- does not exist, it is created automatically.
883 S_Check_Verb : aliased constant S := "/VERBOSE " &
888 -- The version number and copyright notice are output, as well as exact
889 -- copies of the gnat1 commands spawned to obtain the chop control
892 S_Check_Out : aliased constant S := "/OUTPUT=@" &
896 -- Specify the name of the output file.
898 Check_Switches : aliased constant Switches :=
899 (S_Check_Add 'Access,
903 S_Check_Files 'Access,
904 S_Check_Follow 'Access,
905 S_Check_Help 'Access,
906 S_Check_Locs 'Access,
907 S_Check_Mess 'Access,
908 S_Check_Project 'Access,
909 S_Check_Quiet 'Access,
910 S_Check_Time 'Access,
912 S_Check_Sections 'Access,
913 S_Check_Short 'Access,
914 S_Check_Subdirs 'Access,
915 S_Check_Verb 'Access,
916 S_Check_Out 'Access);
918 ----------------------------
919 -- Switches for GNAT CHOP --
920 ----------------------------
922 S_Chop_Comp : aliased constant S := "/COMPILATION " &
924 -- /NOCOMPILATION (D)
927 -- Compilation mode, handle configuration pragmas strictly according to
930 S_Chop_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
932 -- /FILE_NAME_MAX_LENGTH[=nnn]
934 -- Limit generated file names to NNN (default of 8) characters. This is
935 -- useful if the resulting set of files is required to be interoperable
936 -- with systems like MS-DOS which limit the length of file names.
938 S_Chop_Help : aliased constant S := "/HELP " &
943 -- Print usage information.
945 S_Chop_Over : aliased constant S := "/OVERWRITE " &
950 -- Overwrite existing file names. Normally GNAT CHOP regards it as a
951 -- fatal error situation if there is already a file with the same name as
952 -- a file it would otherwise output. The /OVERWRITE qualifier bypasses
953 -- this check, and any such existing files will be silently overwritten.
955 S_Chop_Pres : aliased constant S := "/PRESERVE " &
960 -- Causes the file modification time stamp of the input file to be
961 -- preserved and used for the time stamp of the output file(s). This may
962 -- be useful for preserving coherency of time stamps in an environment
963 -- where gnatchop is used as part of a standard build process.
965 S_Chop_Quiet : aliased constant S := "/QUIET " &
970 -- Work quietly, only output warnings and errors.
972 S_Chop_Ref : aliased constant S := "/REFERENCE " &
977 -- Generate "Source_Reference" pragmas. Use this qualifier if the output
978 -- files are regarded as temporary and development is to be done in terms
979 -- of the original unchopped file. The /REFERENCE qualifier causes
980 -- "Source_Reference" pragmas to be inserted into each of the generated
981 -- files to refers back to the original file name and line number. The
982 -- result is that all error messages refer back to the original unchopped
985 -- In addition, the debugging information placed into the object file
986 -- (when the /DEBUG qualifier of GNAT COMPILE or GNAT MAKE is specified)
987 -- also refers back to this original file so that tools like profilers
988 -- and debuggers will give information in terms of the original unchopped
991 S_Chop_Verb : aliased constant S := "/VERBOSE " &
996 -- The version number and copyright notice are output, as well as exact
997 -- copies of the gnat1 commands spawned to obtain the chop control
1000 Chop_Switches : aliased constant Switches :=
1001 (S_Chop_Comp 'Access,
1002 S_Chop_File 'Access,
1003 S_Chop_Help 'Access,
1004 S_Chop_Over 'Access,
1005 S_Chop_Pres 'Access,
1006 S_Chop_Quiet 'Access,
1008 S_Chop_Verb 'Access);
1010 -----------------------------
1011 -- Switches for GNAT CLEAN --
1012 -----------------------------
1014 S_Clean_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
1016 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
1018 -- Add directories to the project search path.
1020 S_Clean_Compil : aliased constant S := "/COMPILER_FILES_ONLY " &
1022 -- /NOCOMPILER_FILES_ONLY (D)
1023 -- /COMPILER_FILES_ONLY
1025 -- Only attempt to delete the files produced by the compiler, not those
1026 -- produced by the binder or the linker. The files that are not to be
1027 -- deleted are library files, interface copy files, binder generated files
1028 -- and executable files.
1030 S_Clean_Current : aliased constant S := "/CURRENT_DIRECTORY " &
1032 -- /CURRENT_DIRECTORY (D)
1034 -- Look for ALI or object files in the directory where GNAT CLEAN was
1037 -- /NOCURRENT_DIRECTORY
1039 -- Do not look for ALI or object files in the directory where GNAT CLEAN
1042 S_Clean_Delete : aliased constant S := "/DELETE " &
1046 -- Delete the files that are not read-only.
1050 -- Informative-only mode. Do not delete any files. Output the list of the
1051 -- files that would have been deleted if this switch was not specified.
1053 S_Clean_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
1055 -- /DIRECTORY_OBJECTS=<file>
1057 -- Find the object files and .ALI files in <file>.
1058 -- This qualifier is not compatible with /PROJECT_FILE.
1060 S_Clean_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1062 -- /EXTERNAL_REFERENCE="name=val"
1064 -- Specifies an external reference to the project manager. Useful only if
1065 -- /PROJECT_FILE is used.
1068 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1070 S_Clean_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
1072 -- /NOFOLLOW_LINKS_FOR_FILES (D)
1073 -- /FOLLOW_LINKS_FOR_FILES
1075 -- Follow links when parsing project files
1077 S_Clean_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1079 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1080 -- /FULL_PATH_IN_BRIEF_MESSAGES
1082 -- When using project files, if some errors or warnings are detected
1083 -- during parsing and verbose mode is not in effect (no use of qualifier
1084 -- /VERBOSE), then error lines start with the full path name of the
1085 -- project file, rather than its simple file name.
1087 S_Clean_Help : aliased constant S := "/HELP " &
1092 -- Output a message explaining the usage of gnatclean.
1094 S_Clean_Index : aliased constant S := "/SOURCE_INDEX=#" &
1096 -- /SOURCE_INDEX=nnn
1098 -- Specifies the index of the units in the source file
1099 -- By default, source files are mono-unit and there is no index
1101 S_Clean_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1108 -- /MESSAGES_PROJECT_FILE[=messages-option]
1110 -- Specifies the "verbosity" of the parsing of project files.
1111 -- messages-option may be one of the following:
1113 -- DEFAULT (D) No messages are output if there is no error or warning.
1115 -- MEDIUM A small number of messages are output.
1117 -- HIGH A great number of messages are output, most of them not
1118 -- being useful for the user.
1120 S_Clean_Object : aliased constant S := "/OBJECT_SEARCH=*" &
1122 -- /OBJECT_SEARCH=(directory,...)
1124 -- When searching for library and object files, look in the specified
1125 -- directories. The order in which library files are searched is the same
1128 S_Clean_Project : aliased constant S := "/PROJECT_FILE=<" &
1130 -- /PROJECT_FILE=filename
1132 -- Specifies the main project file to be used. The project files rooted
1133 -- at the main project file will be parsed before the invocation of the
1134 -- compiler. The source and object directories to be searched will be
1135 -- communicated to gnatclean through logical names ADA_PRJ_INCLUDE_FILE
1136 -- and ADA_PRJ_OBJECTS_FILE.
1138 S_Clean_Quiet : aliased constant S := "/QUIET " &
1143 -- Quiet output. If there are no error, do not output anything, except in
1144 -- verbose mode (qualifier /VERBOSE) or in informative-only mode
1145 -- (qualifier /NODELETE).
1147 S_Clean_Recurs : aliased constant S := "/RECURSIVE " &
1152 -- When a project file is specified (using switch -P), clean all imported
1153 -- and extended project files, recursively. If this qualifier is not
1154 -- specified, only the files related to the main project file are to be
1155 -- deleted. This qualifier has no effect if no project file is specified.
1157 S_Clean_Search : aliased constant S := "/SEARCH=*" &
1159 -- /SEARCH=(directory,...)
1161 -- Equivalent to /OBJECT_SEARCH=(directory,...).
1163 S_Clean_Subdirs : aliased constant S := "/SUBDIRS=<" &
1167 -- The actual directories (object, exec, library, ...) are subdirectories
1168 -- of the directory specified in the project file. If the subdirectory
1169 -- does not exist, it is created automatically.
1171 S_Clean_Verbose : aliased constant S := "/VERBOSE " &
1178 Clean_Switches : aliased constant Switches :=
1179 (S_Clean_Add 'Access,
1180 S_Clean_Compil 'Access,
1181 S_Clean_Current'Access,
1182 S_Clean_Delete 'Access,
1183 S_Clean_Dirobj 'Access,
1184 S_Clean_Ext 'Access,
1185 S_Clean_Follow 'Access,
1186 S_Clean_Full 'Access,
1187 S_Clean_Help 'Access,
1188 S_Clean_Index 'Access,
1189 S_Clean_Mess 'Access,
1190 S_Clean_Object 'Access,
1191 S_Clean_Project'Access,
1192 S_Clean_Quiet 'Access,
1193 S_Clean_Recurs 'Access,
1194 S_Clean_Search 'Access,
1195 S_Clean_Subdirs'Access,
1196 S_Clean_Verbose'Access);
1198 -------------------------------
1199 -- Switches for GNAT COMPILE --
1200 -------------------------------
1202 S_GCC_Ada_83 : aliased constant S := "/83 " &
1207 -- Although GNAT is primarily an Ada 95 compiler, it accepts this
1208 -- qualifier to specify that an Ada 83 mode program is being compiled. If
1209 -- you specify this qualifier, GNAT rejects Ada 95 extensions and applies
1210 -- Ada 83 semantics. It is not possible to guarantee this qualifier does
1211 -- a perfect job; for example, some subtle tests of pathological cases,
1212 -- such as are found in ACVC tests that have been removed from the ACVC
1213 -- suite for Ada 95, may not compile correctly. However for practical
1214 -- purposes, using this qualifier should ensure that programs that
1215 -- compile correctly under the /83 qualifier can be ported reasonably
1216 -- easily to an Ada 83 compiler. This is the main use of this qualifier.
1218 -- With few exceptions (most notably the need to use "<>" on
1219 -- unconstrained generic formal parameters), it is not necessary to use
1220 -- this qualifier switch when compiling Ada 83 programs, because, with
1221 -- rare and obscure exceptions, Ada 95 is upwardly compatible with Ada
1222 -- 83. This means that a correct Ada 83 program is usually also a correct
1225 S_GCC_Ada_95 : aliased constant S := "/95 " &
1229 -- Allows GNAT to recognize the full range of Ada 95 constructs.
1230 -- This is the normal default for GNAT Pro.
1232 S_GCC_Ada_05 : aliased constant S := "/05 " &
1236 -- Allows GNAT to recognize all implemented proposed Ada 2005
1237 -- extensions. See features file for list of implemented features.
1239 S_GCC_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
1241 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
1243 -- Add directories to the project search path.
1245 S_GCC_Asm : aliased constant S := "/ASM " &
1250 -- Use to cause the assembler source file to be generated, using S as the
1251 -- filetype, instead of the object file. This may be useful if you need
1252 -- to examine the generated assembly code.
1254 S_GCC_AValid : aliased constant S := "/ASSUME_VALID " &
1256 -- /NO_ASSUME_VALID (D)
1259 -- Use to tell the compiler to assume that all objects have valid values
1260 -- except those occurring as prefixes to 'Valid attributes. In the default
1261 -- mode, the compiler assumes that values may be invalid unless it can
1262 -- be sure that they are valid, and code is generated to allow for this
1263 -- possibility. The use of /ASSUME_VALID will improve the code.
1265 S_GCC_Checks : aliased constant S := "/CHECKS=" &
1267 "-gnato,!-gnatE,!-gnatp " &
1275 "!-gnato,!-gnatp " &
1281 -- /CHECKS[=(keyword[,...])]
1283 -- If you compile with the default options, GNAT will insert many runtime
1284 -- checks into the compiled code, including code that performs range
1285 -- checking against constraints, but not arithmetic overflow checking for
1286 -- integer operations (including division by zero) or checks for access
1287 -- before elaboration on subprogram calls. All other runtime checks, as
1288 -- required by the Ada 95 Reference Manual, are generated by default.
1290 -- You may specify one or more of the following keywords to the /CHECKS
1291 -- qualifier to modify this behavior:
1293 -- DEFAULT The behavior described above. This is the default
1294 -- if the /CHECKS qualifier is not present on the
1295 -- command line. Same as /NOCHECKS.
1297 -- OVERFLOW Enables overflow checking for integer operations and
1298 -- checks for access before elaboration on subprogram
1299 -- calls. This causes GNAT to generate slower and larger
1300 -- executable programs by adding code to check for both
1301 -- overflow and division by zero (resulting in raising
1302 -- "Constraint_Error" as required by Ada semantics).
1303 -- Similarly, GNAT does not generate elaboration check
1304 -- by default, and you must specify this keyword to
1307 -- Note that this keyword does not affect the code
1308 -- generated for any floating-point operations; it
1309 -- applies only to integer operations. For floating-point,
1310 -- GNAT has the "Machine_Overflows" attribute set to
1311 -- "False" and the normal mode of operation is to generate
1312 -- IEEE NaN and infinite values on overflow or invalid
1313 -- operations (such as dividing 0.0 by 0.0).
1315 -- ELABORATION Enables dynamic checks for access-before-elaboration
1316 -- on subprogram calls and generic instantiations.
1318 -- ASSERTIONS The pragmas "Assert" and "Debug" normally have no
1319 -- effect and are ignored. This keyword causes "Assert"
1320 -- and "Debug" pragmas to be activated, as well as
1321 -- "Check", "Precondition" and "Postcondition" pragmas.
1323 -- SUPPRESS_ALL Suppress all runtime checks as though you have "pragma
1324 -- Suppress (all_checks)" in your source. Use this switch
1325 -- to improve the performance of the code at the expense
1326 -- of safety in the presence of invalid data or program
1329 -- DEFAULT Suppress the effect of any option OVERFLOW or
1332 -- FULL (D) Similar to OVERFLOW, but suppress the effect of any
1333 -- option ELABORATION or SUPPRESS_ALL.
1335 -- These keywords only control the default setting of the checks. You
1336 -- may modify them using either "Suppress" (to remove checks) or
1337 -- "Unsuppress" (to add back suppressed checks) pragmas in your program
1340 S_GCC_ChecksX : aliased constant S := "/NOCHECKS " &
1341 "-gnatp,!-gnato,!-gnatE";
1342 -- NODOC (see /CHECKS)
1344 S_GCC_Compres : aliased constant S := "/COMPRESS_NAMES " &
1346 -- /NOCOMPRESS_NAMES (D)
1349 -- Compress debug information and external symbol name table entries.
1350 -- In the generated debugging information, and also in the case of long
1351 -- external names, the compiler uses a compression mechanism if the name
1352 -- is very long. This compression method uses a checksum, and avoids
1353 -- trouble on some operating systems which have difficulty with very long
1356 S_GCC_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
1358 -- /CONFIGURATION_PRAGMAS_FILE=file
1360 -- Specify a configuration pragmas file that need to be taken into account
1362 S_GCC_Current : aliased constant S := "/CURRENT_DIRECTORY " &
1364 -- /CURRENT_DIRECTORY (D)
1365 -- /NOCURRENT_DIRECTORY
1367 -- Look for source files in the default directory.
1369 S_GCC_Data : aliased constant S := "/DATA_PREPROCESSING=<" &
1371 -- /DATA_PREPROCESSING=file_name
1373 -- This qualifier indicates to the compiler the file name (without
1374 -- directory information) of the preprocessor data file to use.
1375 -- The preprocessor data file should be found in the source directories.
1377 -- A preprocessing data file is a text file with significant lines
1378 -- indicating how should be preprocessed either a specific source or all
1379 -- sources not mentioned in other lines. A significant line is a non
1380 -- empty, non comment line. Comments are similar to Ada comments.
1382 -- Each significant line starts with either a literal string or the
1383 -- character '*'. A literal string is the file name (without directory
1384 -- information) of the source to preprocess. A character '*' indicates the
1385 -- preprocessing for all the sources that are not specified explicitly on
1386 -- other lines. It is an error to have two lines with the same file name
1387 -- or two lines starting with the character '*'.
1389 -- After the file name or the character '*', another optional literal
1390 -- string indicating the file name of the definition file to be used for
1391 -- preprocessing. (see 15.3 Form of Definitions File. The definition files
1392 -- are found by the compiler in one of the source directories. In some
1393 -- cases, when compiling a source in a directory other than the current
1394 -- directory, if the definition file is in the current directory, it may
1395 -- be necessary to add the current directory as a source directory through
1396 -- qualifier "/SEARCH=[]", otherwise the compiler would not find the
1399 -- Then, optionally, switches similar to those of gnatprep may be found.
1400 -- Those switches are:
1402 -- -b Causes both preprocessor lines and the lines deleted by
1403 -- preprocessing to be replaced by blank lines, preserving
1404 -- the line number. This switch is always implied;
1405 -- however, if specified after `-c' it cancels the effect
1408 -- -c Causes both preprocessor lines and the lines deleted by
1409 -- preprocessing to be retained as comments marked with
1410 -- the special string "--! ".
1412 -- -Dsymbol=value Define or redefine a symbol, associated with value.
1413 -- A symbol is an Ada identifier, or an Ada reserved word,
1414 -- with the exception of "if", "else", "elsif", "end",
1415 -- "and", "or" and "then". value is either a literal
1416 -- string, an Ada identifier or any Ada reserved word.
1417 -- A symbol declared with this switch replaces a symbol
1418 -- with the same name defined in a definition file.
1420 -- -s Causes a sorted list of symbol names and values to be
1421 -- listed on the standard output file.
1423 -- -u Causes undefined symbols to be treated as having the
1424 -- value FALSE in the context of a preprocessor test.
1425 -- In the absence of this option, an undefined symbol
1426 -- in a #if or #elsif test will be treated as an error.
1428 -- Examples of valid lines in a preprocessor data file:
1430 -- "toto.adb" "prep.def" -u
1431 -- -- preprocess "toto.adb", using definition file "prep.def",
1432 -- -- undefined symbol are False.
1434 -- * -c -DVERSION=V101
1435 -- -- preprocess all other sources without a definition file;
1436 -- -- suppressed lined are commented; symbol VERSION has the value
1439 -- "titi.adb" "prep2.def" -s
1440 -- -- preprocess "titi.adb", using definition file "prep2.def";
1441 -- -- list all symbols with their values.
1443 S_GCC_Debug : aliased constant S := "/DEBUG=" &
1456 -- /DEBUG[=debug-level]
1459 -- Specifies how much debugging information is to be included in
1460 -- the resulting object fie.
1462 -- 'debug-level' is one of the following:
1464 -- SYMBOLS (D) Include both debugger symbol records and traceback
1465 -- in the object file.
1467 -- ALL Include debugger symbol records, traceback plus
1468 -- extra debug information in the object file.
1470 -- NONE Excludes both debugger symbol records and traceback
1471 -- from the object file. Same as /NODEBUG.
1473 -- TRACEBACK Includes only traceback records in the object
1474 -- file. This is the default when /DEBUG is not used.
1476 S_GCC_DebugX : aliased constant S := "/NODEBUG " &
1478 -- NODOC (see /Debug)
1480 S_GCC_Dist : aliased constant S := "/DISTRIBUTION_STUBS=" &
1485 -- /NODISTRIBUTION_STUBS (D)
1486 -- /DISTRIBUTION_STUBS[=dist-opt]
1488 -- 'dist-opt' is either RECEIVER (the default) or SENDER and indicates
1489 -- that stubs for use in distributed programs (see the Distributed
1490 -- Systems Annex of the Ada RM) should be generated.
1492 S_GCC_DistX : aliased constant S := "/NODISTRIBUTION_STUBS " &
1493 "!-gnatzr,!-gnatzc";
1494 -- NODOC (see /DISTRIBUTION_STUBS)
1496 S_GCC_Error : aliased constant S := "/ERROR_LIMIT=#" &
1498 -- /NOERROR_LIMIT (D)
1501 -- NNN is a decimal integer in the range of 1 to 999999 and limits the
1502 -- number of error messages to be generated to that number. Once that
1503 -- number has been reached, the compilation is abandoned.
1504 -- Specifying 999999 is equivalent to /NOERROR_LIMIT.
1506 S_GCC_ErrorX : aliased constant S := "/NOERROR_LIMIT " &
1508 -- NODOC (see /ERROR_LIMIT)
1510 S_GCC_Expand : aliased constant S := "/EXPAND_SOURCE " &
1512 -- /NOEXPAND_SOURCE (D)
1515 -- Produces a listing of the expanded code in Ada source form. For
1516 -- example, all tasking constructs are reduced to appropriate run-time
1517 -- library calls. The maximum line length for the listing 72.
1519 S_GCC_Lexpand : aliased constant S := "/LEXPAND_SOURCE=#" &
1521 -- /LEXPAND_SOURCE=nnn
1523 -- Produces a listing of the expanded code in Ada source form. For
1524 -- example, all tasking constructs are reduced to appropriate run-time
1525 -- library calls. The parameter is the maximum line length for the
1528 S_GCC_Extend : aliased constant S := "/EXTENSIONS_ALLOWED " &
1530 -- /NOEXTENSIONS_ALLOWED (D)
1531 -- /EXTENSIONS_ALLOWED
1533 -- GNAT specific language extensions allowed.
1535 S_GCC_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1537 -- /EXTERNAL_REFERENCE="name=val"
1539 -- Specifies an external reference to the project manager. Useful only if
1540 -- /PROJECT_FILE is used.
1543 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1545 S_GCC_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
1547 -- /FILE_NAME_MAX_LENGTH=nnn
1549 -- Activates file name "krunching". NNN, a decimal integer in the range
1550 -- 1-999, indicates the maximum allowable length of a file name (not
1551 -- including the ADS or ADB filetype. The default is not to enable file
1554 S_GCC_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
1556 -- /NOFOLLOW_LINKS_FOR_FILES (D)
1557 -- /FOLLOW_LINKS_FOR_FILES
1559 -- Follow links when parsing project files
1561 S_GCC_Force : aliased constant S := "/FORCE_ALI " &
1566 -- In normal operation mode, the .ALI file is not generated if any
1567 -- illegalities are detected in the program. The use of this qualifier
1568 -- forces generation of the .ALI file. This file is marked as being
1569 -- in error, so it cannot be used for binding purposes, but it does
1570 -- contain reasonably complete cross-reference information, and thus may
1571 -- be useful for use by tools (e.g. semantic browsing tools or integrated
1572 -- development environments) that are driven from the .ALI file.
1574 S_GCC_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1576 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1577 -- /FULL_PATH_IN_BRIEF_MESSAGES
1579 -- When using project files, if some errors or warnings are detected
1580 -- during parsing and verbose mode is not in effect (no use of qualifier
1581 -- /VERBOSE), then error lines start with the full path name of the
1582 -- project file, rather than its simple file name.
1584 S_GCC_Generate : aliased constant S := "/GENERATE_PROCESSED_SOURCE " &
1586 -- /NOGENERATE_PROCESSED_SOURCE (D)
1587 -- /GENERATE_PROCESSED_SOURCE
1589 -- Generate a file <source>_prep if the integrated preprocessing
1590 -- is modifying the source text.
1592 S_GCC_GNAT : aliased constant S := "/GNAT_INTERNAL " &
1594 -- /NOGNAT_INTERNAL (D)
1597 -- Internal GNAT implementation mode. This should not be used for
1598 -- applications programs, it is intended only for use by the compiler
1599 -- and its run-time library. For documentation, see the GNAT sources.
1600 -- Note that it implies /WARNINGS=ALL,ERRORS and /STYLE_CHECKS=GNAT
1601 -- so that all standard warnings and all standard style options are
1602 -- turned on. All warnings and style error messages are treated as
1605 S_GCC_Help : aliased constant S := "/HELP " &
1610 -- Output usage information.
1612 S_GCC_Ident : aliased constant S := "/IDENTIFIER_CHARACTER_SET=" &
1635 -- /NOIDENTIFIER_CHARACTER_SET (D)
1636 -- /IDENTIFIER_CHARACTER_SET=char-set
1638 -- Normally GNAT recognizes the Latin-1 character set in source program
1639 -- identifiers, as described in the reference manual. This qualifier
1640 -- causes GNAT to recognize alternate character sets in identifiers.
1641 -- 'char-set' is one of the following strings indicating the character
1644 -- DEFAULT (D) Equivalent to 1, below. Also equivalent to
1645 -- /NOIDENTIFIER_CHARACTER_SET.
1647 -- 1 The basic character set is Latin-1. This character
1648 -- set is defined by ISO standard 8859, part 1. The lower
1649 -- half (character codes 16#00# ... 16#7F#) is identical
1650 -- to standard ASCII coding, but the upper half is used
1651 -- to represent additional characters. This includes
1652 -- extended letters used by European languages, such as
1653 -- the umlaut used in German.
1655 -- You may use any of these extended characters freely
1656 -- in character or string literals. In addition, the
1657 -- extended characters that represent letters can be
1658 -- used in identifiers.
1660 -- 2 Latin-2 letters allowed in identifiers, with uppercase
1661 -- and lowercase equivalence.
1663 -- 3 Latin-3 letters allowed in identifiers, with uppercase
1664 -- and lower case equivalence.
1666 -- 4 Latin-4 letters allowed in identifiers, with uppercase
1667 -- and lower case equivalence.
1669 -- PC IBM PC code page 437. This code page is the normal
1670 -- default for PCs in the U.S. It corresponds to the
1671 -- original IBM PC character set. This set has some, but
1672 -- not all, of the extended Latin-1 letters, but these
1673 -- letters do not have the same encoding as Latin-1. In
1674 -- this mode, these letters are allowed in identifiers
1675 -- with uppercase and lowercase equivalence.
1677 -- PC850 This code page (850) is a modification of 437 extended
1678 -- to include all the Latin-1 letters, but still not with
1679 -- the usual Latin-1 encoding. In this mode, all these
1680 -- letters are allowed in identifiers with uppercase and
1681 -- lower case equivalence.
1683 -- FULL_UPPER Any character in the range 80-FF allowed in
1684 -- identifiers, and all are considered distinct. In
1685 -- other words, there are no uppercase and lower case
1686 -- equivalences in this range.
1688 -- NO_UPPER No upper-half characters in the range 80-FF are
1689 -- allowed in identifiers. This gives Ada 95
1690 -- compatibility for identifier names.
1692 -- WIDE GNAT allows wide character codes to appear in
1693 -- character and string literals, and also optionally
1694 -- in identifiers. See the /WIDE_CHARACTER_ENCODING
1695 -- qualifier for information on encoding formats.
1697 S_GCC_IdentX : aliased constant S := "/NOIDENTIFIER_CHARACTER_SET " &
1699 -- NODOC (see /IDENTIFIER_CHARACTER_SET)
1701 S_GCC_Ignore : aliased constant S := "/IGNORE_REP_CLAUSES " &
1703 -- /IGNORE_REP_CLAUSES
1705 -- Causes all representation clauses to be ignored and treated as
1706 -- comments. Useful when compiling foreign code (for example when ASIS
1707 -- is used to analyze such code).
1709 S_GCC_Immed : aliased constant S := "/IMMEDIATE_ERRORS " &
1711 -- /NOIMMEDIATE_ERRORS (D)
1712 -- /IMMEDIATE_ERRORS
1714 -- Causes errors to be displayed as soon as they are encountered, rather
1715 -- than after compilation is terminated. If GNAT terminates prematurely
1716 -- or goes into an infinite loop, the last error message displayed may
1717 -- help to pinpoint the culprit.
1719 S_GCC_Inline : aliased constant S := "/INLINE=" &
1727 -- /INLINE[=keyword]
1729 -- Selects the level of inlining for your program. In the absence of this
1730 -- qualifier, GNAT does not attempt inlining across units and does not
1731 -- need to access the bodies of subprograms for which "pragma Inline" is
1732 -- specified if they are not in the current unit.
1734 -- The supported keywords are as follows:
1736 -- PRAGMA (D) Recognize and process "Inline" pragmas. However,
1737 -- for the inlining to actually occur, optimization
1738 -- must be enabled. This enables inlining across unit
1739 -- boundaries, that is, inlining a call in one unit of
1740 -- a subprogram declared in a with'ed unit. The compiler
1741 -- will access these bodies, creating an extra source
1742 -- dependency for the resulting object file, and where
1743 -- possible, the call will be inlined.
1745 -- This qualifier also turns on full optimization and
1746 -- requests GNAT to try to attempt automatic inlining
1747 -- of small subprograms within a unit.
1749 -- Specifying /OPTIMIZE=NONE will disable the main effect
1750 -- of this qualifier, but you may specify other
1751 -- optimization options, to get either lower
1752 -- (/OPTIMIZE=SOME) or higher (/OPTIMIZE=UNROLL_LOOPS)
1753 -- levels of optimization.
1755 -- FULL Front end inlining. The front end inlining activated
1756 -- by this switch is generally more extensive, and quite
1757 -- often more effective than the standard PRAGMA inlining
1758 -- mode. It will also generate additional dependencies.
1760 -- SUPPRESS Suppresses all inlining, even if other optimization
1761 -- or inlining switches are set.
1763 S_GCC_InlineX : aliased constant S := "/NOINLINE " &
1765 -- NODOC (see /INLINE)
1767 S_GCC_Intsrc : aliased constant S := "/INTERSPERSE_SOURCE " &
1770 -- /NO_INTERSPERSE_SOURCE (D)
1771 -- /INTERSPERSE_SOURCE
1773 -- Causes output from /XDEBUG or /EXPAND_SOURCE to be interspersed with
1774 -- lines from the original source file, output as comment lines with the
1775 -- associated line number.
1777 S_GCC_Just : aliased constant S := "/JUSTIFY_MESSAGES=#" &
1780 -- /NO_JUSTIFY_MESSAGES (D)
1781 -- /JUSTIFY_MESSAGES=nnn
1783 -- Causes error messages to be reformatted so that a message and all its
1784 -- continuation lines count as one warning or error in the statistics on
1785 -- total errors, and the message is broken down into lines (justified) so
1786 -- that no line is longer than nnn characters. The default message
1787 -- behavior (each message counted separately and not reformatted to fit
1788 -- a particular line length) can be obtained using /NO_JUSTIFY_MESSAGES.
1790 S_GCC_JustX : aliased constant S := "/NO_JUSTIFY_MESSAGES " &
1793 -- NODOC (see /JUSTIFY_MESSAGES)
1795 S_GCC_Length : aliased constant S := "/MAX_LINE_LENGTH=#" &
1797 -- /MAX_LINE_LENGTH=nnn
1799 -- Set maximum line length.
1800 -- The length of lines must not exceed the given value nnn.
1802 S_GCC_List : aliased constant S := "/LIST " &
1807 -- Cause a full listing of the file to be generated. In the case where
1808 -- a body is compiled, the corresponding spec is also listed, along
1809 -- with any subunits.
1811 S_GCC_Machine : aliased constant S := "/MACHINE_CODE_LISTING " &
1813 -- /NOMACHINE_CODE_LISTING (D)
1814 -- /MACHINE_CODE_LISTING
1816 -- Cause a full machine code listing of the file to be generated to
1817 -- <filename>.lis. Interspersed source is included if the /DEBUG
1818 -- qualifier is also present.
1820 S_GCC_Mapping : aliased constant S := "/MAPPING_FILE=<" &
1822 -- /MAPPING_FILE=file_name
1824 -- Use mapping file file_name
1826 -- A mapping file is a way to communicate to the compiler two mappings:
1827 -- from unit names to file names (without any directory information) and
1828 -- from file names to path names (with full directory information).
1829 -- These mappings are used by the compiler to short-circuit the path
1832 -- The use of mapping files is not required for correct operation of the
1833 -- compiler, but mapping files can improve efficiency, particularly when
1834 -- sources are read over a slow network connection. In normal operation,
1835 -- you need not be concerned with the format or use of mapping files,
1836 -- and /MAPPING_FILE is not a qualifier that you would use explicitly.
1837 -- It is intended only for use by automatic tools such as GNAT MAKE
1838 -- running under the project file facility. The description here of the
1839 -- format of mapping files is provided for completeness and for possible
1840 -- use by other tools.
1842 -- A mapping file is a sequence of sets of three lines. In each set, the
1843 -- first line is the unit name, in lower case, with "%s" appended for
1844 -- specifications and "%b" appended for bodies; the second line is the
1845 -- file name; and the third line is the path name.
1851 -- /gnat/project1/sources/main.2_ada
1853 -- When qualifier ?MAPPING_FILE is specified, the compiler will create in
1854 -- memory the two mappings from the specified file. If there is any
1855 -- problem (non existent file, truncated file or duplicate entries),
1856 -- no mapping will be created.
1858 -- Several /MAPPING_FILE qualifiers may be specified; however, only the
1859 -- last one on the command line will be taken into account.
1861 -- When using a project file, GNAT MAKE creates a temporary mapping file
1862 -- and communicates it to the compiler using this switch.
1864 S_GCC_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1871 -- /MESSAGES_PROJECT_FILE[=messages-option]
1873 -- Specifies the "verbosity" of the parsing of project files.
1874 -- messages-option may be one of the following:
1876 -- DEFAULT (D) No messages are output if there is no error or warning.
1878 -- MEDIUM A small number of messages are output.
1880 -- HIGH A great number of messages are output, most of them not
1881 -- being useful for the user.
1883 S_GCC_Nesting : aliased constant S := "/MAX_NESTING=#" &
1887 -- Set maximum level of nesting of constructs (including subprograms,
1888 -- loops, blocks, packages, and conditionals).
1889 -- The level of nesting must not exceed the given value nnn.
1890 -- A value of zero disable this style check (not enabled by default).
1892 S_GCC_Noadc : aliased constant S := "/NO_GNAT_ADC " &
1896 -- Cause the compiler to ignore any configuration pragmas file GNAT.ADC
1897 -- in the default directory. Implied by qualifier /PROJECT_FILE.
1898 -- Often used in conjunction with qualifier /CONFIGURATION_PRAGMAS_FILE.
1900 S_GCC_Noload : aliased constant S := "/NOLOAD " &
1904 -- Cause the compiler to operate in semantic check mode with full
1905 -- checking for all illegalities specified in the reference manual, but
1906 -- without generation of any source code (no object or ALI file
1909 -- Since dependent files must be accessed, you must follow the GNAT
1910 -- semantic restrictions on file structuring to operate in this mode:
1912 -- o The needed source files must be accessible.
1913 -- o Each file must contain only one compilation unit.
1914 -- o The file name and unit name must match.
1916 -- The output consists of error messages as appropriate. No object file
1917 -- or ALI file is generated. The checking corresponds exactly to the
1918 -- notion of legality in the Ada reference manual.
1920 -- Any unit can be compiled in semantics-checking-only mode, including
1921 -- units that would not normally be compiled (generic library units,
1922 -- subunits, and specifications where a separate body is present).
1924 S_GCC_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
1928 -- Do not look in the default directory for source files of the runtime.
1930 S_GCC_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
1934 -- Do not look for library files in the system default directory.
1936 S_GCC_Opt : aliased constant S := "/OPTIMIZE=" &
1938 "-O2,!-O0,!-O1,!-O3 " &
1940 "-O0,!-O1,!-O2,!-O3 " &
1942 "-O1,!-O0,!-O2,!-O3 " &
1944 "-Os,!-O0,!-O1,!-O2,!-O3 " &
1946 "-O1,!-O0,!-O2,!-O3 " &
1949 "NO_STRICT_ALIASING " &
1950 "-fno-strict-aliasing " &
1952 "-O3,!-O0,!-O1,!-O2";
1954 -- /OPTIMIZE[=(keyword[,...])]
1956 -- Selects the level of optimization for your program. The supported
1957 -- keywords are as follows:
1959 -- ALL (D) Perform most optimizations, including those that
1960 -- may be expensive.
1962 -- NONE Do not do any optimizations. Same as /NOOPTIMIZE.
1964 -- SOME Perform some optimizations, but omit ones that
1965 -- are costly in compilation time.
1967 -- SPACE Optimize space usage
1969 -- DEVELOPMENT Same as SOME.
1971 -- INLINING Full optimization, and also attempt automatic inlining
1972 -- of small subprograms within a unit
1974 -- UNROLL_LOOPS Try to unroll loops. This keyword may be specified
1975 -- with any keyword above other than NONE. Loop
1976 -- unrolling usually, but not always, improves the
1977 -- performance of programs.
1979 -- NO_STRICT_ALIASING
1980 -- Suppress aliasing analysis. When optimization is
1981 -- enabled (ALL or SOME above), the compiler assumes
1982 -- that pointers do in fact point to legitimate values
1983 -- of the pointer type (allocated from the proper pool).
1984 -- If this assumption is violated, e.g. by the use of
1985 -- unchecked conversion, then it may be necessary to
1986 -- suppress this assumption using this keyword (which
1987 -- may be specified only in conjunction with any
1988 -- keyword above, other than NONE).
1990 S_GCC_OptX : aliased constant S := "/NOOPTIMIZE " &
1991 "-O0,!-O1,!-O2,!-O3";
1992 -- NODOC (see /OPTIMIZE)
1994 S_GCC_Output : aliased constant S := "/OUTPUT_FILE=<" &
1996 -- /OUTPUT_FILE=fname
1998 -- This has the same effect as /LIST except that the output is written
1999 -- to a file instead of to standard output. If the given fname
2000 -- does not start with a period, then it is the full name of the file
2001 -- to be written. If fname starts with a period, the name of the file
2002 -- is the concatenation of to the name of the file being compiled with
2003 -- fname where the period is replace by an underline. For example, if
2004 -- file xyz.adb is compiled with -gnatl=.lst, then the output is written
2005 -- to file xyz.adb_lst.
2007 S_GCC_Pointer : aliased constant S := "/POINTER_SIZE=" &
2016 -- /POINTER_SIZE=64 (D)
2017 -- /POINTER_SIZE[=(keyword[,...])]
2019 -- Change how pointers and descriptors are allocated. The following
2020 -- keywords are supported:
2022 -- 64 (D) Allocate heap pointers in 64bit space except as
2023 -- constrained by a 32bit size clause or by
2024 -- Convention_C and generate 64bit descriptors for
2025 -- Descriptor mechanisms for calling imported
2026 -- subprograms and accept both 64bit and 32bit
2027 -- descriptors for calls to exported subprograms.
2029 -- LONG Equivalent to option 64.
2031 -- 32 Allocate all heap pointers in 32bit space and
2032 -- generate 32bit descriptors for Descriptor
2033 -- mechanisms for calling imported subprograms.
2035 -- SHORT Equivalent to option 32.
2037 S_GCC_Polling : aliased constant S := "/POLLING " &
2042 -- Enable polling. See the description of pragma Polling in the GNAT
2043 -- Reference Manual for full details.
2045 S_GCC_Project : aliased constant S := "/PROJECT_FILE=<" &
2047 -- /PROJECT_FILE=filename
2049 -- Specifies the main project file to be used. The project files rooted
2050 -- at the main project file will be parsed before the invocation of the
2051 -- compiler. The source and object directories to be searched will be
2052 -- communicated to the compiler through logical names
2053 -- ADA_PRJ_INCLUDE_FILE and ADA_PRJ_OBJECTS_FILE.
2055 S_GCC_Psta : aliased constant S := "/PRINT_STANDARD " &
2059 -- cause the compiler to output a representation of package Standard
2060 -- in a form very close to standard Ada. It is not quite possible to
2061 -- do this and remain entirely Standard (since new numeric base types
2062 -- cannot be created in standard Ada), but the output is easily
2063 -- readable to any Ada programmer, and is useful to determine the
2064 -- characteristics of target dependent types in package Standard.
2066 S_GCC_Reswarn : aliased constant S := "/TREAT_RESTRICTIONS_AS_WARNINGS " &
2069 -- /NO_TREAT_RESTRICTIONS_AS_WARNINGS (D)
2070 -- /TREAT_RESTRICTIONS_AS_WARNINGS
2072 -- Causes all restrictions to be treated as warnings (pragma Restriction
2073 -- treated as Restriction_Warnings, pragma Profile as Profile_Warnings,
2074 -- and pragma Ravenscar sets restriction warnings instead of restrictions)
2076 S_GCC_Report : aliased constant S := "/REPORT_ERRORS=" &
2087 -- /NOREPORT_ERRORS (D)
2088 -- /REPORT_ERRORS[=(keyword[,...])]
2090 -- Change the way errors are reported. The following keywords are
2093 -- VERBOSE (D) Verbose mode. Full error output with source lines
2096 -- BRIEF Generate the brief format error messages to
2097 -- SYS$OUTPUT as well as the verbose format message or
2100 -- FULL Normally, the compiler suppresses error messages that
2101 -- are likely to be redundant. This keyword causes all
2102 -- error messages to be generated. One particular effect
2103 -- is for the case of references to undefined variables.
2104 -- If a given variable is referenced several times, the
2105 -- normal format of messages produces one error. With
2106 -- FULL, each undefined reference produces a separate
2109 -- IMMEDIATE Normally, the compiler saves up error messages and
2110 -- generates them at the end of compilation in proper
2111 -- sequence. This keyword causes error messages to be
2112 -- generated as soon as they are detected. The use of
2113 -- IMMEDIATE usually causes error messages to be
2114 -- generated out of sequence. Use it when the compiler
2115 -- blows up due to an internal error. In this case, the
2116 -- error messages may be lost. Sometimes blowups are
2117 -- the result of mishandled error messages, so you may
2118 -- want to run with this keyword to determine whether
2119 -- any error messages were generated.
2121 -- DEFAULT Turn off VERBOSE and BRIEF. Same as /NOREPORT_ERRORS.
2123 S_GCC_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
2125 -- NODOC (see /REPORT_ERRORS)
2127 S_GCC_Repinfo : aliased constant S := "/REPRESENTATION_INFO=" &
2144 -- /NOREPRESENTATION_INFO (D)
2145 -- /REPRESENTATION_INFO[=(keyword[,...])]
2147 -- This qualifier controls output from the compiler of a listing showing
2148 -- representation information for declared types and objects.
2150 -- ARRAYS (D) Size and alignment information is listed for
2151 -- declared array and record types.
2153 -- ARRAYS_FILE Similar to ARRAYS, but the output is to a file
2154 -- with the name 'file_rep' where 'file' is the name
2155 -- of the corresponding source file.
2157 -- NONE no information is output (equivalent to omitting
2158 -- the /REPRESENTATION_INFO qualifiers).
2160 -- OBJECTS Size and alignment information is listed for all
2161 -- declared types and objects.
2163 -- OBJECTS_FILE Similar to OBJECTS, but the output is to a file
2164 -- with the name 'file_rep' where 'file' is the name
2165 -- of the corresponding source file.
2167 -- SYMBOLIC Symbolic expression information for values that
2168 -- are computed at run time for variant records.
2170 -- SYMBOLIC_FILE Similar to SYMBOLIC, but the output is to a file
2171 -- with the name 'file_rep' where 'file' is the name
2172 -- of the corresponding source file.
2174 -- DEFAULT Equivalent to ARRAYS.
2176 S_GCC_RepinfX : aliased constant S := "/NOREPRESENTATION_INFO " &
2178 -- NODOC (see /REPRESENTATION_INFO)
2180 S_GCC_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
2182 -- /RUNTIME_SYSTEM=xxx
2184 -- Build against an alternate runtime system named xxx or RTS-xxx.
2186 S_GCC_SCO : aliased constant S := "/SCO_OUTPUT " &
2188 -- /NOSCO_OUTPUT (D)
2191 -- Controls the output of SCO (Source Coverage Obligation) information
2192 -- in the generated ALI file. This information is used by advanced source
2193 -- coverage tools. For a full description of the SCO format, see unit
2194 -- SCOs in the compiler sources (sco.ads/sco.adb).
2196 S_GCC_Search : aliased constant S := "/SEARCH=*" &
2198 -- /SEARCH=(directory[,...])
2200 -- When looking for source files also look in directories specified.
2202 S_GCC_Style : aliased constant S := "/STYLE_CHECKS=" &
2231 "NOARRAY_INDEXES " &
2235 "BOOLEAN_OPERATORS " &
2243 "DOS_LINE_ENDINGS " &
2245 "NODOS_LINE_ENDINGS " &
2283 "STANDARD_CASING " &
2285 "NOSTANDARD_CASING " &
2287 "ORDERED_SUBPROGRAMS " &
2289 "NOORDERED_SUBPROGRAMS " &
2291 "OVERRIDING_INDICATORS " &
2293 "NOOVERRIDING_INDICATORS " &
2307 "STATEMENTS_AFTER_THEN_ELSE " &
2309 "NOSTATEMENTS_AFTER_THEN_ELSE " &
2315 "UNNECESSARY_BLANK_LINES " &
2317 "NOUNNECESSARY_BLANK_LINES " &
2323 -- /NOSTYLE_CHECKS (D)
2324 -- /STYLE_CHECKS[=(keyword,[...])]
2326 -- Normally, GNAT permits any code layout consistent with the reference
2327 -- manual requirements. This qualifier imposes style checking on the
2328 -- input source code. The following keywords are supported:
2330 -- ALL_BUILTIN (D) Equivalent to the following list of options:
2331 -- 3, ATTRIBUTE, BLANKS, COMMENTS, END, VTABS,
2332 -- HTABS, IF_THEN, KEYWORD, LAYOUT, LINE_LENGTH,
2333 -- PRAGMA, REFERENCES, SPECS, TOKEN.
2335 -- 1 .. 9 Specify indentation level from 1 to 9.
2336 -- The general style of required indentation is as
2337 -- specified by the examples in the Ada Reference
2338 -- Manual. Full line comments must be aligned with
2339 -- the -- starting on a column that is a multiple
2340 -- of the alignment level.
2342 -- ATTRIBUTE Check attribute casing.
2343 -- Attribute names, including the case of keywords
2344 -- such as digits used as attributes names,
2345 -- must be written in mixed case, that is,
2346 -- the initial letter and any letter following an
2347 -- underscore must be uppercase.
2348 -- All other letters must be lowercase.
2350 -- ARRAY_INDEXES Check indexes of array attributes.
2351 -- For array attributes First, Last, Range,
2352 -- or Length, the index number must be omitted
2353 -- for one-dimensional arrays and is required
2354 -- for multi-dimensional arrays.
2356 -- BLANKS Blanks not allowed at statement end.
2357 -- Trailing blanks are not allowed at the end of
2358 -- statements. The purpose of this rule, together
2359 -- with option HTABS (no horizontal tabs), is to
2360 -- enforce a canonical format for the use of
2361 -- blanks to separate source tokens.
2363 -- COMMENTS Check comments.
2364 -- Comments must meet the following set of rules:
2366 -- * The "--" that starts the column must either
2367 -- start in column one, or else at least one
2368 -- blank must precede this sequence.
2370 -- * Comments that follow other tokens on a line
2371 -- must have at least one blank following the
2372 -- "--" at the start of the comment.
2374 -- * Full line comments must have two blanks
2375 -- following the "--" that starts the comment,
2376 -- with the following exceptions.
2378 -- * A line consisting only of the "--"
2379 -- characters, possibly preceded by blanks is
2382 -- * A comment starting with "--x" where x is
2383 -- a special character is permitted. This
2384 -- allows proper processing of the output
2385 -- generated by specialized tools including
2386 -- gnatprep (where --! is used) and the SPARK
2387 -- annotation language (where --# is used).
2388 -- For the purposes of this rule, a special
2389 -- character is defined as being in one of the
2390 -- ASCII ranges 16#21#..16#2F# or
2393 -- * A line consisting entirely of minus signs,
2394 -- possibly preceded by blanks, is permitted.
2395 -- This allows the construction of box
2396 -- comments where lines of minus signs are
2397 -- used to form the top and bottom of the box.
2399 -- * If a comment starts and ends with "--" is
2400 -- permitted as long as at least one blank
2401 -- follows the initial "--". Together with
2402 -- the preceding rule, this allows the
2403 -- construction of box comments, as shown in
2404 -- the following example:
2406 -- ---------------------------
2407 -- -- This is a box comment --
2408 -- ---------------------------
2410 -- DOS_LINE_ENDINGS Check that no DOS line terminators are present
2411 -- All lines must be terminated by a single
2412 -- ASCII.LF character. In particular the DOS line
2413 -- terminator sequence CR / LF is not allowed).
2415 -- END Check end/exit labels.
2416 -- Optional labels on end statements ending
2417 -- subprograms and on exit statements exiting
2418 -- named loops, are required to be present.
2420 -- GNAT Enforces a set of style conventions that
2421 -- match the style used in the GNAT source code.
2422 -- This maybe useful when developing code that
2423 -- is eventually intended to be incorporated into
2424 -- GNAT. For further details, see GNAT sources.
2426 -- HTABS No horizontal tabs.
2427 -- Horizontal tab characters are not permitted in
2428 -- the source text. Together with the BLANKS
2429 -- (no blanks at end of line) option, this
2430 -- enforces a canonical form for the use of blanks
2431 -- to separate source tokens.
2433 -- IF_THEN Check if-then layout.
2434 -- The keyword then must appear either on the
2435 -- same line as the corresponding if, or on a line
2436 -- on its own, lined up under the if with at least
2437 -- one non-blank line in between containing all or
2438 -- part of the condition to be tested.
2440 -- KEYWORD Check keyword casing.
2441 -- All keywords must be in lower case (with the
2442 -- exception of keywords such as digits used as
2443 -- attribute names to which this check does not
2446 -- LAYOUT Check layout.
2447 -- Layout of statement and declaration constructs
2448 -- must follow the recommendations in the Ada
2449 -- Reference Manual, as indicated by the form of
2450 -- the syntax rules. For example an else keyword
2451 -- must be lined up with the corresponding if
2454 -- There are two respects in which the style rule
2455 -- enforced by this check option are more liberal
2456 -- than those in the Ada Reference Manual.
2457 -- First in the case of record declarations,
2458 -- it is permissible to put the record keyword on
2459 -- the same line as the type keyword, and then
2460 -- the end in end record must line up under type.
2461 -- For example, either of the following two
2462 -- layouts is acceptable:
2475 -- Second, in the case of a block statement,
2476 -- a permitted alternative is to put the block
2477 -- label on the same line as the declare or begin
2478 -- keyword, and then line the end keyword up under
2479 -- the block label. For example both the following
2485 -- A : Integer := 3;
2492 -- A : Integer := 3;
2497 -- The same alternative format is allowed for
2498 -- loops. For example, both of the following are
2503 -- Clear : while J < 10 loop
2508 -- while J < 10 loop
2514 -- LINE_LENGTH Check maximum line length.
2515 -- The length of source lines must not exceed 79
2516 -- characters, including any trailing blanks
2517 -- The value of 79 allows convenient display on
2518 -- an 80 character wide device or window, allowing
2519 -- for possible special treatment of 80 character
2522 -- NONE Clear any previously set style checks.
2524 -- ORDERED_SUBPROGRAMS Check order of subprogram bodies.
2525 -- All subprogram bodies in a given scope (e.g.
2526 -- a package body) must be in alphabetical order.
2527 -- The ordering rule uses normal Ada rules for
2528 -- comparing strings, ignoring casing of letters,
2529 -- except that if there is a trailing numeric
2530 -- suffix, then the value of this suffix is used
2531 -- in the ordering (e.g. Junk2 comes before
2534 -- OVERRIDING_INDICATORS Check that overriding subprograms are
2535 -- explicitly marked as such. The declaration of
2536 -- a primitive operation of a type extension that
2537 -- overrides an inherited operation must carry
2538 -- an overriding indicator.
2540 -- PRAGMA Check pragma casing.
2541 -- Pragma names must be written in mixed case,
2542 -- that is, the initial letter and any letter
2543 -- following an underscore must be uppercase.
2544 -- All other letters must be lowercase.
2546 -- REFERENCES Check references.
2547 -- All identifier references must be cased in the
2548 -- same way as the corresponding declaration.
2549 -- No specific casing style is imposed on
2550 -- identifiers. The only requirement is for
2551 -- consistency of references with declarations.
2553 -- SPECS Check separate specs.
2554 -- Separate declarations ("specs") are required
2555 -- for subprograms (a body is not allowed to serve
2556 -- as its own declaration). The only exception is
2557 -- that parameterless library level procedures are
2558 -- not required to have a separate declaration.
2559 -- This exception covers the most frequent form of
2560 -- main program procedures.
2562 -- STANDARD_CASING Check casing of entities in Standard.
2563 -- Any identifier from Standard must be cased to
2564 -- match the presentation in the Ada Reference
2565 -- Manual (for example, Integer and ASCII.NUL).
2567 -- TOKEN Check token spacing.
2568 -- The following token spacing rules are enforced:
2570 -- * The keywords abs and not must be followed
2573 -- * The token => must be surrounded by spaces.
2575 -- * The token <> must be preceded by a space or
2576 -- a left parenthesis.
2578 -- * Binary operators other than ** must be
2579 -- surrounded by spaces. There is no
2580 -- restriction on the layout of the ** binary
2583 -- * Colon must be surrounded by spaces.
2585 -- * Colon-equal (assignment) must be surrounded
2588 -- * Comma must be the first non-blank character
2589 -- on the line, or be immediately preceded by
2590 -- a non-blank character, and must be followed
2593 -- * If the token preceding a left paren ends
2594 -- with a letter or digit, then a space must
2595 -- separate the two tokens.
2597 -- * A right parenthesis must either be the
2598 -- first non-blank character on a line, or it
2599 -- must be preceded by a non-blank character.
2601 -- * A semicolon must not be preceded by
2602 -- a space, and must not be followed by
2603 -- a non-blank character.
2605 -- * A unary plus or minus may not be followed
2608 -- * A vertical bar must be surrounded by
2611 -- In the above rules, appearing in column one is
2612 -- always permitted, that is, counts as meeting
2613 -- either a requirement for a required preceding
2614 -- space, or as meeting a requirement for no
2617 -- Appearing at the end of a line is also always
2618 -- permitted, that is, counts as meeting either
2619 -- a requirement for a following space,
2620 -- or as meeting a requirement for no following
2623 -- UNNECESSARY_BLANK_LINES
2624 -- Check for unnecessary blank lines.
2625 -- A blank line is considered unnecessary if it
2626 -- appears at the end of the file, or if more
2627 -- than one blank line occurs in sequence.
2629 -- VTABS No form feeds or vertical tabs.
2630 -- Form feeds or vertical tab characters are not
2631 -- permitted in the source text.
2633 -- XTRA_PARENS Check for the use of an unnecessary extra
2634 -- level of parentheses (C - style) around
2635 -- conditions in if statements, while statements
2636 -- and exit statements.
2638 S_GCC_StyleX : aliased constant S := "/NOSTYLE_CHECKS " &
2640 -- NODOC (see /STYLE_CHECKS)
2642 S_GCC_Subdirs : aliased constant S := "/SUBDIRS=<" &
2646 -- The actual directories (object, exec, library, ...) are subdirectories
2647 -- of the directory specified in the project file. If the subdirectory
2648 -- does not exist, it is created automatically.
2650 S_GCC_Symbol : aliased constant S := "/SYMBOL_PREPROCESSING=" & '"' &
2652 -- /SYMBOL_PREPROCESSING="symbol=value"
2654 -- Define or redefine a preprocessing symbol, associated with value.
2655 -- If "=value" is not specified, then the value of the symbol is True.
2656 -- A symbol is an identifier, following normal Ada (case-insensitive)
2657 -- rules for its syntax, and value is any sequence (including an empty
2658 -- sequence) of characters from the set (letters, digits, period,
2659 -- underline). Ada reserved words may be used as symbols, with the
2660 -- exceptions of "if", "else", "elsif", "end", "and", "or" and "then".
2662 -- A symbol declared with this qualifier on the command line replaces
2663 -- a symbol with the same name either in a definition file or specified
2664 -- with a switch -D in the preprocessor data file.
2666 -- This qualifier is similar to qualifier /ASSOCIATE of
2667 -- GNAT PREPROCESSING.
2669 S_GCC_Syntax : aliased constant S := "/SYNTAX_ONLY " &
2671 -- /NOSYNTAX_ONLY (D)
2674 -- Run GNAT in syntax checking only mode. You can check a series of
2675 -- files in a single command, and can use wild cards to specify such a
2678 -- You may use other qualifiers in conjunction with this qualifier. In
2679 -- particular, /LIST and /REPORT_ERRORS=VERBOSE are useful to control the
2680 -- format of any generated error messages.
2682 -- The output is simply the error messages, if any. No object file or ALI
2683 -- file is generated by a syntax-only compilation. Also, no units other
2684 -- than the one specified are accessed. For example, if a unit "X" with's
2685 -- a unit "Y", compiling unit "X" in syntax check only mode does not
2686 -- access the source file containing unit "Y".
2688 -- Normally, GNAT allows only a single unit in a source file. However,
2689 -- this restriction does not apply in syntax-check-only mode, and it is
2690 -- possible to check a file containing multiple compilation units
2691 -- concatenated together. This is primarily used by the GNAT CHOP
2694 S_GCC_Table : aliased constant S := "/TABLE_MULTIPLIER=#" &
2696 -- /TABLE_MULTIPLIER=nnn
2698 -- All compiler tables start at nnn times usual starting size.
2700 S_GCC_Trace : aliased constant S := "/TRACE_UNITS " &
2705 -- This switch that does for the frontend what /VERBOSE does for the
2706 -- backend. The system prints the name of each unit, either a compilation
2707 -- unit or nested unit, as it is being analyzed.
2709 S_GCC_Tree : aliased constant S := "/TREE_OUTPUT " &
2714 -- Cause GNAT to write the internal tree for a unit to a file (with the
2715 -- filetype ATB for a body or ATS for a spec). This is not normally
2716 -- required, but is used by separate analysis tools. Typically these
2717 -- tools do the necessary compilations automatically, so you should never
2718 -- have to specify this switch in normal operation.
2720 S_GCC_Trys : aliased constant S := "/TRY_SEMANTICS " &
2725 -- In normal operation mode the compiler first parses the program and
2726 -- determines if there are any syntax errors. If there are, appropriate
2727 -- error messages are generated and compilation is immediately
2728 -- terminated. This qualifier tells GNAT to continue with semantic
2729 -- analysis even if syntax errors have been found. This may enable the
2730 -- detection of more errors in a single run. On the other hand, the
2731 -- semantic analyzer is more likely to encounter some internal fatal
2732 -- error when given a syntactically invalid tree.
2734 S_GCC_Units : aliased constant S := "/UNITS_LIST " &
2736 -- /NOUNITS_LIST (D)
2739 -- Print a list of units required by this compilation on SYS$OUTPUT. The
2740 -- listing includes all units on which the unit being compiled depends
2741 -- either directly or indirectly.
2743 S_GCC_Unique : aliased constant S := "/UNIQUE_ERROR_TAG " &
2745 -- /NOUNIQUE_ERROR_TAG (D)
2746 -- /UNIQUE_ERROR_TAG
2748 -- Tag compiler error messages with the string "error: ".
2750 S_GCC_Upcase : aliased constant S := "/UPPERCASE_EXTERNALS " &
2752 -- /NOUPPERCASE_EXTERNALS (D)
2753 -- /UPPERCASE_EXTERNALS
2755 -- Fold default and explicit external names in pragmas Import and Export
2756 -- to uppercase for compatibility with the default behavior of DEC C.
2758 S_GCC_Valid : aliased constant S := "/VALIDITY_CHECKING=" &
2807 -- /VALIDITY_CHECKING[=(keyword,[...])]
2809 -- Control level of validity checking.
2811 -- DEFAULT (D) In this mode checks are made to prevent
2812 -- erroneous behavior in accordance with the RM.
2813 -- Notably extra checks may be needed for case
2814 -- statements and subscripted array assignments.
2816 -- NONE No special checks for invalid values are
2817 -- performed. This means that references to
2818 -- uninitialized variables can cause erroneous
2819 -- behavior from constructs like case statements
2820 -- and subscripted array assignments. In this
2821 -- mode, invalid values can lead to erroneous
2824 -- FULL Every assignment is checked for validity, so
2825 -- that it is impossible to assign invalid values.
2826 -- The RM specifically allows such assignments,
2827 -- but in this mode, invalid values can never be
2828 -- assigned, and an attempt to perform such an
2829 -- assignment immediately raises Constraint_Error.
2830 -- This behavior is allowed (but not required) by
2831 -- the RM. This mode is intended as a debugging aid,
2832 -- and may be useful in helping to track down
2833 -- uninitialized variables. It may be useful to
2834 -- use this in conjunction with the Normalize_Scalars
2835 -- pragma which attempts to initialize with invalid
2836 -- values where possible.
2838 S_GCC_Verbose : aliased constant S := "/VERBOSE " &
2843 -- Show commands generated by the GCC driver. Normally used only for
2844 -- debugging purposes or if you need to be sure what version of the
2845 -- compiler you are executing.
2847 S_GCC_Verb_Asm : aliased constant S := "/VERBOSE_ASM " &
2848 "-S,-verbose_asm,!-c";
2852 -- Use to cause the assembler source file to be generated, using S as the
2853 -- filetype, instead of the object file. This may be useful if you need
2854 -- to examine the generated assembly code.
2856 S_GCC_Warn : aliased constant S := "/WARNINGS=" &
2858 "!-gnatws,!-gnatwe " &
2871 "FAILING_ASSERTIONS " &
2873 "NO_FAILING_ASSERTIONS " &
2875 "BAD_FIXED_VALUES " &
2877 "NO_BAD_FIXED_VALUES " &
2879 "BIASED_REPRESENTATION " &
2881 "NO_BIASED_REPRESENTATION " &
2887 "MISSING_COMPONENT_CLAUSES " &
2889 "NOMISSING_COMPONENT_CLAUSES " &
2891 "IMPLICIT_DEREFERENCE " &
2893 "NO_IMPLICIT_DEREFERENCE " &
2897 "UNREFERENCED_FORMALS " &
2899 "NOUNREFERENCED_FORMALS " &
2901 "UNRECOGNIZED_PRAGMAS " &
2903 "NOUNRECOGNIZED_PRAGMAS " &
2911 "NOIMPLEMENTATION " &
2917 "CONSTANT_VARIABLES " &
2919 "NOCONSTANT_VARIABLES " &
2927 "NOMODIFIED_UNREF " &
2929 "SUSPICIOUS_MODULUS " &
2931 "NOSUSPICIOUS_MODULUS " &
2939 "OUT_PARAM_UNREF " &
2941 "NOOUT_PARAM_UNREF " &
2943 "INEFFECTIVE_INLINE " &
2945 "NOINEFFECTIVE_INLINE " &
2949 "PARAMETER_ORDER " &
2951 "NOPARAMETER_ORDER " &
2953 "NOMISSING_PARENS " &
2961 "NOOBJECT_RENAMES " &
2970 "-Wuninitialized " &
2975 "VARIABLES_UNINITIALIZED " &
2977 "NOVARIABLES_UNINITIALIZED " &
2979 "LOWBOUND_ASSUMED " &
2981 "NOLOWBOUND_ASSUMED " &
2983 "WARNINGS_OFF_PRAGMAS " &
2985 "NO_WARNINGS_OFF_PRAGMAS " &
2987 "IMPORT_EXPORT_PRAGMAS " &
2989 "NOIMPORT_EXPORT_PRAGMAS " &
2991 "LOCAL_RAISE_HANDLING " &
2993 "NOLOCAL_RAISE_HANDLING " &
2995 "ADA_2005_COMPATIBILITY " &
2997 "NOADA_2005_COMPATIBILITY " &
2999 "UNCHECKED_CONVERSIONS " &
3001 "NOUNCHECKED_CONVERSIONS " &
3005 -- Suppress the output of all warning messages from the GNAT front end.
3006 -- Note that it does not suppress warnings from the gcc back end.
3008 -- /WARNINGS[=(keyword[,...])]
3010 -- In addition to error messages, corresponding to illegalities as
3011 -- defined in the reference manual, the compiler detects two kinds of
3012 -- warning situations. First, the compiler considers some constructs
3013 -- suspicious and generates a warning message to alert you to a possible
3014 -- error. Second, if the compiler detects a situation that is sure to
3015 -- raise an exception at runtime, it generates a warning message.
3017 -- You may specify the following keywords to change this behavior:
3019 -- DEFAULT (D) The default behavior above.
3021 -- ALL Activate all optional warnings.
3022 -- Activates most optional warning messages,
3023 -- see remaining list in this section for
3024 -- details on optional warning messages that
3025 -- can be individually controlled.
3026 -- The warnings that are not turned on by
3027 -- this option are BIASED_ROUNDING,
3028 -- IMPLICIT_DEREFERENCE, HIDING and
3029 -- ELABORATION. All other optional Ada
3030 -- warnings are turned on.
3032 -- EVERY Activate every optional warning.
3033 -- Activates all optional warnings, including
3034 -- those listed above as exceptions for ALL.
3036 -- NOALL Suppress all optional errors.
3037 -- Suppresses all optional warning messages
3038 -- that can be activated by option ALL.
3040 -- ALL_GCC Request additional messages from the GCC
3041 -- backend. Most of these are not relevant
3044 -- CONDITIONALS Activate warnings for conditional
3045 -- Expressions used in tests that are known
3046 -- to be True or False at compile time. The
3047 -- default is that such warnings are not
3050 -- NOCONDITIONALS Suppress warnings for conditional
3051 -- expressions used in tests that are known
3052 -- to be True or False at compile time.
3054 -- IMPLICIT_DEREFERENCE Activate warnings on implicit dereferencing.
3055 -- The use of a prefix of an access type in an
3056 -- indexed component, slice, or selected component
3057 -- without an explicit .all will generate
3058 -- a warning. With this warning enabled, access
3059 -- checks occur only at points where an explicit
3060 -- .all appears in the source code (assuming no
3061 -- warnings are generated as a result of this
3062 -- option). The default is that such warnings are
3063 -- not generated. Note that /WARNINGS=ALL does not
3064 -- affect the setting of this warning option.
3066 -- NOIMPLICIT_DEREFERENCE Suppress warnings on implicit dereferencing.
3067 -- in indexed components, slices, and selected
3070 -- ELABORATION Activate warnings on missing pragma
3071 -- Elaborate_All statements. The default is
3072 -- that such warnings are not generated.
3074 -- NOELABORATION Suppress warnings on missing pragma
3075 -- Elaborate_All statements.
3077 -- ERRORS Warning messages are to be treated as errors.
3078 -- The warning string still appears, but the
3079 -- warning messages are counted as errors, and
3080 -- prevent the generation of an object file.
3082 -- HIDING Activate warnings on hiding declarations.
3083 -- A declaration is considered hiding if it is
3084 -- for a non-overloadable entity, and it declares
3085 -- an entity with the same name as some other
3086 -- entity that is directly or use-visible. The
3087 -- default is that such warnings are not
3090 -- NOHIDING Suppress warnings on hiding declarations.
3092 -- IMPLEMENTATION Activate warnings for a with of an internal
3093 -- GNAT implementation unit, defined as any unit
3094 -- from the Ada, Interfaces, GNAT, DEC or
3095 -- System hierarchies that is not documented in
3096 -- either the Ada Reference Manual or the GNAT
3097 -- Programmer's Reference Manual. Such units are
3098 -- intended only for internal implementation
3099 -- purposes and should not be with'ed by user
3100 -- programs. The default is that such warnings
3103 -- NOIMPLEMENTATION Disables warnings for a with of an internal
3104 -- GNAT implementation unit.
3106 -- INEFFECTIVE_INLINE Activate warnings on ineffective pragma Inlines
3107 -- Activates warnings for failure of front end
3108 -- inlining (activated by /INLINE=FULL) to inline
3109 -- a particular call. There are many reasons for
3110 -- not being able to inline a call, including most
3111 -- commonly that the call is too complex to
3112 -- inline. This warning can also be turned on
3113 -- using /INLINE=FULL.
3115 -- NOINEFFECTIVE_INLINE Suppress warnings on ineffective pragma Inlines
3116 -- Suppresses warnings on ineffective pragma
3117 -- Inlines. If the inlining mechanism cannot
3118 -- inline a call, it will simply ignore the
3119 -- request silently.
3121 -- MISSING_COMPONENT_CLAUSES
3122 -- Activate warnings for cases when there are
3123 -- component clauses for a record type, but not
3124 -- for every component of the record.
3126 -- NOMISSING_COMPONENT_CLAUSES
3127 -- Suppress warnings for cases when there are
3128 -- missing component clauses for a record type.
3131 -- Activate warnings for cases where parentheses
3132 -- are not used and the result is potential
3133 -- ambiguity from a reader's point of view.
3134 -- For example (not a > b) when a and b are
3135 -- modular means (not (a) > b) and very likely
3136 -- the programmer intended (not (a > b)).
3139 -- Suppress warnings for cases where parentheses
3140 -- are not used and the result is potential
3141 -- ambiguity from a reader's point of view.
3143 -- MODIFIED_UNREF Activates warnings for variables that are
3144 -- assigned (using an initialization value or with
3145 -- one or more assignment statements) but whose
3146 -- value is never read. The warning is suppressed
3147 -- for volatile variables and also for variables
3148 -- that are renamings of other variables or for
3149 -- which an address clause is given. This warning
3150 -- can also be turned on using /WARNINGS/OPTIONAL.
3152 -- NOMODIFIED_UNREF Disables warnings for variables that are
3153 -- assigned or initialized, but never read.
3155 -- NORMAL Sets normal warning mode, in which enabled
3156 -- warnings are issued and treated as warnings
3157 -- rather than errors. This is the default mode.
3158 -- It can be used to cancel the effect of an
3159 -- explicit /WARNINGS=SUPPRESS or
3160 -- /WARNINGS=ERRORS. It also cancels the effect
3161 -- of the implicit /WARNINGS=ERRORS that is
3162 -- activated by the use of /STYLE=GNAT.
3164 -- OBSOLESCENT Activates warnings for calls to subprograms
3165 -- marked with pragma Obsolescent and for use of
3166 -- features in Annex J of the Ada Reference
3167 -- Manual. In the case of Annex J, not all
3168 -- features are flagged. In particular use of the
3169 -- renamed packages (like Text_IO), use of package
3170 -- ASCII and use of the attribute 'Constrained are
3171 -- not flagged, since these are very common and
3172 -- would generate many annoying positive warnings.
3173 -- The default is that such warnings are not
3176 -- NOOBSOLESCENT Disables warnings on use of obsolescent
3179 -- OBJECT_RENAME Activate warnings for non limited objects
3180 -- renaming parameterless functions.
3182 -- NOOBJECT_RENAME Suppress warnings for non limited objects
3183 -- renaming parameterless functions.
3185 -- OPTIONAL Equivalent to ALL.
3187 -- NOOPTIONAL Equivalent to NOALL.
3189 -- OVERLAYS Activate warnings for possibly unintended
3190 -- initialization effects of defining address
3191 -- clauses that cause one variable to overlap
3192 -- another. The default is that such warnings
3195 -- NOOVERLAYS Suppress warnings on possibly unintended
3196 -- initialization effects of defining address
3197 -- clauses that cause one variable to overlap
3200 -- REDUNDANT Activate warnings for redundant constructs.
3201 -- In particular assignments of a variable to
3202 -- itself, and a type conversion that converts
3203 -- an object to its own type. The default
3204 -- is that such warnings are not generated.
3206 -- NOREDUNDANT Suppress warnings for redundant constructs.
3208 -- SUPPRESS Completely suppress the output of all warning
3209 -- messages. Same as /NOWARNINGS.
3211 -- UNCHECKED_CONVERSIONS Activates warnings on unchecked conversions.
3212 -- Causes warnings to be generated for
3213 -- unchecked conversions when the two types are
3214 -- known at compile time to have different sizes.
3215 -- The default is that such warnings are
3218 -- NOUNCHECKED_CONVERSIONS Suppress warnings for unchecked conversions.
3220 -- UNINITIALIZED Generate warnings for uninitialized variables.
3221 -- This is a GCC option, not an Ada option.
3222 -- You must also specify the /OPTIMIZE qualifier
3223 -- with a value other than NONE (in other words,
3224 -- this keyword works only if optimization is
3227 -- UNREFERENCED_FORMALS Activate warnings on unreferenced formals.
3228 -- Causes a warning to be generated if a formal
3229 -- parameter is not referenced in the body of
3230 -- the subprogram. This warning can also be turned
3231 -- on using option ALL or UNUSED.
3233 -- NOUNREFERENCED_FORMALS Suppress warnings on unreferenced formals.
3234 -- Suppresses warnings for unreferenced formal
3235 -- parameters. Note that the combination UNUSED
3236 -- followed by NOUNREFERENCED_FORMALS has the
3237 -- effect of warning on unreferenced entities
3238 -- other than subprogram formals.
3240 -- UNUSED Activates warnings to be generated for entities
3241 -- that are defined but not referenced, and for
3242 -- units that are with'ed and not referenced. In
3243 -- the case of packages, a warning is also
3244 -- generated if no entities in the package are
3245 -- referenced. This means that if the package
3246 -- is referenced but the only references are in
3247 -- use clauses or renames declarations, a warning
3248 -- is still generated. A warning is also generated
3249 -- for a generic package that is with'ed but never
3250 -- instantiated. In the case where a package or
3251 -- subprogram body is compiled, and there is a
3252 -- with on the corresponding spec that is only
3253 -- referenced in the body, a warning is also
3254 -- generated, noting that the with can be moved
3255 -- to the body. The default is that such warnings
3256 -- are not generated.
3258 -- NOUNUSED Suppress warnings for unused entities and
3261 -- VARIABLES_UNINITIALIZED Activates warnings on unassigned variables.
3262 -- Causes warnings to be generated when a variable
3263 -- is accessed which may not be properly
3265 -- The default is that such warnings are
3268 -- NOVARIABLES_UNINITIALIZED Suppress warnings for uninitialized
3271 S_GCC_WarnX : aliased constant S := "/NOWARNINGS " &
3273 -- NODOC (see /WARNINGS)
3275 S_GCC_No_Back : aliased constant S := "/NO_BACK_END_WARNINGS " &
3277 -- /NO_BACK_END_WARNINGS
3279 -- Inhibit all warning messages of the GCC back-end.
3281 S_GCC_All_Back : aliased constant S := "/ALL_BACK_END_WARNINGS " &
3283 -- /ALL_BACK_END_WARNINGS
3285 -- Activate all warning messages of the GCC back-end.
3287 S_GCC_Wide : aliased constant S := "/WIDE_CHARACTER_ENCODING=" &
3300 -- /NOWIDE_CHARACTER_ENCODING (D)
3301 -- /WIDE_CHARACTER_ENCODING[=encode-type]
3303 -- Specifies the mechanism used to encode wide characters. 'encode-type'
3304 -- is one of the following:
3306 -- BRACKETS (D) A wide character is encoded as ["xxxx"] where XXXX
3307 -- are four hexadecimal digits representing the coding
3308 -- ('Pos value) of the character in type
3309 -- Wide_Character. The hexadecimal digits may use upper
3310 -- or lower case letters.
3312 -- This notation can also be used for upper half
3313 -- Character values using the format ["xx"] where XX is
3314 -- two hexadecimal digits representing the coding ('Pos
3315 -- value) of the character in type Character (or
3316 -- Wide_Character). The hexadecimal digits may use upper
3319 -- NONE No wide characters are allowed. Same
3320 -- as /NOWIDE_CHARACTER_ENCODING.
3322 -- HEX In this encoding, a wide character is represented by
3323 -- the following five character sequence: ESC a b c d
3324 -- Where 'a', 'b', 'c', and 'd' are the four hexadecimal
3325 -- characters (using uppercase letters) of the wide
3326 -- character code. For example, ESC A345 is used to
3327 -- represent the wide character with code 16#A345#. This
3328 -- scheme is compatible with use of the full
3329 -- Wide_Character set.
3331 -- UPPER The wide character with encoding 16#abcd# where the
3332 -- upper bit is on (in other words, "a" is in the range
3333 -- 8-F) is represented as two bytes, 16#ab# and 16#cd#.
3334 -- The second byte may never be a format control
3335 -- character, but is not required to be in the upper
3336 -- half. This method can be also used for shift-JIS or
3337 -- EUC, where the internal coding matches the external
3340 -- SHIFT_JIS A wide character is represented by a two-character
3341 -- sequence, 16#ab# and 16#cd#, with the restrictions
3342 -- described for upper-half encoding as described above.
3343 -- The internal character code is the corresponding JIS
3344 -- character according to the standard algorithm for
3345 -- Shift-JIS conversion. Only characters defined in the
3346 -- JIS code set table can be used with this encoding
3349 -- UTF8 A wide character is represented using
3350 -- UCS Transformation Format 8 (UTF-8) as defined in Annex
3351 -- R of ISO 10646-1/Am.2. Depending on the character
3352 -- value, the representation is a one, two, or three byte
3355 -- 16#0000#-16#007f#: 2#0xxxxxxx#
3356 -- 16#0080#-16#07ff#: 2#110xxxxx# 2#10xxxxxx#
3357 -- 16#0800#-16#ffff#: 2#1110xxxx# 2#10xxxxxx# 2#10xxxxxx#
3359 -- where the xxx bits correspond to the left-padded bits
3360 -- of the 16-bit character value. Note that all lower
3361 -- half ASCII characters are represented as ASCII bytes
3362 -- and all upper half characters and other wide characters
3363 -- are represented as sequences of upper-half (The full
3364 -- UTF-8 scheme allows for encoding 31-bit characters as
3365 -- 6-byte sequences, but in this implementation, all UTF-8
3366 -- sequences of four or more bytes length will be treated
3369 -- EUC A wide character is represented by a two-character
3370 -- sequence 16#ab# and 16#cd#, with both characters being
3371 -- in the upper half. The internal character code is the
3372 -- corresponding JIS character according to the EUC
3373 -- encoding algorithm. Only characters defined in the JIS
3374 -- code set table can be used with this encoding method.
3376 S_GCC_WideX : aliased constant S := "/NOWIDE_CHARACTER_ENCODING " &
3378 -- NODOC (see /WIDE_CHARACTER_ENCODING)
3380 S_GCC_Xdebug : aliased constant S := "/XDEBUG " &
3385 -- Output expanded source files for source level debugging.
3386 -- The expanded source (see /EXPAND_SOURCE) is written to files
3387 -- with names formed by appending "_DG" to the input file name,
3388 -- The debugging information generated by the /DEBUG qualifier will then
3389 -- refer to the generated file. This allows source level debugging using
3390 -- the generated code which is sometimes useful for complex code, for
3391 -- example to find out exactly which part of a complex construction
3392 -- raised an exception. The maximum line length for the output is 72.
3394 S_GCC_Lxdebug : aliased constant S := "/LXDEBUG=#" &
3398 -- Output expanded source files for source level debugging.
3399 -- The expanded source (see /EXPAND_SOURCE) is written to files
3400 -- with names formed by appending "_DG" to the input file name,
3401 -- The debugging information generated by the /DEBUG qualifier will then
3402 -- refer to the generated file. This allows source level debugging using
3403 -- the generated code which is sometimes useful for complex code, for
3404 -- example to find out exactly which part of a complex construction
3405 -- raised an exception. The parameter is the maximum line length for
3408 S_GCC_Xref : aliased constant S := "/XREF=" &
3415 -- Normally the compiler generates full cross-referencing information in
3416 -- the .ALI file. This information is used by a number of tools,
3417 -- including GNAT FIND and GNAT XREF.
3419 -- GENERATE (D) Generate cross-referencing information.
3421 -- SUPPRESS Suppress cross-referencing information.
3422 -- This saves some space and may slightly
3423 -- speed up compilation, but means that some
3424 -- tools cannot be used.
3426 GCC_Switches : aliased constant Switches :=
3427 (S_GCC_Ada_83 'Access,
3428 S_GCC_Ada_95 'Access,
3429 S_GCC_Ada_05 'Access,
3432 S_GCC_AValid 'Access,
3433 S_GCC_Checks 'Access,
3434 S_GCC_ChecksX 'Access,
3435 S_GCC_Compres 'Access,
3436 S_GCC_Config 'Access,
3437 S_GCC_Current 'Access,
3438 S_GCC_Debug 'Access,
3439 S_GCC_DebugX 'Access,
3442 S_GCC_DistX 'Access,
3443 S_GCC_Error 'Access,
3444 S_GCC_ErrorX 'Access,
3445 S_GCC_Expand 'Access,
3446 S_GCC_Lexpand 'Access,
3447 S_GCC_Extend 'Access,
3450 S_GCC_Follow 'Access,
3451 S_GCC_Force 'Access,
3453 S_GCC_Generate'Access,
3456 S_GCC_Ident 'Access,
3457 S_GCC_IdentX 'Access,
3458 S_GCC_Ignore 'Access,
3459 S_GCC_Immed 'Access,
3460 S_GCC_Inline 'Access,
3461 S_GCC_InlineX 'Access,
3462 S_GCC_Intsrc 'Access,
3464 S_GCC_JustX 'Access,
3465 S_GCC_Length 'Access,
3467 S_GCC_Output 'Access,
3468 S_GCC_Machine 'Access,
3469 S_GCC_Mapping 'Access,
3471 S_GCC_Nesting 'Access,
3472 S_GCC_Noadc 'Access,
3473 S_GCC_Noload 'Access,
3474 S_GCC_Nostinc 'Access,
3475 S_GCC_Nostlib 'Access,
3478 S_GCC_Pointer 'Access,
3479 S_GCC_Polling 'Access,
3480 S_GCC_Project 'Access,
3482 S_GCC_Report 'Access,
3483 S_GCC_ReportX 'Access,
3484 S_GCC_Repinfo 'Access,
3485 S_GCC_RepinfX 'Access,
3488 S_GCC_Search 'Access,
3489 S_GCC_Style 'Access,
3490 S_GCC_StyleX 'Access,
3491 S_GCC_Subdirs 'Access,
3492 S_GCC_Symbol 'Access,
3493 S_GCC_Syntax 'Access,
3494 S_GCC_Table 'Access,
3495 S_GCC_Trace 'Access,
3498 S_GCC_Units 'Access,
3499 S_GCC_Unique 'Access,
3500 S_GCC_Upcase 'Access,
3501 S_GCC_Valid 'Access,
3502 S_GCC_Verbose 'Access,
3503 S_GCC_Verb_Asm'Access,
3505 S_GCC_WarnX 'Access,
3507 S_GCC_WideX 'Access,
3508 S_GCC_No_Back 'Access,
3509 S_GCC_All_Back'Access,
3510 S_GCC_Xdebug 'Access,
3511 S_GCC_Lxdebug 'Access,
3512 S_GCC_Xref 'Access);
3514 ----------------------------
3515 -- Switches for GNAT ELIM --
3516 ----------------------------
3518 S_Elim_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3520 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3522 -- Add directories to the project search path.
3524 S_Elim_All : aliased constant S := "/ALL " &
3529 -- Also look for subprograms from the GNAT run time that can be
3530 -- eliminated. Note that when 'gnat.adc' is produced using this switch,
3531 -- the entire program must be recompiled with qualifier /ALL_FILES of
3534 S_Elim_Bind : aliased constant S := "/BIND_FILE=<" &
3536 -- /BIND_FILE=file_name
3538 -- Specifies file_name as the bind file to process. If this qualifier is
3539 -- not used, the name of the bind file is computed from the full expanded
3540 -- Ada name of a main subprogram.
3542 S_Elim_Comp : aliased constant S := "/COMPILER=@" &
3544 -- /COMPILER=path_name
3546 -- Instructs GNAT ELIM to use a specific gcc compiler instead of one
3547 -- available on the path.
3549 S_Elim_Config : aliased constant S := "/CONFIGURATION_PRAGMAS=<" &
3551 -- /CONFIGURATION_PRAGMAS=path_name
3553 -- Specifies a file that contains configuration pragmas.
3554 -- The file must be specified with absolute path.
3556 S_Elim_Current : aliased constant S := "/CURRENT_DIRECTORY " &
3558 -- /CURRENT_DIRECTORY (D)
3559 -- /NOCURRENT_DIRECTORY
3561 -- Look for source files in the default directory.
3563 S_Elim_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3565 -- /EXTERNAL_REFERENCE="name=val"
3567 -- Specifies an external reference to the project manager. Useful only if
3568 -- /PROJECT_FILE is used.
3571 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3573 S_Elim_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3575 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3576 -- /FOLLOW_LINKS_FOR_FILES
3578 -- Follow links when parsing project files
3580 S_Elim_GNATMAKE : aliased constant S := "/GNATMAKE=@" &
3582 -- /GNATMAKE=path_name
3584 -- Instructs GNAT MAKE to use a specific gnatmake instead of one available
3587 S_Elim_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3594 -- /MESSAGES_PROJECT_FILE[=messages-option]
3596 -- Specifies the "verbosity" of the parsing of project files.
3597 -- messages-option may be one of the following:
3599 -- DEFAULT (D) No messages are output if there is no error or warning.
3601 -- MEDIUM A small number of messages are output.
3603 -- HIGH A great number of messages are output, most of them not
3604 -- being useful for the user.
3606 S_Elim_Project : aliased constant S := "/PROJECT_FILE=<" &
3608 -- /PROJECT_FILE=filename
3610 -- Specifies the main project file to be used. The project files rooted
3611 -- at the main project file will be parsed before the invocation of the
3612 -- gnatelim. The source directories to be searched will be communicated
3613 -- to gnatelim through logical name ADA_PRJ_INCLUDE_FILE.
3615 S_Elim_Quiet : aliased constant S := "/QUIET " &
3620 -- Quiet mode: by default GNAT ELIM outputs to the standard error stream
3621 -- the number of program units left to be processed. This option turns
3624 S_Elim_Search : aliased constant S := "/SEARCH=*" &
3626 -- /SEARCH=(directory, ...)
3628 -- When looking for source files also look in the specified directories.
3630 S_Elim_Subdirs : aliased constant S := "/SUBDIRS=<" &
3634 -- The actual directories (object, exec, library, ...) are subdirectories
3635 -- of the directory specified in the project file. If the subdirectory
3636 -- does not exist, it is created automatically.
3638 S_Elim_Verb : aliased constant S := "/VERBOSE " &
3643 -- Verbose mode: GNAT ELIM version information is output as Ada comments
3644 -- to the standard output stream. Also, in addition to the number of
3645 -- program units left, GNAT ELIM will output the name of the current unit
3648 Elim_Switches : aliased constant Switches :=
3649 (S_Elim_Add 'Access,
3651 S_Elim_Bind 'Access,
3652 S_Elim_Comp 'Access,
3653 S_Elim_Config 'Access,
3654 S_Elim_Current 'Access,
3656 S_Elim_Follow 'Access,
3657 S_Elim_GNATMAKE'Access,
3658 S_Elim_Mess 'Access,
3659 S_Elim_Project 'Access,
3660 S_Elim_Quiet 'Access,
3661 S_Elim_Search 'Access,
3662 S_Elim_Subdirs 'Access,
3663 S_Elim_Verb 'Access);
3665 ----------------------------
3666 -- Switches for GNAT FIND --
3667 ----------------------------
3669 S_Find_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3671 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3673 -- Add directories to the project search path.
3675 S_Find_All : aliased constant S := "/ALL_FILES " &
3680 -- If this switch is present, FIND and XREF will parse the read-only
3681 -- files found in the library search path. Otherwise, these files will
3682 -- be ignored. This option can be used to protect Gnat sources or your
3683 -- own libraries from being parsed, thus making FIND and XREF much
3684 -- faster, and their output much smaller.
3686 S_Find_Deriv : aliased constant S := "/DERIVED_TYPE_INFORMATION " &
3688 -- /NODERIVED_TYPE_INFORMATION (D)
3689 -- /DERIVED_TYPE_INFORMATION
3691 -- Output the parent type reference for each matching derived types.
3693 S_Find_Expr : aliased constant S := "/EXPRESSIONS " &
3695 -- /NOEXPRESSIONS (D)
3698 -- By default, FIND accepts the simple regular expression set for pattern.
3699 -- If this switch is set, then the pattern will be considered as a full
3700 -- Unix-style regular expression.
3702 S_Find_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3704 -- /EXTERNAL_REFERENCE="name=val"
3706 -- Specifies an external reference to the project manager. Useful only if
3707 -- /PROJECT_FILE is used.
3710 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3712 S_Find_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3714 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3715 -- /FOLLOW_LINKS_FOR_FILES
3717 -- Follow links when parsing project files
3719 S_Find_Full : aliased constant S := "/FULL_PATHNAME " &
3721 -- /NOFULL_PATHNAME (D)
3724 -- If this switch is set, the output file names will be preceded by their
3725 -- directory (if the file was found in the search path). If this switch
3726 -- is not set, the directory will not be printed.
3728 S_Find_Ignore : aliased constant S := "/IGNORE_LOCALS " &
3730 -- /NOIGNORE_LOCALS (D)
3733 -- If this switch is set, information is output only for library-level
3734 -- entities, ignoring local entities. The use of this switch may
3735 -- accelerate FIND and XREF.
3737 S_Find_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3744 -- /MESSAGES_PROJECT_FILE[=messages-option]
3746 -- Specifies the "verbosity" of the parsing of project files.
3747 -- messages-option may be one of the following:
3749 -- DEFAULT (D) No messages are output if there is no error or warning.
3751 -- MEDIUM A small number of messages are output.
3753 -- HIGH A great number of messages are output, most of them not
3754 -- being useful for the user.
3756 S_Find_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
3760 -- Do not look for sources in the system default directory.
3762 S_Find_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
3766 -- Do not look for library files in the system default directory.
3768 S_Find_Object : aliased constant S := "/OBJECT_SEARCH=*" &
3770 -- /OBJECT_SEARCH=(directory,...)
3772 -- When searching for library and object files, look in the specified
3773 -- directories. The order in which library files are searched is the same
3776 S_Find_Print : aliased constant S := "/PRINT_LINES " &
3778 -- /NOPRINT_LINES (D)
3781 -- Output the content of the Ada source file lines were the entity was
3784 S_Find_Project : aliased constant S := "/PROJECT=@" &
3788 -- Specify a project file to use. By default, FIND and XREF will try to
3789 -- locate a project file in the current directory.
3791 -- If a project file is either specified or found by the tools, then the
3792 -- content of the source directory and object directory lines are added
3793 -- as if they had been specified respectively by /SOURCE_SEARCH and
3796 -- This qualifier is not compatible with /PROJECT_FILE
3798 S_Find_Prj : aliased constant S := "/PROJECT_FILE=<" &
3800 -- /PROJECT_FILE=filename
3802 -- Specifies the main project file to be used. The project files rooted
3803 -- at the main project file will be parsed before looking for sources.
3804 -- The source and object directories to be searched will be communicated
3805 -- to gnatfind through logical names ADA_PRJ_INCLUDE_FILE and
3806 -- ADA_PRJ_OBJECTS_FILE.
3808 S_Find_Ref : aliased constant S := "/REFERENCES " &
3810 -- /NOREFERENCES (D)
3813 -- By default, FIND will output only the information about the
3814 -- declaration, body or type completion of the entities. If this switch
3815 -- is set, the FIND will locate every reference to the entities in the
3816 -- files specified on the command line (or in every file in the search
3817 -- path if no file is given on the command line).
3819 S_Find_Search : aliased constant S := "/SEARCH=*" &
3821 -- /SEARCH=(directory,...)
3824 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
3826 S_Find_Source : aliased constant S := "/SOURCE_SEARCH=*" &
3828 -- /SOURCE_SEARCH=(directory,...)
3830 -- When looking for source files also look in the specified directories.
3831 -- The order in which source file search is undertaken is the same as for
3834 S_Find_Subdirs : aliased constant S := "/SUBDIRS=<" &
3838 -- The actual directories (object, exec, library, ...) are subdirectories
3839 -- of the directory specified in the project file. If the subdirectory
3840 -- does not exist, it is created automatically.
3842 S_Find_Types : aliased constant S := "/TYPE_HIERARCHY " &
3844 -- /NOTYPE_HIERARCHY (D)
3847 -- Output the type hierarchy for the specified type. It acts like the
3848 -- /DERIVED_TYPE_INFORMATION qualifier, but recursively from parent type
3849 -- to parent type. When this qualifier is specified it is not possible to
3850 -- specify more than one file.
3852 Find_Switches : aliased constant Switches :=
3853 (S_Find_Add 'Access,
3855 S_Find_Deriv 'Access,
3856 S_Find_Expr 'Access,
3858 S_Find_Follow 'Access,
3859 S_Find_Full 'Access,
3860 S_Find_Ignore 'Access,
3861 S_Find_Mess 'Access,
3862 S_Find_Nostinc 'Access,
3863 S_Find_Nostlib 'Access,
3864 S_Find_Object 'Access,
3865 S_Find_Print 'Access,
3866 S_Find_Project 'Access,
3869 S_Find_Search 'Access,
3870 S_Find_Source 'Access,
3871 S_Find_Subdirs 'Access,
3872 S_Find_Types 'Access);
3874 ------------------------------
3875 -- Switches for GNAT KRUNCH --
3876 ------------------------------
3878 S_Krunch_Count : aliased constant S := "/COUNT=#" &
3883 -- Limit file names to nnn characters (where nnn is a decimal
3884 -- integer). The maximum file name length is 39, but if you want to
3885 -- generate a set of files that would be usable if ported to a system
3886 -- with some different maximum file length, then a different value can
3889 Krunch_Switches : aliased constant Switches :=
3890 (1 .. 1 => S_Krunch_Count 'Access);
3892 ----------------------------
3893 -- Switches for GNAT LINK --
3894 ----------------------------
3896 S_Link_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3898 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3900 -- Add directories to the project search path.
3902 S_Link_Bind : aliased constant S := "/BIND_FILE=" &
3907 -- /BIND_FILE=[bind-file-option]
3909 -- Specifies the language of the binder generated file.
3911 -- ADA (D) Binder file is Ada.
3913 -- C Binder file is 'C'.
3915 S_Link_Debug : aliased constant S := "/DEBUG=" &
3925 -- /DEBUG[=debug-option]
3927 -- Specifies the amount of debugging information included. 'debug-option'
3928 -- is one of the following:
3930 -- ALL (D) Include full debugging information.
3932 -- NONE Provide no debugging information. Same as /NODEBUG.
3934 -- TRACEBACK Provide sufficient debug information for a traceback.
3936 -- NOTRACEBACK Same as NONE.
3938 S_Link_Nodebug : aliased constant S := "/NODEBUG " &
3940 -- NODOC (see /DEBUG)
3942 S_Link_Execut : aliased constant S := "/EXECUTABLE=@" &
3944 -- /EXECUTABLE=exec-name
3946 -- 'exec-name' specifies an alternative name for the generated executable
3947 -- program. If this qualifier switch is omitted, the executable is called
3948 -- the name of the main unit. So "$ GNAT LINK TRY.ALI" creates an
3949 -- executable called TRY.EXE.
3951 S_Link_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3953 -- /EXTERNAL_REFERENCE="name=val"
3955 -- Specifies an external reference to the project manager. Useful only if
3956 -- /PROJECT_FILE is used.
3959 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3961 S_Link_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3963 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3964 -- /FOLLOW_LINKS_FOR_FILES
3966 -- Follow links when parsing project files
3968 S_Link_Forlink : aliased constant S := "/FOR_LINKER=" & '"' &
3969 "--for-linker=" & '"';
3970 -- /FOR_LINKER=<string>
3972 -- Transmit the option <string> to the underlying linker.
3974 S_Link_Force : aliased constant S := "/FORCE_OBJECT_FILE_LIST " &
3976 -- /NOFORCE_OBJECT_FILE_LIST (D)
3977 -- /FORCE_OBJECT_FILE_LIST
3979 -- Forces the generation of a file that contains commands for the linker.
3980 -- This is useful in some cases to deal with special situations where the
3981 -- command line length is exceeded.
3983 S_Link_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
3984 "--for-linker=IDENT=" &
3986 -- /IDENTIFICATION="<string>"
3988 -- "<string>" specifies the string to be stored in the image file ident-
3989 -- ification field in the image header. It overrides any pragma Ident
3990 -- specified string.
3992 S_Link_Libdir : aliased constant S := "/LIBDIR=*" &
3994 -- /LIBDIR=(directory, ...)
3996 -- Look for libraries in the specified directories.
3998 S_Link_Library : aliased constant S := "/LIBRARY=|" &
4002 -- Link with library named "xyz".
4004 S_Link_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4011 -- /MESSAGES_PROJECT_FILE[=messages-option]
4013 -- Specifies the "verbosity" of the parsing of project files.
4014 -- messages-option may be one of the following:
4016 -- DEFAULT (D) No messages are output if there is no error or warning.
4018 -- MEDIUM A small number of messages are output.
4020 -- HIGH A great number of messages are output, most of them not
4021 -- being useful for the user.
4023 S_Link_Nocomp : aliased constant S := "/NOCOMPILE " &
4027 -- Do not compile the file generated by the binder.
4028 -- This may be used when a link is rerun with different options,
4029 -- but there is no need to recompile the binder generated file.
4031 S_Link_Noinhib : aliased constant S := "/NOINHIBIT-EXEC " &
4032 "--for-linker=--noinhibit-exec";
4035 -- Delete executable if there are errors or warnings.
4037 S_Link_Nofiles : aliased constant S := "/NOSTART_FILES " &
4041 -- Link in default image initialization and startup functions.
4043 S_Link_Project : aliased constant S := "/PROJECT_FILE=<" &
4045 -- /PROJECT_FILE=filename
4047 -- Specifies the main project file to be used. The project files rooted
4048 -- at the main project file will be parsed before the invocation of the
4050 -- The source and object directories to be searched will be communicated
4051 -- to the linker through logical names ADA_PRJ_INCLUDE_FILE and
4052 -- ADA_PRJ_OBJECTS_FILE.
4054 S_Link_Return : aliased constant S := "/RETURN_CODES=" &
4056 "!-mvms-return-codes " &
4058 "-mvms-return-codes";
4059 -- /RETURN_CODES=POSIX (D)
4060 -- /RETURN_CODES=VMS
4062 -- Specifies the style of codes returned by
4063 -- Ada.Command_Line.Set_Exit_Status. Must be used in conjunction with
4064 -- and match the Bind qualifier with the same name.
4066 -- POSIX (D) Return Posix compatible exit codes.
4068 -- VMS Return VMS compatible exit codes. The value returned
4069 -- is identically equal to the Set_Exit_Status parameter.
4071 S_Link_Static : aliased constant S := "/STATIC " &
4072 "--for-linker=-static";
4076 -- Indicate to the linker that the link is static.
4078 S_Link_Subdirs : aliased constant S := "/SUBDIRS=<" &
4082 -- The actual directories (object, exec, library, ...) are subdirectories
4083 -- of the directory specified in the project file. If the subdirectory
4084 -- does not exist, it is created automatically.
4086 S_Link_Verb : aliased constant S := "/VERBOSE " &
4091 -- Causes additional information to be output, including a full list of
4092 -- the included object files. This switch option is most useful when you
4093 -- want to see what set of object files are being used in the link step.
4095 S_Link_ZZZZZ : aliased constant S := "/<other> " &
4099 -- Any other switch that will be transmitted to the underlying linker.
4101 Link_Switches : aliased constant Switches :=
4102 (S_Link_Add 'Access,
4103 S_Link_Bind 'Access,
4104 S_Link_Debug 'Access,
4105 S_Link_Nodebug 'Access,
4106 S_Link_Execut 'Access,
4108 S_Link_Follow 'Access,
4109 S_Link_Forlink 'Access,
4110 S_Link_Force 'Access,
4111 S_Link_Ident 'Access,
4112 S_Link_Libdir 'Access,
4113 S_Link_Library 'Access,
4114 S_Link_Mess 'Access,
4115 S_Link_Nocomp 'Access,
4116 S_Link_Nofiles 'Access,
4117 S_Link_Noinhib 'Access,
4118 S_Link_Project 'Access,
4119 S_Link_Return 'Access,
4120 S_Link_Static 'Access,
4121 S_Link_Subdirs 'Access,
4122 S_Link_Verb 'Access,
4123 S_Link_ZZZZZ 'Access);
4125 ----------------------------
4126 -- Switches for GNAT LIST --
4127 ----------------------------
4129 S_List_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4131 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4133 -- Add directories to the project search path.
4135 S_List_All : aliased constant S := "/ALL_UNITS " &
4140 -- Consider all units, including those of the predefined Ada library.
4141 -- Especially useful with /DEPENDENCIES.
4143 S_List_Allproj : aliased constant S := "/ALL_PROJECTS " &
4145 -- /NOALL_PROJECTS (D)
4148 -- When used with a project file and no file specified, indicate
4149 -- that gnatls should be called for all sources of all projects in
4150 -- the project tree.
4152 S_List_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4154 -- /CURRENT_DIRECTORY (D)
4155 -- /NOCURRENT_DIRECTORY
4157 -- Look for source, library or object files in the default directory.
4159 S_List_Depend : aliased constant S := "/DEPENDENCIES " &
4161 -- /NODEPENDENCIES (D)
4164 S_List_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4166 -- /EXTERNAL_REFERENCE="name=val"
4168 -- Specifies an external reference to the project manager. Useful only if
4169 -- /PROJECT_FILE is used.
4172 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4174 S_List_Files : aliased constant S := "/FILES=@" &
4178 -- Take as arguments the files that are listed in the specified
4181 S_List_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4183 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4184 -- /FOLLOW_LINKS_FOR_FILES
4186 -- Follow links when parsing project files
4188 S_List_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4195 -- /MESSAGES_PROJECT_FILE[=messages-option]
4197 -- Specifies the "verbosity" of the parsing of project files.
4198 -- messages-option may be one of the following:
4200 -- DEFAULT (D) No messages are output if there is no error or warning.
4202 -- MEDIUM A small number of messages are output.
4204 -- HIGH A great number of messages are output, most of them not
4205 -- being useful for the user.
4207 S_List_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4211 -- Do not look for sources of the run time in the standard directory.
4213 S_List_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4215 -- /OBJECT_SEARCH=(directory,...)
4217 -- When looking for library and object files look also in the specified
4220 S_List_Output : aliased constant S := "/OUTPUT=" &
4233 -- /OUTPUT=(option,option,...)
4235 -- SOURCES (D) Only output information about source files.
4237 -- DEPEND List sources from which specified units depend on.
4239 -- OBJECTS Only output information about object files.
4241 -- UNITS Only output information about compilation units.
4243 -- OPTIONS Output the list of options.
4245 -- VERBOSE Output the complete source and object paths.
4246 -- Do not use the default column layout but instead
4247 -- use long format giving as much as information
4248 -- possible on each requested units, including
4249 -- special characteristics.
4251 S_List_Project : aliased constant S := "/PROJECT_FILE=<" &
4253 -- /PROJECT_FILE=filename
4255 -- Specifies the main project file to be used. The project files rooted
4256 -- at the main project file will be parsed before doing any listing.
4257 -- The source and object directories to be searched will be communicated
4258 -- to gnatlist through logical names ADA_PRJ_INCLUDE_FILE and
4259 -- ADA_PRJ_OBJECTS_FILE.
4261 S_List_Search : aliased constant S := "/SEARCH=*" &
4263 -- /SEARCH=(directory,...)
4265 -- Search the specified directories for both source and object files.
4267 S_List_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4269 -- /SOURCE_SEARCH=(directory,...)
4271 -- When looking for source files also look in the specified directories.
4273 S_List_Subdirs : aliased constant S := "/SUBDIRS=<" &
4277 -- The actual directories (object, exec, library, ...) are subdirectories
4278 -- of the directory specified in the project file. If the subdirectory
4279 -- does not exist, it is created automatically.
4281 List_Switches : aliased constant Switches :=
4282 (S_List_Add 'Access,
4284 S_List_Allproj 'Access,
4285 S_List_Current 'Access,
4286 S_List_Depend 'Access,
4288 S_List_Files 'Access,
4289 S_List_Follow 'Access,
4290 S_List_Mess 'Access,
4291 S_List_Nostinc 'Access,
4292 S_List_Object 'Access,
4293 S_List_Output 'Access,
4294 S_List_Project 'Access,
4295 S_List_Search 'Access,
4296 S_List_Source 'Access,
4297 S_List_Subdirs 'Access);
4299 ----------------------------
4300 -- Switches for GNAT MAKE --
4301 ----------------------------
4303 S_Make_Actions : aliased constant S := "/ACTIONS=" &
4310 -- /ACTIONS=(keyword[,...])
4312 -- GNAT MAKE default behavior is to check if the sources are up to date,
4313 -- compile those sources that are not up to date, bind the main source,
4314 -- then link the executable.
4316 -- With the /ACTIONS qualifier, GNAT MAKE may be restricted to one or
4317 -- two of these three steps:
4324 -- You may specify one or more of the following keywords to the /ACTIONS
4327 -- BIND Bind only. Can be combined with /ACTIONS=COMPILE
4328 -- to do compilation and binding, but no linking.
4329 -- Can be combined with /ACTIONS=LINK to do binding and
4330 -- linking. When not combined with /ACTIONS=COMPILE,
4331 -- all the units in the closure of the main program must
4332 -- have been previously compiled and must be up to date.
4334 -- COMPILE Compile only. Do not perform binding, except when
4335 -- /ACTIONS=BIND is also specified. Do not perform
4336 -- linking, except if both /ACTIONS=BIND and /ACTIONS=LINK
4337 -- are also specified.
4339 -- LINK Link only. Can be combined with /ACTIONS=BIND to do
4340 -- binding and linking. Linking will not be performed
4341 -- if combined with /ACTIONS=COMPILE but not with
4342 -- /ACTIONS=BIND\. When not combined with /ACTIONS=BIND
4343 -- all the units in the closure of the main program must
4344 -- have been previously compiled and must be up to date,
4345 -- and the main program need to have been bound.
4347 S_Make_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4349 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4351 -- Add directories to the project search path.
4353 S_Make_All : aliased constant S := "/ALL_FILES " &
4358 -- Consider all files in the make process, even the GNAT internal system
4359 -- files (for example, the predefined Ada library files). By default,
4360 -- GNAT MAKE does not check these files (however, if there is an
4361 -- installation problem, it will be caught when GNAT MAKE binds your
4362 -- program). You may have to specify this qualifier if you are working on
4363 -- GNAT itself. The vast majority of GNAT MAKE users never need to
4364 -- specify this switch. All GNAT internal files with will be compiled
4365 -- with /STYLE_CHECK=GNAT.
4367 S_Make_Allproj : aliased constant S := "/ALL_PROJECTS " &
4369 -- /NOALL_PROJECTS (D)
4373 -- When used without project files, it is equivalent to /UNIQUE.
4374 -- When used with a project file with no main (neither on the command
4375 -- line nor in the attribute Main) check every source of every project,
4376 -- recompile all sources that are not up to date and rebuild libraries
4379 S_Make_Bind : aliased constant S := "/BINDER_QUALIFIERS=?" &
4381 -- /BINDER_QUALIFIERS
4383 -- Any qualifiers specified after this qualifier other than
4384 -- /COMPILER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4385 -- passed to any GNAT BIND commands generated by GNAT MAKE.
4387 S_Make_Bindprj : aliased constant S := "/BND_LNK_FULL_PROJECT " &
4389 -- /BND_LNK_FULL_PROJECT
4391 -- Bind and link all sources of a project, without any consideration
4392 -- to attribute Main, if there is one. This qualifier need to be
4393 -- used in conjunction with the /PROJECT_FILE= qualifier and cannot
4394 -- be used with a main subprogram on the command line or for
4395 -- a library project file. As the binder is invoked with the option
4396 -- meaning "No Ada main subprogram", the user must ensure that the
4397 -- proper options are specified to the linker. This qualifier is
4398 -- normally used when the main subprogram is in a foreign language
4401 S_Make_Comp : aliased constant S := "/COMPILER_QUALIFIERS=?" &
4403 -- /COMPILER_QUALIFIERS
4405 -- Any qualifiers specified after this qualifier other than
4406 -- /BINDER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4407 -- passed to any GNAT COMPILE commands generated by GNAT MAKE.
4409 S_Make_Cond : aliased constant S := "/CONDITIONAL_SOURCE_SEARCH=*" &
4411 -- /CONDITIONAL_SOURCE_SEARCH=dir
4413 -- Equivalent to "/SOURCE_SEARCH=dir /SKIP_MISSING=dir".
4415 S_Make_Cont : aliased constant S := "/CONTINUE_ON_ERROR " &
4417 -- /NOCONTINUE_ON_ERROR (D)
4418 -- /CONTINUE_ON_ERROR
4420 -- Keep going. Continue as much as possible after a compilation error.
4421 -- To ease the programmer's task in case of compilation errors, the list
4422 -- of sources for which the compile fails is given when GNAT MAKE
4425 S_Make_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4427 -- /CURRENT_DIRECTORY (D)
4428 -- /NOCURRENT_DIRECTORY
4430 -- Look for source, library or object files in the default directory.
4432 S_Make_Dep : aliased constant S := "/DEPENDENCIES_LIST " &
4434 -- /NODEPENDENCIES_LIST (D)
4435 -- /DEPENDENCIES_LIST
4437 -- Check if all objects are up to date. If they are, output the object
4438 -- dependences to SYS$OUTPUT in a form that can be directly exploited in
4439 -- a Unix-style Makefile. By default, each source file is prefixed with
4440 -- its (relative or absolute) directory name. This name is whatever you
4441 -- specified in the various /SOURCE_SEARCH and /SEARCH qualifiers. If
4442 -- you also specify the /QUIET qualifier, only the source file names,
4443 -- without relative paths, are output. If you just specify the
4444 -- /DEPENDENCY_LIST qualifier, dependencies of the GNAT internal system
4445 -- files are omitted. This is typically what you want. If you also
4446 -- specify the /ALL_FILES qualifier, dependencies of the GNAT internal
4447 -- files are also listed. Note that dependencies of the objects in
4448 -- external Ada libraries (see the /SKIP_MISSING qualifier) are never
4451 S_Make_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
4453 -- /DIRECTORY_OBJECTS=<file>
4455 -- Put all object files and .ALI files in <file>.
4456 -- This qualifier is not compatible with /PROJECT_FILE.
4458 S_Make_Disprog : aliased constant S := "/DISPLAY_PROGRESS " &
4460 -- /NOPLAY_PROGRESS (D)
4461 -- /DISPLAY_PROGRESS
4463 -- Display progress for each source, up to date or not, as a single line
4464 -- completed x out of y (zz%)
4465 -- If the file needs to be compiled this is displayed after the
4466 -- invocation of the compiler. These lines are displayed even in quiet
4467 -- output mode (/QUIET).
4469 S_Make_Doobj : aliased constant S := "/DO_OBJECT_CHECK " &
4471 -- /NODO_OBJECT_CHECK (D)
4474 -- Don't compile, bind, or link. Output a single command that will
4475 -- recompile an out of date unit, if any. Repeated use of this option,
4476 -- followed by carrying out the indicated compilation, will eventually
4477 -- result in recompiling all required units.
4479 -- If any ALI is missing during the process, GNAT MAKE halts and
4480 -- displays an error message.
4482 S_Make_Execut : aliased constant S := "/EXECUTABLE=@" &
4484 -- /EXECUTABLE=exec-name
4486 -- The name of the final executable program will be 'exec_name'. If this
4487 -- qualifier is omitted the default name for the executable will be the
4488 -- name of the input file with an EXE filetype. You may prefix
4489 -- 'exec_name' with a relative or absolute directory path.
4491 S_Make_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4493 -- /EXTERNAL_REFERENCE="name=val"
4495 -- Specifies an external reference to the project manager. Useful only if
4496 -- /PROJECT_FILE is used.
4499 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4501 S_Make_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4503 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4504 -- /FOLLOW_LINKS_FOR_FILES
4506 -- Follow links when parsing project files
4508 S_Make_Force : aliased constant S := "/FORCE_COMPILE " &
4510 -- /NOFORCE_COMPILE (D)
4513 -- Force recompilations. Recompile all sources, even though some object
4514 -- files may be up to date, but don't recompile predefined or GNAT
4515 -- internal files unless the /ALL_FILES qualifier is also specified.
4517 S_Make_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
4519 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
4520 -- /FULL_PATH_IN_BRIEF_MESSAGES
4522 -- When using project files, if some errors or warnings are detected
4523 -- during parsing and verbose mode is not in effect (no use of qualifier
4524 -- /VERBOSE), then error lines start with the full path name of the
4525 -- project file, rather than its simple file name.
4527 S_Make_Hi_Verb : aliased constant S := "/HIGH_VERBOSITY " &
4529 -- /NOHIGH_VERBOSITY (D)
4532 -- Displays the reason for all recompilations GNAT MAKE decides are
4533 -- necessary, in high verbosity. Equivalent to /VERBOSE.
4535 S_Make_Inplace : aliased constant S := "/IN_PLACE " &
4540 -- In normal mode, GNAT MAKE compiles all object files and ALI files
4541 -- into the current directory. If the /IN_PLACE switch is used,
4542 -- then instead object files and ALI files that already exist are over-
4543 -- written in place. This means that once a large project is organized
4544 -- into separate directories in the desired manner, then GNAT MAKE will
4545 -- automatically maintain and update this organization. If no ALI files
4546 -- are found on the Ada object path, the new object and ALI files are
4547 -- created in the directory containing the source being compiled.
4549 S_Make_Index : aliased constant S := "/SOURCE_INDEX=#" &
4551 -- /SOURCE_INDEX=nnn
4553 -- Specifies the index of the units in the source file
4554 -- By default, source files are mono-unit and there is no index
4555 -- When /SOURCE_INDEX=nnn is specified, only one main may be specified
4556 -- on the command line.
4558 S_Make_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
4560 -- /LIBRARY_SEARCH=(directory[,...])
4562 -- Add the specified directories to the list of directories in which the
4563 -- linker will search for libraries.
4565 S_Make_Link : aliased constant S := "/LINKER_QUALIFIERS=?" &
4567 -- /LINKER_QUALIFIERS
4569 -- Any qualifiers specified after this qualifier other than
4570 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /MAKE_QUALIFIERS will be
4571 -- passed to any GNAT LINK commands generated by GNAT LINK.
4573 S_Make_Low_Verb : aliased constant S := "/LOW_VERBOSITY " &
4575 -- /NOLOW_VERBOSITY (D)
4578 -- Displays the reason for all recompilations GNAT MAKE decides are
4579 -- necessary, in low verbosity, that is with less output than
4580 -- /MEDIUM_VERBOSITY, /HIGH_VERBOSITY or /VERBOSE.
4582 S_Make_Make : aliased constant S := "/MAKE_QUALIFIERS=?" &
4586 -- Any qualifiers specified after this qualifier other than
4587 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /LINKER_QUALIFIERS
4588 -- are for the benefit of GNAT MAKE itself.
4590 S_Make_Mapping : aliased constant S := "/MAPPING " &
4595 -- Use a mapping file. A mapping file is a way to communicate to the
4596 -- compiler two mappings: from unit names to file names (without any
4597 -- directory information) and from file names to path names (with full
4598 -- directory information). These mappings are used by the compiler to
4599 -- short-circuit the path search. When GNAT MAKE is invoked with this
4600 -- qualifier, it will create a mapping file, initially populated by the
4601 -- project manager, if /PROJECT_File= is used, otherwise initially empty.
4602 -- Each invocation of the compiler will add the newly accessed sources to
4603 -- the mapping file. This will improve the source search during the next
4604 -- invocations of the compiler
4606 S_Make_Med_Verb : aliased constant S := "/MEDIUM_VERBOSITY " &
4608 -- /NOMEDIUM_VERBOSITY (D)
4609 -- /MEDIUM_VERBOSITY
4611 -- Displays the reason for all recompilations GNAT MAKE decides are
4612 -- necessary, in medium verbosity, that is with potentially less output
4613 -- than /HIGH_VERBOSITY or /VERBOSE.
4615 S_Make_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4622 -- /MESSAGES_PROJECT_FILE[=messages-option]
4624 -- Specifies the "verbosity" of the parsing of project files.
4625 -- messages-option may be one of the following:
4627 -- DEFAULT (D) No messages are output if there is no error or warning.
4629 -- MEDIUM A small number of messages are output.
4631 -- HIGH A great number of messages are output, most of them not
4632 -- being useful for the user.
4634 S_Make_Minimal : aliased constant S := "/MINIMAL_RECOMPILATION " &
4636 -- /NOMINIMAL_RECOMPILATION (D)
4637 -- /MINIMAL_RECOMPILATION
4639 -- Specifies that the minimum necessary amount of recompilation
4640 -- be performed. In this mode GNAT MAKE ignores time stamp differences
4641 -- when the only modifications to a source file consist in
4642 -- adding/removing comments, empty lines, spaces or tabs.
4644 S_Make_Missing : aliased constant S := "/CREATE_MISSING_DIRS " &
4646 -- /NOCREATE_MISSING_DIRS (D)
4647 -- /CREATE_MISSING_DIRS
4649 -- When an object directory, a library directory or an exec directory
4650 -- in missing, attempt to create the directory.
4652 S_Make_Nolink : aliased constant S := "/NOLINK " &
4656 -- Compile only. Do not perform binding and linking. If the root unit is
4657 -- not a main unit, this is the default. Otherwise GNAT MAKE will
4658 -- attempt binding and linking unless all objects are up to date and the
4659 -- executable is more recent than the objects.
4660 -- This is equivalent to /ACTIONS=COMPILE
4662 S_Make_Nomain : aliased constant S := "/NOMAIN " &
4666 -- No main subprogram. Bind and link the program even if the unit name
4667 -- given on the command line is a package name. The resulting executable
4668 -- will execute the elaboration routines of the package and its closure,
4669 -- then the finalization routines.
4671 S_Make_Nonpro : aliased constant S := "/NON_PROJECT_UNIT_COMPILATION " &
4673 -- /NON_PROJECT_UNIT_COMPILATION
4675 -- Normally, when using project files, a unit that is not part of any
4676 -- project file, cannot be compile. These units may be compile, when
4677 -- needed, if this qualifier is specified.
4679 S_Make_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4683 -- Do not look for sources the in the system default directory.
4685 S_Make_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
4689 -- Do not look for library files in the system default directory.
4691 S_Make_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4693 -- /OBJECT_SEARCH=(directory[,...])
4695 -- When looking for library and object files look also in the specified
4698 S_Make_Proc : aliased constant S := "/PROCESSES=#" &
4703 -- Use NNN processes to carry out the (re)compilations. If you have a
4704 -- multiprocessor machine, compilations will occur in parallel. In the
4705 -- event of compilation errors, messages from various compilations might
4706 -- get interspersed (but GNAT MAKE will give you the full ordered list of
4707 -- failing compiles at the end). This can at times be annoying. To get a
4708 -- clean list of error messages don't use this qualifier.
4710 S_Make_Nojobs : aliased constant S := "/NOPROCESSES " &
4712 -- NODOC (see /PROCESS)
4714 S_Make_Project : aliased constant S := "/PROJECT_FILE=<" &
4716 -- /PROJECT_FILE=filename
4718 -- Specifies the main project file to be used. The project files rooted
4719 -- at the main project file will be parsed before any other processing to
4720 -- set the building environment.
4722 S_Make_Quiet : aliased constant S := "/QUIET " &
4727 -- When this qualifiers is specified, the commands carried out by GNAT
4728 -- MAKE are not displayed.
4730 S_Make_Reason : aliased constant S := "/REASONS " &
4735 -- Displays the reason for all recompilations GNAT MAKE decides are
4738 S_Make_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
4740 -- /RUNTIME_SYSTEM=xxx
4742 -- Build against an alternate runtime system named xxx or RTS-xxx.
4744 S_Make_Search : aliased constant S := "/SEARCH=*" &
4746 -- /SEARCH=(directory[,...])
4748 -- Search the specified directories for both source and object files.
4750 S_Make_Skip : aliased constant S := "/SKIP_MISSING=*" &
4752 -- /SKIP_MISSING=(directory[,...])
4754 -- Skip missing library sources if ALI in 'directory'.
4756 S_Make_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4758 -- /SOURCE_SEARCH=(directory[,...])
4760 -- When looking for source files also look in the specified directories.
4762 S_Make_Stand : aliased constant S := "/STANDARD_OUTPUT_FOR_COMMANDS " &
4764 -- /NOSTANDARD_OUTPUT_FOR_COMMANDS (D)
4765 -- /STANDARD_OUTPUT_FOR_COMMANDS
4767 -- Output the commands for the compiler, the binder and the linker
4768 -- on SYS$OUTPUT, instead of SYS$ERROR.
4770 S_Make_Subdirs : aliased constant S := "/SUBDIRS=<" &
4774 -- The actual directories (object, exec, library, ...) are subdirectories
4775 -- of the directory specified in the project file. If the subdirectory
4776 -- does not exist, it is created automatically.
4778 S_Make_Switch : aliased constant S := "/SWITCH_CHECK " &
4780 -- /NOSWITCH_CHECK (D)
4783 -- Recompile if compiler switches have changed since last compilation.
4784 -- All compiler switches but -I and -o are taken into account in the
4785 -- following way: orders between different "first letter" switches are
4786 -- ignored, but orders between same switches are taken into account.
4787 -- For example, -O -O2 is different than -O2 -O, but -g -O is equivalent
4790 S_Make_Unique : aliased constant S := "/UNIQUE " &
4795 -- Recompile at most the main file. It implies /ACTIONS=COMPILE.
4796 -- Combined with /FORCE_COMPILE, it is equivalent to calling the compiler
4799 S_Make_Use_Map : aliased constant S := "/USE_MAPPING_File=@" &
4801 -- /USE_MAPPING_FILE=file_name
4803 -- Use a specific mapping file. The file 'file_name', specified as a path
4804 -- name (absolute or relative) by this qualifier, should already exist,
4805 -- otherwise the qualifier is ineffective. The specified mapping file
4806 -- will be communicated to the compiler. This switch is not compatible
4807 -- with a project file (/PROJECT_FILE=) or with multiple compiling
4808 -- processes (/PROCESSES=nnn, when nnn is greater than 1).
4810 S_Make_Verbose : aliased constant S := "/VERBOSE " &
4815 -- Displays the reason for all recompilations GNAT MAKE decides are
4818 Make_Switches : aliased constant Switches :=
4819 (S_Make_Add 'Access,
4820 S_Make_Actions 'Access,
4822 S_Make_Allproj 'Access,
4823 S_Make_Bind 'Access,
4824 S_Make_Comp 'Access,
4825 S_Make_Cond 'Access,
4826 S_Make_Cont 'Access,
4827 S_Make_Current 'Access,
4829 S_Make_Dirobj 'Access,
4830 S_Make_Disprog 'Access,
4831 S_Make_Doobj 'Access,
4832 S_Make_Execut 'Access,
4834 S_Make_Follow 'Access,
4835 S_Make_Force 'Access,
4836 S_Make_Full 'Access,
4837 S_Make_Hi_Verb 'Access,
4838 S_Make_Inplace 'Access,
4839 S_Make_Index 'Access,
4840 S_Make_Library 'Access,
4841 S_Make_Link 'Access,
4842 S_Make_Low_Verb'Access,
4843 S_Make_Make 'Access,
4844 S_Make_Mapping 'Access,
4845 S_Make_Med_Verb'Access,
4846 S_Make_Mess 'Access,
4847 S_Make_Minimal 'Access,
4848 S_Make_Missing 'Access,
4849 S_Make_Nolink 'Access,
4850 S_Make_Nomain 'Access,
4851 S_Make_Nonpro 'Access,
4852 S_Make_Nostinc 'Access,
4853 S_Make_Nostlib 'Access,
4854 S_Make_Object 'Access,
4855 S_Make_Proc 'Access,
4856 S_Make_Nojobs 'Access,
4857 S_Make_Project 'Access,
4858 S_Make_Quiet 'Access,
4859 S_Make_Reason 'Access,
4861 S_Make_Search 'Access,
4862 S_Make_Skip 'Access,
4863 S_Make_Source 'Access,
4864 S_Make_Stand 'Access,
4865 S_Make_Subdirs 'Access,
4866 S_Make_Switch 'Access,
4867 S_Make_Unique 'Access,
4868 S_Make_Use_Map 'Access,
4869 S_Make_Verbose 'Access);
4871 ------------------------------
4872 -- Switches for GNAT METRIC --
4873 ------------------------------
4875 S_Metric_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4877 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4879 -- Add directories to the project search path.
4881 S_Metric_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
4883 -- /NOALL_PROJECTS (D)
4885 -- When GNAT METRIC is used with a Project File and no source is
4886 -- specified, the underlying tool gnatmetric is called for all the
4887 -- sources of all the Project Files in the project tree.
4889 S_Metric_Debug : aliased constant S := "/DEBUG_OUTPUT " &
4893 -- Generate the debug information
4895 S_Metric_Direct : aliased constant S := "/DIRECTORY=@" &
4897 -- /DIRECTORY=pathname
4899 -- Put the files with detailed metric information into the specified
4902 S_Metric_Element : aliased constant S := "/ELEMENT_METRICS=" &
4904 "!-ed,!-es,!-enl,!-eps," &
4905 "!-eas,!-ept,!-eat,!-enu," &
4907 "DECLARATION_TOTAL " &
4909 "STATEMENT_TOTAL " &
4911 "LOOP_NESTING_MAX " &
4913 "INT_SUBPROGRAMS " &
4915 "SUBPROGRAMS_ALL " &
4921 "PROGRAM_NESTING_MAX " &
4923 "CONSTRUCT_NESTING_MAX " &
4925 -- NODOC (see /SYNTAX_METRICS)
4927 S_Metric_Syntax : aliased constant S := "/SYNTAX_METRICS=" &
4931 "--no-syntax-all " &
4935 "--no-declarations " &
4939 "--no-statements " &
4940 "PUBLIC_SUBPROGRAMS " &
4941 "--public-subprograms " &
4942 "NOPUBLIC_SUBPROGRAMS " &
4943 "--no-public-subprograms " &
4944 "ALL_SUBPROGRAMS " &
4945 "--all-subprograms " &
4946 "NOALL_SUBPROGRAMS " &
4947 "--no-all-subprograms " &
4951 "--no-public-types " &
4959 "--no-unit-nesting " &
4960 "CONSTRUCT_NESTING " &
4961 "--construct-nesting " &
4962 "NOCONSTRUCT_NESTING " &
4963 "--no-construct-nesting";
4964 -- /SYNTAX_METRICS(option, option ...)
4966 -- Specifies the syntax element metrics to be computed (if at least one
4967 -- positive syntax element metric, line metric, complexity or coupling
4968 -- metric is specified then only explicitly specified syntax element
4969 -- metrics are computed and reported)
4971 -- option may be one of the following:
4973 -- ALL (D) All the syntax element metrics are computed
4974 -- NONE None of syntax element metrics is computed
4975 -- DECLARATIONS Compute the total number of declarations
4976 -- NODECLARATIONS Do not compute the total number of declarations
4977 -- STATEMENTS Compute the total number of statements
4978 -- NOSTATEMENTS Do not compute the total number of statements
4979 -- PUBLIC_SUBPROGRAMS Compute the number of public subprograms
4980 -- NOPUBLIC_SUBPROGRAMS Do not compute the number of public subprograms
4981 -- ALL_SUBPROGRAMS Compute the number of all the subprograms
4982 -- NOALL_SUBPROGRAMS Do not compute the number of all the
4984 -- PUBLIC_TYPES Compute the number of public types
4985 -- NOPUBLIC_TYPES Do not compute the number of public types
4986 -- ALL_TYPES Compute the number of all the types
4987 -- NOALL_TYPES Do not compute the number of all the types
4988 -- UNIT_NESTING Compute the maximal program unit nesting
4990 -- NOUNIT_NESTING Do not compute the maximal program unit
4992 -- CONSTRUCT_NESTING Compute the maximal construct nesting level
4993 -- NOCONSTRUCT_NESTING Do not compute the maximal construct nesting
4996 -- All combinations of syntax element metrics options are allowed.
4998 S_Metric_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5000 -- /EXTERNAL_REFERENCE="name=val"
5002 -- Specifies an external reference to the project manager. Useful only if
5003 -- /PROJECT_FILE is used.
5006 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5008 S_Metric_Files : aliased constant S := "/FILES=@" &
5012 -- Take as arguments the files that are listed in the specified
5015 S_Metric_Format : aliased constant S := "/FORMAT_OUTPUT=" &
5024 "SHORT_SOURCE_FILE_NAME " &
5026 -- /FORMAT_OUTPUT=(option, option ...)
5028 -- Specifies the details of the tool output
5030 -- option may be one of the following:
5032 -- DEFAULT (D) Generate the text output only, use full
5033 -- argument source names in global information
5034 -- XML Generate the output in XML format
5035 -- XSD Generate the output in XML format, and
5036 -- generate an XML schema file that describes
5037 -- the structure of XML metrics report
5038 -- NO_TEXT Do not generate the text output (implies XML)
5039 -- SHORT_SOURCE_FILE_NAME Use short argument source names in output
5041 S_Metric_Globout : aliased constant S := "/GLOBAL_OUTPUT=@" &
5043 -- /GLOBAL_OUTPUT=filename
5045 -- Put the textual global metric information into the specified file
5047 S_Metric_Line : aliased constant S := "/LINE_METRICS=" &
5049 "!-la,!-lcode,!-lcomm," &
5057 "MIXED_CODE_COMMENTS " &
5059 "COMMENT_PERCENTAGE " &
5063 "AVERAGE_LINES_IN_BODIES " &
5065 -- NODOC (see /LINE_COUNT_METRICS)
5067 S_Metric_Lines : aliased constant S := "/LINE_COUNT_METRICS=" &
5079 "--no-lines-code " &
5081 "--lines-comment " &
5082 "NOCOMMENT_LINES " &
5083 "--no-lines-comment " &
5084 "CODE_COMMENT_LINES " &
5085 "--lines-eol-comment " &
5086 "NOCODE_COMMENT_LINES " &
5087 "--no-lines-eol-comment " &
5088 "COMMENT_PERCENTAGE " &
5090 "NOCOMMENT_PERCENTAGE " &
5091 "--no-lines-ratio " &
5095 "--no-lines-blank " &
5096 "AVERAGE_BODY_LINES " &
5097 "--lines-average " &
5098 "NOAVERAGE_BODY_LINES " &
5099 "--no-lines-average";
5100 -- /LINE_COUNT_METRICS=(option, option ...)
5102 -- Specifies the line metrics to be computed (if at least one positive
5103 -- syntax element metric, line metric, complexity or coupling metric is
5104 -- specified then only explicitly specified line metrics are computed
5107 -- option may be one of the following:
5109 -- ALL (D) All the line metrics are computed
5110 -- NONE None of line metrics is computed
5111 -- ALL_LINES All lines are computed
5112 -- NOALL_LINES All lines are not computed
5113 -- CODE_LINES Lines with Ada code are computed
5114 -- NOCODE_LINES Lines with Ada code are not computed
5115 -- COMMENT_LINES Comment lines are computed
5116 -- NOCOMMENT_LINES Comment lines are not computed
5117 -- CODE_COMMENT_LINES Lines containing both code and comment parts
5119 -- NOCODE_COMMENT_LINES Lines containing both code and comment parts
5121 -- COMMENT_PERCENTAGE Ratio between comment lines and all the lines
5122 -- containing comments and program code is
5124 -- NOCOMMENT_PERCENTAGE Ratio between comment lines and all the lines
5125 -- containing comments and program code is not
5127 -- BLANK_LINES Blank lines are computed
5128 -- NOBLANK_LINES Blank lines are not computed
5129 -- AVERAGE_BODY_LINES Average number of code lines in subprogram,
5130 -- task and entry bodies and statement sequences
5131 -- of package bodies is computed
5132 -- NOAVERAGE_BODY_LINES Average number of code lines in subprogram,
5133 -- task and entry bodies and statement sequences
5134 -- of package bodies is not computed
5136 -- All combinations of line metrics options are allowed.
5138 S_Metric_Complexity : aliased constant S := "/COMPLEXITY_METRICS=" &
5140 "--complexity-all " &
5142 "--no-complexity-all " &
5144 "--complexity-cyclomatic " &
5146 "--no-complexity-cyclomatic "&
5148 "--complexity-essential " &
5150 "--no-complexity-essential " &
5154 "--no-loop-nesting " &
5155 "AVERAGE_COMPLEXITY " &
5156 "--complexity-average " &
5157 "NOAVERAGE_COMPLEXITY " &
5158 "--no-complexity-average " &
5159 "EXTRA_EXIT_POINTS " &
5160 "--extra-exit-points " &
5161 "NOEXTRA_EXIT_POINTS " &
5162 "--no-extra-exit-points";
5163 -- /COMPLEXITY_METRICS=(option, option ...)
5165 -- Specifies the complexity metrics to be computed (if at least one
5166 -- positive syntax element metric, line metric, complexity or coupling
5167 -- metric is specified then only explicitly specified complexity metrics
5168 -- are computed and reported)
5170 -- option may be one of the following:
5172 -- ALL (D) All the complexity metrics are computed
5173 -- NONE None of complexity metrics is computed
5174 -- CYCLOMATIC Compute the McCabe Cyclomatic Complexity
5175 -- NOCYCLOMATIC Do not compute the McCabe Cyclomatic Complexity
5176 -- ESSENTIAL Compute the Essential Complexity
5177 -- NOESSENTIAL Do not compute the Essential Complexity
5178 -- LOOP_NESTING Compute the maximal loop nesting
5179 -- NOLOOP_NESTING Do not compute the maximal loop nesting
5180 -- AVERAGE_COMPLEXITY Compute the average complexity for executable
5182 -- NOAVERAGE_COMPLEXITY Do not compute the average complexity for
5183 -- executable bodies
5184 -- EXTRA_EXIT_POINTS Compute extra exit points metric
5185 -- NOEXTRA_EXIT_POINTS Do not compute extra exit points metric
5187 -- All combinations of line metrics options are allowed.
5189 S_Metric_Coupling : aliased constant S := "/COUPLING_METRICS=" &
5193 "--no-coupling-all " &
5194 "PACKAGE_EFFERENT " &
5195 "--package-efferent-coupling " &
5196 "NOPACKAGE_EFFERENT " &
5197 "--no-package-efferent-coupling " &
5198 "PACKAGE_AFFERENT " &
5199 "--package-afferent-coupling " &
5200 "NOPACKAGE_AFFERENT " &
5201 "--no-package-afferent-coupling " &
5202 "CATEGORY_EFFERENT " &
5203 "--category-efferent-coupling " &
5204 "NOCATEGORY_EFFERENT " &
5205 "--no-category-efferent-coupling " &
5206 "CATEGORY_AFFERENT " &
5207 "--category-afferent-coupling " &
5208 "NOCATEGORY_AFFERENT " &
5209 "--no-category-afferent-coupling";
5211 -- /COUPLING_METRICS=(option, option ...)
5213 -- Specifies the coupling metrics to be computed.
5215 -- option may be one of the following:
5217 -- ALL All the coupling metrics are computed
5218 -- NONE (D) None of coupling metrics is computed
5219 -- PACKAGE_EFFERENT Compute package efferent coupling
5220 -- NOPACKAGE_EFFERENT Do not compute package efferent coupling
5221 -- PACKAGE_AFFERENT Compute package afferent coupling
5222 -- NOPACKAGE_AFFERENT Do not compute package afferent coupling
5223 -- CATEGORY_EFFERENT Compute category efferent coupling
5224 -- NOCATEGORY_EFFERENT Do not compute category efferent coupling
5225 -- CATEGORY_AFFERENT Compute category afferent coupling
5226 -- NOCATEGORY_AFFERENT Do not compute category afferent coupling
5228 -- All combinations of coupling metrics options are allowed.
5230 S_Metric_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5232 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5233 -- /FOLLOW_LINKS_FOR_FILES
5235 -- Follow links when parsing project files
5237 S_Metric_No_Local : aliased constant S := "/NO_LOCAL_DETAILS " &
5239 -- /LOCAL_DETAILS (D)
5240 -- /NO_LOCAL_DETAILS
5242 -- Do not compute the detailed metrics for local program units.
5244 S_Metric_No_Exits_As_Gotos : aliased constant S := "/NO_EXITS_AS_GOTOS " &
5246 -- /EXITS_AS_GOTOS (D)
5247 -- /NO_EXITS_AS_GOTOS
5249 -- Do not count EXIT statements as GOTOs when computing the Essential
5252 S_Metric_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5259 -- /MESSAGES_PROJECT_FILE[=messages-option]
5261 -- Specifies the "verbosity" of the parsing of project files.
5262 -- messages-option may be one of the following:
5264 -- DEFAULT (D) No messages are output if there is no error or warning.
5266 -- MEDIUM A small number of messages are output.
5268 -- HIGH A great number of messages are output, most of them not
5269 -- being useful for the user.
5271 S_Metric_Project : aliased constant S := "/PROJECT_FILE=<" &
5273 -- /PROJECT_FILE=filename
5275 -- Specifies the main project file to be used. The project files rooted
5276 -- at the main project file will be parsed before the invocation of the
5279 S_Metric_Quiet : aliased constant S := "/QUIET " &
5284 -- Quiet mode: by default GNAT METRIC outputs to the standard error stream
5285 -- the number of program units left to be processed. This option turns
5288 S_Metric_Subdirs : aliased constant S := "/SUBDIRS=<" &
5292 -- The actual directories (object, exec, library, ...) are subdirectories
5293 -- of the directory specified in the project file. If the subdirectory
5294 -- does not exist, it is created automatically.
5296 S_Metric_Suffix : aliased constant S := "/SUFFIX_DETAILS=" & '"' &
5298 -- /SUFFIX_DETAILS=suffix
5300 -- Use the given suffix as the suffix for the name of the file to place
5301 -- the detailed metrics into.
5303 S_Metric_Suppress : aliased constant S := "/SUPPRESS=" &
5305 "!-nocc,!-noec,!-nonl," &
5307 "CYCLOMATIC_COMPLEXITY " &
5309 "ESSENTIAL_COMPLEXITY " &
5311 "MAXIMAL_LOOP_NESTING " &
5317 -- NODOC (see /COMPLEXITY_METRICS /NO_LOCAL_DETAILS /NO_EXITS_AS_GOTOS)
5319 S_Metric_Verbose : aliased constant S := "/VERBOSE " &
5326 S_Metric_XMLout : aliased constant S := "/XML_OUTPUT=@" &
5328 -- /XML_OUTPUT=filename
5330 -- Place the XML output into the specified file
5332 Metric_Switches : aliased constant Switches :=
5333 (S_Metric_Add 'Access,
5334 S_Metric_All_Prjs 'Access,
5335 S_Metric_Complexity 'Access,
5336 S_Metric_Coupling 'Access,
5337 S_Metric_Debug 'Access,
5338 S_Metric_Direct 'Access,
5339 S_Metric_Element 'Access,
5340 S_Metric_Ext 'Access,
5341 S_Metric_Files 'Access,
5342 S_Metric_Follow 'Access,
5343 S_Metric_Format 'Access,
5344 S_Metric_Globout 'Access,
5345 S_Metric_Line 'Access,
5346 S_Metric_Lines 'Access,
5347 S_Metric_Mess 'Access,
5348 S_Metric_No_Exits_As_Gotos'Access,
5349 S_Metric_No_Local 'Access,
5350 S_Metric_Project 'Access,
5351 S_Metric_Quiet 'Access,
5352 S_Metric_Suffix 'Access,
5353 S_Metric_Subdirs 'Access,
5354 S_Metric_Syntax 'Access,
5355 S_Metric_Suppress 'Access,
5356 S_Metric_Verbose 'Access,
5357 S_Metric_XMLout 'Access);
5359 ----------------------------
5360 -- Switches for GNAT NAME --
5361 ----------------------------
5363 S_Name_Conf : aliased constant S := "/CONFIG_FILE=<" &
5365 -- /CONFIG_FILE=path_name
5367 -- Create a configuration pragmas file 'path_name' (instead of the default
5368 -- 'gnat.adc'). 'path_name' may include directory information. 'path_name'
5369 -- must be writable. There may be only one qualifier /CONFIG_FILE.
5370 -- This qualifier is not compatible with qualifier /PROJECT_FILE.
5372 S_Name_Dirs : aliased constant S := "/SOURCE_DIRS=*" &
5374 -- /SOURCE_DIRS=(directory, ...)
5376 -- Look for source files in the specified directories. When this qualifier
5377 -- is specified, the current working directory will not be searched for
5378 -- source files, unless it is explicitly specified with a qualifier
5379 -- /SOURCE_DIRS or /DIRS_FILE. Several qualifiers /SOURCE_DIRS may be
5380 -- specified. If a directory is specified as a relative path, it is
5381 -- relative to the directory of the configuration pragmas file specified
5382 -- with qualifier /CONFIG_FILE, or to the directory of the project file
5383 -- specified with qualifier /PROJECT_FILE or, if neither qualifier
5384 -- /CONFIG_FILE nor qualifier /PROJECT_FILE are specified, it is relative
5385 -- to the current working directory. The directories specified with
5386 -- qualifiers /SOURCE_DIRS must exist and be readable.
5388 S_Name_Dfile : aliased constant S := "/DIRS_FILE=<" &
5390 -- /DIRS_FILE=file_name
5392 -- Look for source files in all directories listed in text file
5393 -- 'file_name'. 'file_name' must be an existing, readable text file.
5394 -- Each non empty line in the specified file must be a directory.
5395 -- Specifying qualifier /DIRS_FILE is equivalent to specifying as many
5396 -- qualifiers /SOURCE_DIRS as there are non empty lines in the specified
5399 S_Name_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5401 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5402 -- /FOLLOW_LINKS_FOR_FILES
5404 -- Follow links when parsing project files
5406 S_Name_Frng : aliased constant S := "/FOREIGN_PATTERN=" & '"' &
5408 -- /FOREIGN_PATTERN=<string>
5410 -- Specify a foreign pattern.
5411 -- Using this qualifier, it is possible to add sources of languages other
5412 -- than Ada to the list of sources of a project file. It is only useful
5413 -- if a qualifier /PROJECT_FILE is used. For example,
5415 -- GNAT NAME /PROJECT_FILE=PRJ /FOREIGN_PATTERN="*.C" "*.ADA"
5417 -- will look for Ada units in all files with the '.ADA' extension, and
5418 -- will add to the list of file for project PRJ.GPR the C files with
5421 S_Name_Help : aliased constant S := "/HELP " &
5426 -- Output usage information to the standard output stream.
5428 S_Name_Proj : aliased constant S := "/PROJECT_FILE=<" &
5430 -- /PROJECT_FILE=file_name
5432 -- Create or update a project file. 'file_name' may include directory
5433 -- information. The specified file must be writable. There may be only
5434 -- one qualifier /PROJECT_FILE. When a qualifier /PROJECT_FILE is
5435 -- specified, no qualifier /CONFIG_FILE may be specified.
5437 S_Name_Subdirs : aliased constant S := "/SUBDIRS=<" &
5441 -- The actual directories (object, exec, library, ...) are subdirectories
5442 -- of the directory specified in the project file. If the subdirectory
5443 -- does not exist, it is created automatically.
5445 S_Name_Verbose : aliased constant S := "/VERBOSE " &
5450 -- Verbose mode. Output detailed explanation of behavior to the standard
5451 -- output stream. This includes name of the file written, the name of the
5452 -- directories to search and, for each file in those directories whose
5453 -- name matches at least one of the Naming Patterns, an indication of
5454 -- whether the file contains a unit, and if so the name of the unit.
5456 S_Name_Excl : aliased constant S := "/EXCLUDED_PATTERN=" & '"' &
5458 -- /EXCLUDED_PATTERN=<string>
5460 -- Specify an excluded pattern.
5461 -- Using this qualifier, it is possible to exclude some files that would
5462 -- match the Naming patterns. For example,
5464 -- GNAT NAME /EXCLUDED_PATTERN="*_NT.ADA" "*.ADA"
5466 -- will look for Ada units in all files with the '.ADA' extension, except
5467 -- those whose names end with '_NT.ADA'.
5469 Name_Switches : aliased constant Switches :=
5470 (S_Name_Conf 'Access,
5471 S_Name_Dirs 'Access,
5472 S_Name_Dfile 'Access,
5473 S_Name_Follow 'Access,
5474 S_Name_Frng 'Access,
5475 S_Name_Help 'Access,
5476 S_Name_Proj 'Access,
5477 S_Name_Subdirs 'Access,
5478 S_Name_Verbose 'Access,
5479 S_Name_Excl 'Access);
5481 ----------------------------------
5482 -- Switches for GNAT PREPROCESS --
5483 ----------------------------------
5485 S_Prep_Assoc : aliased constant S := "/ASSOCIATE=" & '"' &
5487 -- /ASSOCIATE="name=val"
5489 -- Defines a new symbol, associated with value. If no value is given
5490 -- on the command line, then symbol is considered to be True.
5491 -- This qualifier can be used in place of a definition file.
5493 S_Prep_Blank : aliased constant S := "/BLANK_LINES " &
5495 -- /NOBLANK_LINES (D)
5498 -- Causes both preprocessor lines and the lines deleted by preprocessing
5499 -- to be replaced by blank lines in the output source file, thus
5500 -- preserving line numbers in the output file.
5502 S_Prep_Com : aliased constant S := "/COMMENTS " &
5507 -- /COMMENTS causes both preprocessor lines and the lines deleted
5508 -- by preprocessing to be retained in the output source as comments marked
5509 -- with the special string "--! ". This option will result in line numbers
5510 -- being preserved in the output file.
5512 -- /NOCOMMENTS causes both preprocessor lines and the lines deleted by
5513 -- preprocessing to be replaced by blank lines in the output source file,
5514 -- thus preserving line numbers in the output file.
5516 S_Prep_Ref : aliased constant S := "/REFERENCE " &
5521 -- Causes a "Source_Reference" pragma to be generated that references the
5522 -- original input file, so that error messages will use the file name of
5523 -- this original file. Also implies /BLANK_LINES if /COMMENTS is not
5526 S_Prep_Remove : aliased constant S := "/REMOVE " &
5531 -- Preprocessor lines and deleted lines are completely removed from the
5534 S_Prep_Replace : aliased constant S := "/REPLACE_IN_COMMENTS " &
5536 -- /NOREPLACE_IN_COMMENTS (D)
5537 -- /REPLACE_IN_COMMENTS
5539 -- Causes preprocessor to scan comments and perform replacements on
5540 -- any $symbol occurrences within the comment text.
5542 S_Prep_Symbols : aliased constant S := "/SYMBOLS " &
5547 -- Causes a sorted list of symbol names and values to be listed on
5550 S_Prep_Undef : aliased constant S := "/UNDEFINED " &
5555 Prep_Switches : aliased constant Switches :=
5556 (S_Prep_Assoc 'Access,
5557 S_Prep_Blank 'Access,
5560 S_Prep_Remove 'Access,
5561 S_Prep_Replace 'Access,
5562 S_Prep_Symbols 'Access,
5563 S_Prep_Undef 'Access);
5565 ------------------------------
5566 -- Switches for GNAT PRETTY --
5567 ------------------------------
5569 S_Pretty_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5571 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
5573 -- Add directories to the project search path.
5575 S_Pretty_Align : aliased constant S := "/ALIGN=" &
5588 "COMPONENT_CLAUSES " &
5590 -- /ALIGN[=align-option, align-option, ...]
5592 -- Set alignments. By default, all alignments (colons in declarations,
5593 -- initialisations in declarations, assignments and arrow delimiters) are
5596 -- align-option may be one of the following:
5598 -- OFF (D) Set all alignments to OFF
5599 -- COLONS Set alignments of colons in declarations to ON
5600 -- DECLARATIONS Set alignments of initialisations in declarations
5602 -- STATEMENTS Set alignments of assignments statements to ON
5603 -- ARROWS Set alignments of arrow delimiters to ON.
5604 -- COMPONENT_CLAUSES Set alignments of AT keywords in component
5607 -- Specifying one of the ON options without first specifying the OFF
5608 -- option has no effect, because by default all alignments are set to ON.
5610 S_Pretty_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
5612 -- /NOALL_PROJECTS (D)
5614 -- When GNAT PRETTY is used with a Project File and no source is
5615 -- specified, the underlying tool gnatpp is called for all the
5616 -- sources of all the Project Files in the project tree.
5618 S_Pretty_Attrib : aliased constant S := "/ATTRIBUTE_CASING=" &
5625 -- /ATTRIBUTE_CASING[=casing-option]
5627 -- Set the case of the attributes. By default the attributes are in mixed
5629 -- casing-option may be one of the following:
5635 S_Pretty_Comments : aliased constant S := "/COMMENTS_LAYOUT=" &
5640 "STANDARD_INDENT " &
5648 -- /COMMENTS_LAYOUT[=layout-option, layout-option, ...]
5650 -- Set the comment layout. By default, comments use the GNAT style
5651 -- comment line indentation.
5653 -- layout-option may be one of the following:
5655 -- UNTOUCHED All the comments remain unchanged
5656 -- DEFAULT (D) GNAT style comment line indentation
5657 -- STANDARD_INDENT Standard comment line indentation
5658 -- GNAT_BEGINNING GNAT style comment beginning
5659 -- REFORMAT Reformat comment blocks
5660 -- KEEP_SPECIAL Keep unchanged special form comments
5662 -- All combinations of layout options are allowed, except for DEFAULT
5663 -- and STANDARD_INDENT which are mutually exclusive, and also if
5664 -- UNTOUCHED is specified, this must be the only option.
5666 -- The difference between "GNAT style comment line indentation" and
5667 -- "standard comment line indentation" is the following: for standard
5668 -- comment indentation, any comment line is indented as if it were
5669 -- a declaration or statement at the same place.
5670 -- For GNAT style comment indentation, comment lines which are
5671 -- immediately followed by if or case statement alternative, record
5672 -- variant or 'begin' keyword are indented as the keyword that follows
5675 -- Standard indentation:
5684 -- GNAT style indentation:
5693 -- Option "GNAT style comment beginning" means that for each comment
5694 -- which is not considered as non-formattable separator (that is, the
5695 -- comment line contains only dashes, or a comment line ends with two
5696 -- dashes), there will be at least two spaces between starting "--" and
5697 -- the first non-blank character of the comment.
5699 S_Pretty_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
5701 -- /CONFIGURATION_PRAGMAS_FILE=file
5703 -- Specify a configuration pragmas file that need to be passed to the
5706 S_Pretty_Constr : aliased constant S := "/CONSTRUCT_LAYOUT=" &
5713 -- /CONSTRUCT_LAYOUT[=construct-option]
5715 -- Set construct layout. Default is GNAT style layout.
5716 -- construct-option may be one of the following:
5722 -- The difference between GNAT style and Compact layout on one hand
5723 -- and Uncompact layout on the other hand can be illustrated by the
5724 -- following examples:
5726 -- GNAT style and Uncompact layout
5729 -- type q is record type q is
5730 -- a : integer; record
5731 -- b : integer; a : integer;
5732 -- end record; b : integer;
5736 -- Block : declare Block :
5737 -- A : Integer := 3; declare
5738 -- begin A : Integer := 3;
5739 -- Proc (A, A); begin
5740 -- end Block; Proc (A, A);
5743 -- Clear : for J in 1 .. 10 loop Clear :
5744 -- A (J) := 0; for J in 1 .. 10 loop
5745 -- end loop Clear; A (J) := 0;
5749 -- A further difference between GNAT style layout and compact layout is
5750 -- that in GNAT style layout compound statements, return statements and
5751 -- bodies are always separated by empty lines.
5753 S_Pretty_Comind : aliased constant S := "/CONTINUATION_INDENT=#" &
5755 -- /CONTINUATION_INDENT=nnn
5757 -- Indentation level for continuation lines, nnn from 1 .. 9.
5758 -- The default value is one less then the (normal) indentation level,
5759 -- unless the indentation is set to 1: in that case the default value for
5760 -- continuation line indentation is also 1.
5762 S_Pretty_Compact_Is : aliased constant S := "/NO_SEPARATE_IS " &
5766 -- Do not place the IS keyword on a separate line in a subprogram body in
5767 -- case if the specification occupies more then one line.
5769 S_Pretty_Sep_Label : aliased constant S := "/SEPARATE_LABEL " &
5773 -- Place statement label(s) and the statement itself on separate lines.
5775 S_Pretty_Sep_Loop_Then : aliased constant S := "/SEPARATE_LOOP_THEN " &
5776 "--separate-loop-then";
5777 -- /SEPARATE_LOOP_THEN
5779 -- Place the THEN keyword in IF statement and the LOOP keyword in for-
5780 -- and while-loops on a separate line.
5782 S_Pretty_N_Sep_Loop_Then : aliased constant S := "/NO_SEPARATE_LOOP_THEN " &
5783 "--no-separate-loop-then";
5784 -- /NO_SEPARATE_LOOP_THEN
5786 -- Do not place the THEN keyword in IF statement and the LOOP keyword in
5787 -- for- and while-loops on a separate line.
5789 S_Pretty_Use_On_New_Line : aliased constant S := "/USE_ON_NEW_LINE " &
5790 "--use-on-new-line";
5793 -- Start any USE clause that is a part of a context clause from a
5796 S_Pretty_Stnm_On_Nw_Line : aliased constant S := "/STMT_NAME_ON_NEW_LINE " &
5797 "--separate-stmt-name";
5798 -- /STMT_NAME_ON_NEW_LINE
5800 -- For named block and loop statements use a separate line for the
5801 -- statement name, but do not use an extra indentation level for the
5802 -- statement itself.
5804 S_Pretty_Eol : aliased constant S := "/END_OF_LINE=" &
5813 -- /END_OF_LINE=[option]
5815 -- Specifies the form of the line terminators in the produced source.
5816 -- By default, the form of the line terminator depends on the platforms.
5817 -- On Unix and VMS, it is a Line Feed (LF) character. On Windows (DOS),
5818 -- It is a Carriage Return (CR) followed by a Line Feed.
5819 -- The Options DOS and CRLF are equivalent. The options UNIX and LF are
5822 S_Pretty_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5824 -- /EXTERNAL_REFERENCE="name=val"
5826 -- Specifies an external reference to the project manager. Useful only if
5827 -- /PROJECT_FILE is used.
5830 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5832 S_Pretty_Current : aliased constant S := "/CURRENT_DIRECTORY " &
5834 -- /CURRENT_DIRECTORY (D)
5836 -- Look for source files in the current working directory.
5838 -- /NOCURRENT_DIRECTORY
5839 -- Do not look for source files in the current working directory.
5841 S_Pretty_Dico : aliased constant S := "/DICTIONARY=*" &
5843 -- /DICTIONARY=(file_name, ...)
5845 -- Use each specified file as a dictionary file that defines the casing
5846 -- for a set of specified names, thereby overriding the effect on these
5847 -- names by any explicit or implicit /NAME_CASING qualifier.
5849 -- GNAT PRETTY implicitly uses a default dictionary file to define the
5850 -- casing for the Ada predefined names and the names declared in the GNAT
5853 -- The structure of a dictionary file, and details on the conventions
5854 -- used in the default dictionary file, are defined in the GNAT User's
5857 S_Pretty_Encoding : aliased constant S := "/RESULT_ENCODING=" &
5870 -- /RESULT_ENCODING[=encoding-type]
5872 -- Specify the wide character encoding method used when writing the
5873 -- reformatted code in the result file. 'encoding-type' is one of the
5876 -- BRACKETS (D) Brackets encoding.
5878 -- HEX Hex ESC encoding.
5880 -- UPPER Upper half encoding.
5882 -- SHIFT_JIS Shift-JIS encoding.
5884 -- EUC EUC Encoding.
5886 -- UTF8 UTF-8 encoding.
5888 -- See 'HELP GNAT COMPILE /WIDE_CHARACTER_ENCODING' for an explanation
5889 -- about the different character encoding methods.
5891 S_Pretty_Files : aliased constant S := "/FILES=@" &
5895 -- Take as arguments the files that are listed in the specified
5898 S_Pretty_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5900 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5901 -- /FOLLOW_LINKS_FOR_FILES
5903 -- Follow links when parsing project files
5905 S_Pretty_Forced : aliased constant S := "/FORCED_OUTPUT=@" &
5907 -- /FORCED_OUTPUT=file
5909 -- Write the output into the specified file, overriding any possibly
5912 S_Pretty_Formfeed : aliased constant S := "/FORM_FEED_AFTER_PRAGMA_PAGE " &
5914 -- /FORM_FEED_AFTER_PRAGMA_PAGE
5916 -- When there is a pragma Page in the source, insert a Form Feed
5917 -- character immediately after the semicolon that follows the pragma
5920 S_Pretty_Indent : aliased constant S := "/INDENTATION_LEVEL=#" &
5922 -- /INDENTATION_LEVEL=nnn
5924 -- Specify the number of spaces to add for each indentation level.
5925 -- nnn must be between 1 and 9. The default is 3.
5927 S_Pretty_Keyword : aliased constant S := "/KEYWORD_CASING=" &
5932 -- /KEYWORD_CASING[=keyword-option]
5934 -- Specify the case of Ada keywords. The default is keywords in lower
5937 -- keyword-option may be one of the following:
5942 S_Pretty_Maxlen : aliased constant S := "/LINE_LENGTH_MAX=#" &
5944 -- /LINE_LENGTH_MAX=nnn
5946 -- Set the maximum line length, nnn from 32 ..256. The default is 79.
5948 S_Pretty_Maxind : aliased constant S := "/MAX_INDENT=#" &
5952 -- Do not use an additional indentation level for case alternatives
5953 -- and variants if their number is nnn or more. The default is 10.
5954 -- If nnn is zero, an additional indentation level is used for any
5955 -- number of case alternatives and variants.
5957 S_Pretty_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5964 -- /MESSAGES_PROJECT_FILE[=messages-option]
5966 -- Specifies the "verbosity" of the parsing of project files.
5967 -- messages-option may be one of the following:
5969 -- DEFAULT (D) No messages are output if there is no error or warning.
5971 -- MEDIUM A small number of messages are output.
5973 -- HIGH A great number of messages are output, most of them not
5974 -- being useful for the user.
5976 S_Pretty_Names : aliased constant S := "/NAME_CASING=" &
5985 -- /NAME_CASING[=name-option]
5987 -- Specify the casing of names.
5988 -- 'name-option' may be one of:
5990 -- AS_DECLARED (D) Name casing for defining occurrences are as they
5991 -- appear in the source file.
5993 -- LOWER_CASE Names are in lower case.
5995 -- UPPER_CASE Names are in upper case.
5997 -- MIXED_CASE Names are in mixed case.
5999 S_Pretty_Replace_No_Backup : aliased constant S := "/REPLACE_NO_BACKUP " &
6001 -- /REPLACE_NO_BACKUP
6003 -- Replace the argument source with the pretty-printed source without
6004 -- creating any backup copy of the argument source.
6006 S_Pretty_No_Labels : aliased constant S := "/NO_MISSED_LABELS " &
6008 -- /NO_MISSED_LABELS
6010 -- Do not insert missing end/exit labels. The end label is the name of
6011 -- a construct that may optionally appear at the end of the construct.
6012 -- This includes the names of packages and subprograms.
6013 -- Similarly, the exit label is the name of a loop that may appear as the
6014 -- argument of an exit statement within the loop. By default, GNAT PRETTY
6015 -- inserts these end/exit labels when they are absent in the original
6016 -- source. This qualifier /NO_MISSED_LABELS suppresses this insertion,
6017 -- so that the formatted source reflects the original.
6019 S_Pretty_Notabs : aliased constant S := "/NOTABS " &
6023 -- Replace all tabulations in comments with spaces.
6025 S_Pretty_Output : aliased constant S := "/OUTPUT=@" &
6029 -- Write the output to the specified file. If the file already exists,
6030 -- an error is reported.
6032 S_Pretty_Override : aliased constant S := "/OVERRIDING_REPLACE " &
6034 -- /NOOVERRIDING_REPLACE (D)
6035 -- /OVERRIDING_REPLACE
6037 -- Replace the argument source with the pretty-printed source and copy the
6038 -- argument source into filename.NPP, overriding any existing file if
6041 S_Pretty_Pragma : aliased constant S := "/PRAGMA_CASING=" &
6048 -- /PRAGMA_CASING[=pragma-option]
6050 -- Set the case of pragma identifiers. The default is Mixed case.
6051 -- pragma-option may be one of the following:
6057 S_Pretty_Project : aliased constant S := "/PROJECT_FILE=<" &
6059 -- /PROJECT_FILE=filename
6061 -- Specifies the main project file to be used. The project files rooted
6062 -- at the main project file will be parsed before any other processing to
6063 -- set the building environment.
6065 S_Pretty_Replace : aliased constant S := "/REPLACE " &
6070 -- Replace the argument source with the pretty-printed source and copy the
6071 -- argument source into filename.NPP. If filename.NPP already exists,
6072 -- report an error and exit.
6074 S_Pretty_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
6076 -- /RUNTIME_SYSTEM=xxx
6078 -- Compile against an alternate runtime system named xxx or RTS-xxx.
6080 S_Pretty_Search : aliased constant S := "/SEARCH=*" &
6082 -- /SEARCH=(directory[,...])
6084 -- When looking for source files also look in directories specified.
6086 S_Pretty_Specific : aliased constant S := "/SPECIFIC_CASING " &
6090 -- Do not use the default dictionary file; instead, use the casing
6091 -- defined by a qualifier /NAME_CASING and/or any explicit dictionary
6092 -- file specified by a qualifier /DICTIONARY.
6094 S_Pretty_Standard : aliased constant S := "/STANDARD_OUTPUT " &
6096 -- /NOSTANDARD_OUTPUT (D)
6099 -- Redirect the output to the standard output.
6101 S_Pretty_Subdirs : aliased constant S := "/SUBDIRS=<" &
6105 -- The actual directories (object, exec, library, ...) are subdirectories
6106 -- of the directory specified in the project file. If the subdirectory
6107 -- does not exist, it is created automatically.
6109 S_Pretty_Verbose : aliased constant S := "/VERBOSE " &
6114 -- Verbose mode; GNAT PRETTY generates version information and then a
6115 -- trace of the actions it takes to produce or obtain the ASIS tree.
6117 S_Pretty_Warnings : aliased constant S := "/WARNINGS " &
6122 -- Issue a warning to the standard error stream if it is not possible
6123 -- to provide the required layout in the result source.
6124 -- By default such warnings are not activated.
6126 Pretty_Switches : aliased constant Switches :=
6127 (S_Pretty_Add 'Access,
6128 S_Pretty_Align 'Access,
6129 S_Pretty_All_Prjs 'Access,
6130 S_Pretty_Attrib 'Access,
6131 S_Pretty_Comments 'Access,
6132 S_Pretty_Compact_Is 'Access,
6133 S_Pretty_Config 'Access,
6134 S_Pretty_Constr 'Access,
6135 S_Pretty_Comind 'Access,
6136 S_Pretty_Current 'Access,
6137 S_Pretty_Dico 'Access,
6138 S_Pretty_Eol 'Access,
6139 S_Pretty_Ext 'Access,
6140 S_Pretty_Encoding 'Access,
6141 S_Pretty_Files 'Access,
6142 S_Pretty_Follow 'Access,
6143 S_Pretty_Forced 'Access,
6144 S_Pretty_Formfeed 'Access,
6145 S_Pretty_Indent 'Access,
6146 S_Pretty_Keyword 'Access,
6147 S_Pretty_Maxlen 'Access,
6148 S_Pretty_Maxind 'Access,
6149 S_Pretty_Mess 'Access,
6150 S_Pretty_Names 'Access,
6151 S_Pretty_No_Labels 'Access,
6152 S_Pretty_Notabs 'Access,
6153 S_Pretty_Output 'Access,
6154 S_Pretty_Override 'Access,
6155 S_Pretty_Pragma 'Access,
6156 S_Pretty_Replace 'Access,
6157 S_Pretty_Replace_No_Backup'Access,
6158 S_Pretty_Project 'Access,
6159 S_Pretty_RTS 'Access,
6160 S_Pretty_Search 'Access,
6161 S_Pretty_Sep_Label 'Access,
6162 S_Pretty_Sep_Loop_Then 'Access,
6163 S_Pretty_N_Sep_Loop_Then 'Access,
6164 S_Pretty_Subdirs 'Access,
6165 S_Pretty_Use_On_New_Line 'Access,
6166 S_Pretty_Stnm_On_Nw_Line 'Access,
6167 S_Pretty_Specific 'Access,
6168 S_Pretty_Standard 'Access,
6169 S_Pretty_Verbose 'Access,
6170 S_Pretty_Warnings 'Access);
6172 ------------------------------
6173 -- Switches for GNAT SHARED --
6174 ------------------------------
6176 S_Shared_Debug : aliased constant S := "/DEBUG=" &
6185 -- /DEBUG[=debug-option]
6188 -- Specifies the amount of debugging information included. 'debug-option'
6189 -- is one of the following:
6191 -- ALL (D) Include full debugging information.
6193 -- NONE Provide no debugging information. Same as /NODEBUG.
6195 -- TRACEBACK Provide sufficient debug information for a traceback.
6197 -- NOTRACEBACK Same as NONE.
6199 S_Shared_Image : aliased constant S := "/IMAGE=@" &
6201 -- /IMAGE=image-name
6203 -- 'image-name' specifies the name for the generated shared library.
6205 S_Shared_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
6206 "--for-linker=IDENT=" &
6208 -- /IDENTIFICATION="<string>"
6210 -- "<string>" specifies the string to be stored in the image file ident-
6211 -- ification field in the image header. It overrides any pragma Ident
6212 -- specified string.
6214 S_Shared_Nofiles : aliased constant S := "/NOSTART_FILES " &
6218 -- Link in default image initialization and startup functions.
6220 S_Shared_Noinhib : aliased constant S := "/NOINHIBIT-IMAGE " &
6221 "--for-linker=--noinhibit-exec";
6224 -- Delete image if there are errors or warnings.
6226 S_Shared_Verb : aliased constant S := "/VERBOSE " &
6231 -- Causes additional information to be output, including a full list of
6232 -- the included object files. This switch option is most useful when you
6233 -- want to see what set of object files are being used in the link step.
6235 S_Shared_ZZZZZ : aliased constant S := "/<other> " &
6239 -- Any other switch transmitted to the underlying linker.
6241 Shared_Switches : aliased constant Switches :=
6242 (S_Shared_Debug 'Access,
6243 S_Shared_Image 'Access,
6244 S_Shared_Ident 'Access,
6245 S_Shared_Nofiles 'Access,
6246 S_Shared_Noinhib 'Access,
6247 S_Shared_Verb 'Access,
6248 S_Shared_ZZZZZ 'Access);
6250 -----------------------------
6251 -- Switches for GNAT STACK --
6252 -----------------------------
6254 S_Stack_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6256 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6258 -- Add directories to the project search path.
6260 S_Stack_All : aliased constant S := "/ALL_SUBPROGRAMS " &
6262 -- /NOALL_SUBPROGRAMS (D)
6265 -- Consider all subprograms as entry points.
6267 S_Stack_All_Cycles : aliased constant S := "/ALL_CYCLES " &
6269 -- /NOALL_CYCLES (D)
6272 -- Extract all possible cycles in the call graph.
6274 S_Stack_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
6276 -- /NOALL_PROJECTS (D)
6279 -- When GNAT STACK is used with a Project File and no source is
6280 -- specified, the underlying tool gnatstack is called for all the
6281 -- units of all the Project Files in the project tree.
6283 S_Stack_Debug : aliased constant S := "/DEBUG " &
6288 -- Generate internal debug information.
6290 S_Stack_Directory : aliased constant S := "/DIRECTORY=*" &
6292 -- /DIRECTORY=(direc[,...])
6294 -- When looking for .ci files look also in directories specified.
6296 S_Stack_Entries : aliased constant S := "/ENTRIES=*" &
6299 -- /ENTRY=(entry_point[,...])
6301 -- Name of symbol to be used as entry point for the analysis.
6303 S_Stack_Files : aliased constant S := "/FILES=@" &
6307 -- Take as arguments the files that are listed in the specified
6310 S_Stack_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6312 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6313 -- /FOLLOW_LINKS_FOR_FILES
6315 -- Follow links when parsing project files
6317 S_Stack_Help : aliased constant S := "/HELP " &
6322 -- Output a message explaining the usage of gnatstack.
6324 S_Stack_List : aliased constant S := "/LIST=#" &
6328 -- Print the nnn subprograms requiring the biggest local stack usage. By
6329 -- default none will be displayed.
6331 S_Stack_Order : aliased constant S := "/ORDER=" &
6336 -- /ORDER[=order-option]
6338 -- Specifies the order for displaying the different call graphs.
6339 -- order-option may be one of the following:
6341 -- STACK (D) Select stack usage order
6343 -- ALPHABETICAL Select alphabetical order
6345 S_Stack_Path : aliased constant S := "/PATH " &
6350 -- Print all the subprograms that make up the worst-case path for every
6353 S_Stack_Project : aliased constant S := "/PROJECT_FILE=<" &
6355 -- /PROJECT_FILE=filename
6357 -- Specifies the main project file to be used. The project files rooted
6358 -- at the main project file will be parsed before the invocation of
6361 S_Stack_Output : aliased constant S := "/OUTPUT=@" &
6365 -- Name of the file containing the generated graph (VCG format).
6367 S_Stack_Regexp : aliased constant S := "/EXPRESSION=|" &
6370 -- /EXPRESSION=regular-expression
6372 -- Any symbol matching the regular expression will be considered as a
6373 -- potential entry point for the analysis.
6375 S_Stack_Subdirs : aliased constant S := "/SUBDIRS=<" &
6379 -- The actual directories (object, exec, library, ...) are subdirectories
6380 -- of the directory specified in the project file. If the subdirectory
6381 -- does not exist, it is created automatically.
6383 S_Stack_Unbounded : aliased constant S := "/UNBOUNDED=#" &
6387 -- Default stack size to be used for unbounded (dynamic) frames.
6389 S_Stack_Unknown : aliased constant S := "/UNKNOWN=#" &
6393 -- Default stack size to be used for unknown (external) calls.
6395 S_Stack_Verbose : aliased constant S := "/VERBOSE " &
6400 -- Specifies the amount of information to be displayed about the
6401 -- different subprograms. In verbose mode the full location of the
6402 -- subprogram will be part of the output, as well as detailed information
6403 -- about inaccurate data.
6405 S_Stack_Warnings : aliased constant S := "/WARNINGS=" &
6416 -- /WARNINGS[=(keyword[,...])]
6418 -- The following keywords are supported:
6420 -- ALL Turn on all optional warnings
6422 -- CYCLES Turn on warnings for cycles
6424 -- UNBOUNDED Turn on warnings for unbounded frames
6426 -- EXTERNAL Turn on warnings for external calls
6428 -- INDIRECT Turn on warnings for indirect calls
6430 Stack_Switches : aliased constant Switches :=
6431 (S_Stack_Add 'Access,
6432 S_Stack_All 'Access,
6433 S_Stack_All_Cycles 'Access,
6434 S_Stack_All_Prjs 'Access,
6435 S_Stack_Debug 'Access,
6436 S_Stack_Directory 'Access,
6437 S_Stack_Entries 'Access,
6438 S_Stack_Files 'Access,
6439 S_Stack_Follow 'Access,
6440 S_Stack_Help 'Access,
6441 S_Stack_List 'Access,
6442 S_Stack_Order 'Access,
6443 S_Stack_Path 'Access,
6444 S_Stack_Project 'Access,
6445 S_Stack_Output 'Access,
6446 S_Stack_Regexp 'Access,
6447 S_Stack_Subdirs 'Access,
6448 S_Stack_Unbounded 'Access,
6449 S_Stack_Unknown 'Access,
6450 S_Stack_Verbose 'Access,
6451 S_Stack_Warnings 'Access);
6453 ----------------------------
6454 -- Switches for GNAT STUB --
6455 ----------------------------
6457 S_Stub_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6459 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6461 -- Add directories to the project search path.
6463 S_Stub_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
6465 -- /CONFIGURATION_PRAGMAS_FILE=filespec
6467 -- Specifies a configuration pragmas file that must be taken into account
6470 S_Stub_Current : aliased constant S := "/CURRENT_DIRECTORY " &
6472 -- /CURRENT_DIRECTORY (D)
6473 -- /NOCURRENT_DIRECTORY
6475 -- Look for source, library or object files in the default directory.
6477 S_Stub_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6479 -- /EXTERNAL_REFERENCE="name=val"
6481 -- Specifies an external reference to the project manager. Useful only if
6482 -- /PROJECT_FILE is used.
6485 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6487 S_Stub_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6489 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6490 -- /FOLLOW_LINKS_FOR_FILES
6492 -- Follow links when parsing project files
6494 S_Stub_Full : aliased constant S := "/FULL " &
6499 -- If the destination directory already contains a file with the name of
6500 -- the body file for the argument file spec, replace it with the generated
6501 -- body stub. If /FULL is not used and there is already a body file, this
6502 -- existing body file is not replaced.
6504 S_Stub_Header : aliased constant S := "/HEADER=" &
6509 -- /HEADER[=header-option]
6511 -- Specifies the form of the comment header above the generated body stub.
6512 -- If no /HEADER qualifier is specified, there is no comment header.
6513 -- header-option is one of the following:
6516 -- GENERAL (D) Put a sample comment header into the body stub.
6518 -- SPEC Put the comment header (i.e., all the comments
6519 -- preceding the compilation unit) from the source of the
6520 -- library unit declaration into the body stub.
6522 S_Stub_Header_File : aliased constant S := "/FROM_HEADER_FILE=<" &
6525 -- /FROM_HEADER_FILE==filename
6527 -- Use the content of the file as the comment header for a generated body
6530 S_Stub_Indent : aliased constant S := "/INDENTATION=#" &
6534 -- (nnn is a non-negative integer). Set the indentation level in the
6535 -- generated body stub to nnn. nnn=0 means "no indentation".
6536 -- Default indentation is 3.
6538 S_Stub_Keep : aliased constant S := "/KEEP " &
6543 -- Do not delete the tree file (i.e., the snapshot of the compiler
6544 -- internal structures used by gnatstub) after creating the body stub.
6546 S_Stub_Length : aliased constant S := "/LINE_LENGTH=#" &
6550 -- (n is a non-negative integer). Set the maximum line length in the body
6551 -- stub to nnn. Default is 78.
6553 S_Stub_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6560 -- /MESSAGES_PROJECT_FILE[=messages-option]
6562 -- Specifies the "verbosity" of the parsing of project files.
6563 -- messages-option may be one of the following:
6565 -- DEFAULT (D) No messages are output if there is no error or warning.
6567 -- MEDIUM A small number of messages are output.
6569 -- HIGH A great number of messages are output, most of them not
6570 -- being useful for the user.
6572 S_Stub_No_Exc : aliased constant S := "/NO_EXCEPTION " &
6574 -- /NONO_EXCEPTION (D)
6577 -- Avoid raising PROGRAM_ERROR in the generated program unit stubs.
6579 S_Stub_No_Head : aliased constant S := "/NO_LOCAL_HEADER " &
6580 "--no-local-header";
6581 -- /NONO_LOCAL_HEADER (D)
6584 -- Do not put local comment header before body stub for local program unit.
6586 S_Stub_Output : aliased constant S := "/OUTPUT=@" &
6590 -- Body file name. This should be set if the argument file name does not
6591 -- follow the GNAT file naming conventions. If this switch is omitted,
6592 -- the default name for the body will be obtained from the argument file
6593 -- name according to the GNAT file naming conventions.
6595 S_Stub_Project : aliased constant S := "/PROJECT_FILE=<" &
6597 -- /PROJECT_FILE=filename
6599 -- Specifies the main project file to be used. The project files rooted
6600 -- at the main project file will be parsed before any other processing.
6601 -- The source and object directories to be searched will be communicated
6602 -- to gnatstub through logical names ADA_PRJ_INCLUDE_FILE and
6603 -- ADA_PRJ_OBJECTS_FILE.
6605 S_Stub_Quiet : aliased constant S := "/QUIET " &
6610 -- Quiet mode: do not generate a confirmation when a body is successfully
6611 -- created, and do not generate a message when a body is not required for
6612 -- an argument unit.
6614 S_Stub_Search : aliased constant S := "/SEARCH=*" &
6616 -- /SEARCH=(directory[,...])
6618 -- When looking for source files also look in directories specified.
6620 S_Stub_Subdirs : aliased constant S := "/SUBDIRS=<" &
6624 -- The actual directories (object, exec, library, ...) are subdirectories
6625 -- of the directory specified in the project file. If the subdirectory
6626 -- does not exist, it is created automatically.
6628 S_Stub_Tree : aliased constant S := "/TREE_FILE=" &
6635 -- /TREE_FILE[=treefile-option]
6637 -- Specify what to do with the tree file.
6638 -- treefile-option is one of the following:
6640 -- OVERWRITE (D) Overwrite the existing tree file. If the current
6641 -- directory already contains the file which, according
6642 -- to the GNAT file naming rules should be considered
6643 -- as a tree file for the argument source file, gnatstub
6644 -- will refuse to create the tree file needed to create
6645 -- a sample body unless this option is chosen.
6647 -- SAVE Do not remove the tree file (i.e., the snapshot
6648 -- of the compiler internal structures used by gnatstub)
6649 -- after creating the body stub.
6651 -- REUSE Reuse the tree file (if it exists) instead of
6653 -- Instead of creating the tree file for the library
6654 -- unit declaration, gnatstub tries to find it in the
6655 -- current directory and use it for creating a body.
6656 -- If the tree file is not found, no body is created.
6657 -- This option also implies `SAVE', whether or not the
6658 -- latter is set explicitly.
6660 S_Stub_Verbose : aliased constant S := "/VERBOSE " &
6665 -- Verbose mode: generate version information.
6667 Stub_Switches : aliased constant Switches :=
6668 (S_Stub_Add 'Access,
6669 S_Stub_Config 'Access,
6670 S_Stub_Current 'Access,
6672 S_Stub_Follow 'Access,
6673 S_Stub_Full 'Access,
6674 S_Stub_Header 'Access,
6675 S_Stub_Header_File'Access,
6676 S_Stub_Indent 'Access,
6677 S_Stub_Keep 'Access,
6678 S_Stub_Length 'Access,
6679 S_Stub_Mess 'Access,
6680 S_Stub_Output 'Access,
6681 S_Stub_Project 'Access,
6682 S_Stub_No_Exc 'Access,
6683 S_Stub_No_Head 'Access,
6684 S_Stub_Quiet 'Access,
6685 S_Stub_Search 'Access,
6686 S_Stub_Subdirs 'Access,
6687 S_Stub_Tree 'Access,
6688 S_Stub_Verbose 'Access);
6690 ----------------------------
6691 -- Switches for GNAT SYNC --
6692 ----------------------------
6694 S_Sync_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6696 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6698 -- Add directories to the project search path.
6700 S_Sync_All : aliased constant S := "/ALL " &
6705 -- Also check the components of the GNAT run time and process the needed
6706 -- components of the GNAT RTL when building and analyzing the global
6707 -- structure for checking the global rules.
6709 S_Sync_Allproj : aliased constant S := "/ALL_PROJECTS " &
6711 -- /NOALL_PROJECTS (D)
6714 -- When GNAT SYNC is used with a Project File and no source is
6715 -- specified, the underlying tool gnatsync is called for all the
6716 -- sources of all the Project Files in the project tree.
6718 S_Sync_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6720 -- /EXTERNAL_REFERENCE="name=val"
6722 -- Specifies an external reference to the project manager. Useful only if
6723 -- /PROJECT_FILE is used.
6726 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6728 S_Sync_Files : aliased constant S := "/FILES=@" &
6732 -- Take as arguments the files that are listed in the specified
6735 S_Sync_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6737 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6738 -- /FOLLOW_LINKS_FOR_FILES
6740 -- Follow links when parsing project files
6742 S_Sync_Main : aliased constant S := "/MAIN_SUBPROGRAM=@" &
6744 -- /MAIN_SUBPROGRAM=filename
6746 -- Specify the name of the file containing the main subprogram
6748 S_Sync_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6755 -- /MESSAGES_PROJECT_FILE[=messages-option]
6757 -- Specifies the "verbosity" of the parsing of project files.
6758 -- messages-option may be one of the following:
6760 -- DEFAULT (D) No messages are output if there is no error or warning.
6762 -- MEDIUM A small number of messages are output.
6764 -- HIGH A great number of messages are output, most of them not
6765 -- being useful for the user.
6767 S_Sync_Project : aliased constant S := "/PROJECT_FILE=<" &
6769 -- /PROJECT_FILE=filename
6771 -- Specifies the main project file to be used. The project files rooted
6772 -- at the main project file will be parsed before the invocation of the
6773 -- gnatcheck. The source directories to be searched will be communicated
6774 -- to gnatcheck through logical name ADA_PRJ_INCLUDE_FILE.
6776 S_Sync_Quiet : aliased constant S := "/QUIET " &
6781 -- Work quietly, only output warnings and errors.
6783 S_Sync_Subdirs : aliased constant S := "/SUBDIRS=<" &
6787 -- The actual directories (object, exec, library, ...) are subdirectories
6788 -- of the directory specified in the project file. If the subdirectory
6789 -- does not exist, it is created automatically.
6791 S_Sync_Verb : aliased constant S := "/VERBOSE " &
6796 -- The version number and copyright notice are output, as well as exact
6797 -- copies of the gnat1 commands spawned to obtain the chop control
6800 S_Sync_Exec : aliased constant S := "/EXECUTION_TIME " &
6802 -- /NOEXECUTION_TIME (D)
6805 -- Output the execution time
6807 S_Sync_Details : aliased constant S := "/DETAILS=" &
6814 -- /DETAILS[=options]
6816 -- Specifies the details of the output.
6817 -- Options may be one of the following:
6823 S_Sync_Warnoff : aliased constant S := "/WARNINGS_OFF " &
6828 -- Turn warnings off
6830 S_Sync_Output : aliased constant S := "/OUTPUT_FILE=<" &
6833 -- /OUTPUT_FILE=filename
6835 -- Redirect output to a text file
6837 Sync_Switches : aliased constant Switches :=
6838 (S_Sync_Add 'Access,
6840 S_Sync_Allproj 'Access,
6842 S_Sync_Follow 'Access,
6843 S_Sync_Files 'Access,
6844 S_Sync_Main 'Access,
6845 S_Sync_Mess 'Access,
6846 S_Sync_Project 'Access,
6847 S_Sync_Quiet 'Access,
6848 S_Sync_Subdirs 'Access,
6849 S_Sync_Verb 'Access,
6850 S_Sync_Exec 'Access,
6851 S_Sync_Details 'Access,
6852 S_Sync_Warnoff 'Access,
6853 S_Sync_Output 'Access);
6855 ----------------------------
6856 -- Switches for GNAT XREF --
6857 ----------------------------
6859 S_Xref_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6861 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6863 -- Add directories to the project search path.
6865 S_Xref_All : aliased constant S := "/ALL_FILES " &
6870 -- If this switch is present, FIND and XREF will parse the read-only
6871 -- files found in the library search path. Otherwise, these files will
6872 -- be ignored. This option can be used to protect Gnat sources or your
6873 -- own libraries from being parsed, thus making FIND and XREF much
6874 -- faster, and their output much smaller.
6876 S_Xref_Deriv : aliased constant S := "/DERIVED_TYPES " &
6878 -- /NODERIVED_TYPES (D)
6881 -- Output the parent type reference for each matching derived types.
6883 S_Xref_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6885 -- /EXTERNAL_REFERENCE="name=val"
6887 -- Specifies an external reference to the project manager. Useful only if
6888 -- /PROJECT_FILE is used.
6891 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6893 S_Xref_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6895 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6896 -- /FOLLOW_LINKS_FOR_FILES
6898 -- Follow links when parsing project files
6900 S_Xref_Full : aliased constant S := "/FULL_PATHNAME " &
6902 -- /NOFULL_PATHNAME (D)
6905 -- If this switch is set, the output file names will be preceded by their
6906 -- directory (if the file was found in the search path). If this switch
6907 -- is not set, the directory will not be printed.
6909 S_Xref_Global : aliased constant S := "/IGNORE_LOCALS " &
6911 -- /NOIGNORE_LOCALS (D)
6914 -- If this switch is set, information is output only for library-level
6915 -- entities, ignoring local entities. The use of this switch may
6916 -- accelerate FIND and XREF.
6918 S_Xref_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6925 -- /MESSAGES_PROJECT_FILE[=messages-option]
6927 -- Specifies the "verbosity" of the parsing of project files.
6928 -- messages-option may be one of the following:
6930 -- DEFAULT (D) No messages are output if there is no error or warning.
6932 -- MEDIUM A small number of messages are output.
6934 -- HIGH A great number of messages are output, most of them not
6935 -- being useful for the user.
6937 S_Xref_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
6941 -- Do not look for sources in the system default directory.
6943 S_Xref_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
6947 -- Do not look for library files in the system default directory.
6949 S_Xref_Object : aliased constant S := "/OBJECT_SEARCH=*" &
6951 -- /OBJECT_SEARCH=(directory,...)
6953 -- When searching for library and object files, look in the specified
6954 -- directories. The order in which library files are searched is the same
6957 S_Xref_Project : aliased constant S := "/PROJECT=@" &
6961 -- Specify a project file to use. By default, FIND and XREF will try to
6962 -- locate a project file in the current directory.
6964 -- If a project file is either specified or found by the tools, then the
6965 -- content of the source directory and object directory lines are added
6966 -- as if they had been specified respectively by /SOURCE_SEARCH and
6969 S_Xref_Prj : aliased constant S := "/PROJECT_FILE=<" &
6971 -- /PROJECT_FILE=filename
6973 -- Specifies the main project file to be used. The project files rooted
6974 -- at the main project file will be parsed before doing any processing.
6975 -- The source and object directories to be searched will be communicated
6976 -- to gnatxref through logical names ADA_PRJ_INCLUDE_FILE and
6977 -- ADA_PRJ_OBJECTS_FILE.
6979 S_Xref_Search : aliased constant S := "/SEARCH=*" &
6981 -- /SEARCH=(directory,...)
6984 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
6986 S_Xref_Source : aliased constant S := "/SOURCE_SEARCH=*" &
6988 -- /SOURCE_SEARCH=(directory,...)
6990 -- When looking for source files also look in the specified directories.
6991 -- The order in which source file search is undertaken is the same as for
6994 S_Xref_Subdirs : aliased constant S := "/SUBDIRS=<" &
6998 -- The actual directories (object, exec, library, ...) are subdirectories
6999 -- of the directory specified in the project file. If the subdirectory
7000 -- does not exist, it is created automatically.
7002 S_Xref_Output : aliased constant S := "/UNUSED " &
7004 -- /SOURCE_SEARCH=(directory,...)
7006 -- When looking for source files also look in the specified directories.
7007 -- The order in which source file search is undertaken is the same as for
7010 S_Xref_Tags : aliased constant S := "/TAGS " &
7015 -- Print a 'tags' file for vi.
7017 Xref_Switches : aliased constant Switches :=
7018 (S_Xref_Add 'Access,
7020 S_Xref_Deriv 'Access,
7022 S_Xref_Follow 'Access,
7023 S_Xref_Full 'Access,
7024 S_Xref_Global 'Access,
7025 S_Xref_Mess 'Access,
7026 S_Xref_Nostinc 'Access,
7027 S_Xref_Nostlib 'Access,
7028 S_Xref_Object 'Access,
7029 S_Xref_Project 'Access,
7031 S_Xref_Search 'Access,
7032 S_Xref_Source 'Access,
7033 S_Xref_Subdirs 'Access,
7034 S_Xref_Output 'Access,
7035 S_Xref_Tags 'Access);