1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1996-2007, 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 contant array
60 -- for the command, of the form:
62 -- <Command>__Switches : aliased constant Switches :=
70 -- The syntax of a qualifier delaration 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 qualifer 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 999.
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 interprete 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 qualifer,
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 swtiches
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_Force : aliased constant S := "/FORCE_ELAB_FLAGS " &
280 -- /NOFORCE_ELAB_FLAGS (D)
283 -- Force checking of elaboration Flags
285 S_Bind_Help : aliased constant S := "/HELP " &
289 -- Output usage information.
291 S_Bind_Init : aliased constant S := "/INITIALIZE_SCALARS=" &
298 -- /INITIALIZE_SCALARS[=scalar-option]
300 -- Indicate how uninitialized scalar values for which a pragma
301 -- Initialize_Scalars applies should be initialized.
302 -- scalar-option may be one of the following:
304 -- INVALID (D) Initialize with an invalid value.
305 -- LOW Initialize with the lowest valid value of the subtype.
306 -- HIGH Initialize with the highest valid value of the subtype.
308 S_Bind_Leap : aliased constant S := "/ENABLE_LEAP_SECONDS " &
310 -- /ENABLE_LEAP_SECONDS
311 -- /NOENABLE_LEAP_SECONDS (D)
313 -- Enable leap seconds support in Ada.Calendar and its children.
315 S_Bind_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
317 -- /LIBRARY_SEARCH=(direc[,...])
319 -- When looking for library and object files look also in directories
322 S_Bind_Linker : aliased constant S := "/LINKER_OPTION_LIST " &
324 -- /NOLINKER_OPTION_LIST (D)
325 -- /LINKER_OPTION_LIST
327 -- Output linker options to SYS$OUTPUT. Includes library search
328 -- paths, contents of pragmas Ident and Linker_Options, and
329 -- libraries added by GNAT BIND.
331 S_Bind_Main : aliased constant S := "/MAIN " &
335 -- The main program is in Ada.
339 -- The main program is not in Ada.
341 S_Bind_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
348 -- /MESSAGES_PROJECT_FILE[=messages-option]
350 -- Specifies the "verbosity" of the parsing of project files.
351 -- messages-option may be one of the following:
353 -- DEFAULT (D) No messages are output if there is no error or warning.
355 -- MEDIUM A small number of messages are output.
357 -- HIGH A great number of messages are output, most of them not
358 -- being useful for the user.
360 S_Bind_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
364 -- Do not look for sources the in the system default directory.
366 S_Bind_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
370 -- Do not look for library files in the system default directory.
372 S_Bind_No_Time : aliased constant S := "/NO_TIME_STAMP_CHECK " &
374 -- NODOC (see /TIME_STAMP_CHECK)
376 S_Bind_Object : aliased constant S := "/OBJECT_LIST " &
378 -- /NOOBJECT_LIST (D)
381 -- Output full names of all the object files that must be linker to
382 -- provide the Ada component of the program. The output is written to
385 S_Bind_Order : aliased constant S := "/ORDER_OF_ELABORATION " &
387 -- /NOORDER_OF_ELABORATION (D)
388 -- /ORDER_OF_ELABORATION
390 -- Output chosen elaboration order. The output is written to SYS$OUTPUT.
392 S_Bind_Output : aliased constant S := "/OUTPUT=@" &
396 -- File name to use for the program containing the elaboration code.
398 S_Bind_OutputX : aliased constant S := "/NOOUTPUT " &
402 -- Check only. Do not generate the binder output file.
404 -- In this mode the binder performs all error checks but does not generate
407 S_Bind_Pess : aliased constant S := "/PESSIMISTIC_ELABORATION " &
409 -- /PESSIMISTIC_ELABORATION
411 -- Causes the binder to choose a "pessimistic" elaboration order, i.e. one
412 -- which is most likely to cause elaboration order problems. This can be
413 -- useful in testing portable code to make sure that there are no missing
414 -- elaborate pragmas.
416 S_Bind_Project : aliased constant S := "/PROJECT_FILE=<" &
418 -- /PROJECT_FILE=filename
420 -- Specifies the main project file to be used. The project files rooted
421 -- at the main project file will be parsed before the invocation of the
422 -- binder. The source and object directories to be searched will be
423 -- communicated to the binder through logical names ADA_PRJ_INCLUDE_FILE
424 -- and ADA_PRJ_OBJECTS_FILE.
426 S_Bind_Read : aliased constant S := "/READ_SOURCES=" &
433 -- /READ_SOURCES[=(keyword[,...])]
436 -- The following keyword are accepted:
438 -- ALL (D) Require source files to be present. In this mode, the
439 -- binder insists on being able to locate all source files
440 -- that are referenced and checks their consistency. In
441 -- normal mode, if a source file cannot be located it is
442 -- simply ignored. If you specify the ALL keyword, a
443 -- missing source file is an error.
445 -- NONE Exclude source files. In this mode, the binder only
446 -- checks that ALI files are consistent with one another.
447 -- source files are not accessed. The binder runs faster
448 -- in this mode, and there is still a guarantee that the
449 -- resulting program is self-consistent.
451 -- If a source file has been edited since it was last
452 -- compiled and you specify the NONE keyword, the binder
453 -- will not detect that the object file is out of date
454 -- with the source file.
456 -- This is the same as specifying /NOREAD_SOURCES.
458 -- AVAILABLE Check that object files are consistent with one
459 -- another and are consistent with any source files that
462 S_Bind_ReadX : aliased constant S := "/NOREAD_SOURCES " &
464 -- NODOC (see /READ_SOURCES)
466 S_Bind_Rename : aliased constant S := "/RENAME_MAIN=<" &
470 -- Renames the generated main program from main to xxx.
471 -- This is useful in the case of some cross-building environments, where
472 -- the actual main program is separate from the one generated
475 S_Bind_Report : aliased constant S := "/REPORT_ERRORS=" &
482 -- /REPORT_ERRORS[=(keyword[,...])]
488 -- With the DEFAULT keyword (which is not the default when the binder is
489 -- run from GNAT BIND) or the /NOREPORT_ERRORS qualifier, brief error
490 -- messages are generated to SYS$ERROR. If the VERBOSE keyword is
491 -- present, a header is written to SYS$OUTPUT and any error messages are
492 -- directed to SYS$OUTPUT All that is written to SYS$ERROR is a brief
495 -- If the BRIEF keyword is specified, the binder will generate brief error
496 -- messages to SYS$ERROR even if verbose mode is specified. This is
497 -- relevant only when used together with the VERBOSE keyword or /VERBOSE
500 S_Bind_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
502 -- NODOC (see /REPORT_ERRORS)
504 S_Bind_Restr : aliased constant S := "/RESTRICTION_LIST " &
506 -- /NORESTRICTION_LIST (D)
509 -- Generate list of pragma Rerstrictions that could be applied to the
510 -- current unit. This is useful for code audit purposes, and also may be
511 -- used to improve code generation in some cases.
513 S_Bind_Return : aliased constant S := "/RETURN_CODES=" &
518 -- /RETURN_CODES=POSIX (D)
521 -- Specifies the style of default exit code returned. Must be used in
522 -- conjunction with and match the Link qualifer with same name.
524 -- POSIX (D) Return Posix success (0) by default.
526 -- VMS Return VMS success (1) by default.
528 S_Bind_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
530 -- /RUNTIME_SYSTEM=xxx
532 -- Binds against an alternate runtime system named xxx or RTS-xxx.
534 S_Bind_Search : aliased constant S := "/SEARCH=*" &
536 -- /SEARCH=(directory[,...])
538 -- When looking for source or object files also look in directories
541 -- This is the same as specifying both /LIBRARY_SEARCH and /SOURCE_SEARCH
544 S_Bind_Shared : aliased constant S := "/SHARED " &
549 -- Link against a shared GNAT run time when available.
551 S_Bind_Slice : aliased constant S := "/TIME_SLICE=#" &
555 -- Set the time slice value to nnn milliseconds. A value of zero means no
556 -- time slicing and also indicates to the tasking run time to match as
557 -- close as possible to the annex D requirements of the RM.
559 S_Bind_Source : aliased constant S := "/SOURCE_SEARCH=*" &
561 -- /SOURCE_SEARCH=(directory[,...])
563 -- When looking for source files also look in directories specified.
565 S_Bind_Static : aliased constant S := "/STATIC " &
570 -- Link against a static GNAT run time.
572 S_Bind_Store : aliased constant S := "/STORE_TRACEBACKS " &
574 -- /STORE_TRACEBACKS (D)
575 -- /NOSTORE_TRACEBACKS
577 -- Store tracebacks in exception occurrences.
578 -- This is the default on VMS, with the zero-cost exception mechanism.
579 -- This qualifier has no impact, except when using the setjmp/longjmp
580 -- exception mechanism, with the GNAT COMPILE qualifier /LONGJMP_SETJMP.
582 S_Bind_Time : aliased constant S := "/TIME_STAMP_CHECK " &
584 -- /TIME_STAMP_CHECK (D)
586 -- Time stamp errors will be treated as errors.
588 -- /NOTIME_STAMP_CHECK
590 -- Ignore time stamp errors. Any time stamp error messages are treated as
591 -- warning messages. This switch essentially disconnects the normal
592 -- consistency checking, and the resulting program may have undefined
593 -- semantics if inconsistent units are present.
595 -- This means that /NOTIME_STAMP_CHECK should be used only in unusual
596 -- situations, with extreme care.
598 S_Bind_Verbose : aliased constant S := "/VERBOSE " &
603 -- Equivalent to /REPORT_ERRORS=VERBOSE.
605 S_Bind_Warn : aliased constant S := "/WARNINGS=" &
612 -- /WARNINGS[=(keyword[,...])]
615 -- The following keywords are supported:
617 -- NORMAL (D) Print warning messages and treat them as warning.
618 -- SUPPRESS Suppress all warning messages (same as /NOWARNINGS).
619 -- ERROR Treat any warning messages as fatal errors
621 S_Bind_WarnX : aliased constant S := "/NOWARNINGS " &
623 -- NODOC (see /WARNINGS)
625 S_Bind_Wide : aliased constant S := "/WIDE_CHARACTER_ENCODING=" &
638 -- /NOWIDE_CHARACTER_ENCODING (D)
639 -- /WIDE_CHARACTER_ENCODING[=encode-type]
641 -- Specifies the mechanism used to encode wide characters, overriding
642 -- the default as set by the /WIDE_CHARACTER_ENCODING option for the
643 -- compilation of the main program.
645 S_Bind_Zero : aliased constant S := "/ZERO_MAIN " &
650 -- Normally the binder checks that the unit name given on the command line
651 -- corresponds to a suitable main subprogram. When /ZERO_MAIN is used,
652 -- a list of ALI files can be given, and the execution of the program
653 -- consists of elaboration of these units in an appropriate order.
655 Bind_Switches : aliased constant Switches :=
658 S_Bind_Build 'Access,
659 S_Bind_Current 'Access,
660 S_Bind_Debug 'Access,
661 S_Bind_DebugX 'Access,
663 S_Bind_Error 'Access,
665 S_Bind_Force 'Access,
669 S_Bind_Library 'Access,
670 S_Bind_Linker 'Access,
673 S_Bind_Nostinc 'Access,
674 S_Bind_Nostlib 'Access,
675 S_Bind_No_Time 'Access,
676 S_Bind_Object 'Access,
677 S_Bind_Order 'Access,
678 S_Bind_Output 'Access,
679 S_Bind_OutputX 'Access,
681 S_Bind_Project 'Access,
683 S_Bind_ReadX 'Access,
684 S_Bind_Rename 'Access,
685 S_Bind_Report 'Access,
686 S_Bind_ReportX 'Access,
687 S_Bind_Restr 'Access,
688 S_Bind_Return 'Access,
690 S_Bind_Search 'Access,
691 S_Bind_Shared 'Access,
692 S_Bind_Slice 'Access,
693 S_Bind_Source 'Access,
694 S_Bind_Static 'Access,
695 S_Bind_Store 'Access,
697 S_Bind_Verbose 'Access,
699 S_Bind_WarnX 'Access,
701 S_Bind_Zero 'Access);
703 -----------------------------
704 -- Switches for GNAT CHECK --
705 -----------------------------
707 S_Check_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
709 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
711 -- Add directories to the project search path.
713 S_Check_All : aliased constant S := "/ALL " &
718 -- Also check the components of the GNAT run time and process the needed
719 -- components of the GNAT RTL when building and analyzing the global
720 -- structure for checking the global rules.
722 S_Check_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
724 -- /EXTERNAL_REFERENCE="name=val"
726 -- Specifies an external reference to the project manager. Useful only if
727 -- /PROJECT_FILE is used.
730 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
732 S_Check_Files : aliased constant S := "/FILES=@" &
736 -- Take as arguments the files that are listed in the specified
739 S_Check_Help : aliased constant S := "/HELP " &
744 -- Print information about currently implemented checks.
746 S_Check_Locs : aliased constant S := "/LOCS " &
751 -- Use full source locations referebces in the report file.
753 S_Check_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
760 -- /MESSAGES_PROJECT_FILE[=messages-option]
762 -- Specifies the "verbosity" of the parsing of project files.
763 -- messages-option may be one of the following:
765 -- DEFAULT (D) No messages are output if there is no error or warning.
767 -- MEDIUM A small number of messages are output.
769 -- HIGH A great number of messages are output, most of them not
770 -- being useful for the user.
772 S_Check_Project : aliased constant S := "/PROJECT_FILE=<" &
774 -- /PROJECT_FILE=filename
776 -- Specifies the main project file to be used. The project files rooted
777 -- at the main project file will be parsed before the invocation of the
778 -- gnatcheck. The source directories to be searched will be communicated
779 -- to gnatcheck through logical name ADA_PRJ_INCLUDE_FILE.
781 S_Check_Quiet : aliased constant S := "/QUIET " &
786 -- Work quietly, only output warnings and errors.
788 S_Check_Sections : aliased constant S := "/SECTIONS=" &
795 "BY_FILES_BY_RULES " &
797 -- /SECTIONS[=section-option, section-option, ...]
799 -- Specify what sections should be included into the report file.
800 -- By default, all three section (diagnises in the format correcponding
801 -- to compiler error and warning messages, diagnoses grouped by rules and
802 -- then - by files, diagnoses grouped by files and then - by rules) are
803 -- included in the report file.
805 -- section-option may be one of the following:
807 -- COMPILER_STYLE Include diagnoses in compile-style format
808 -- (diagoses are grouped by files, for each file
809 -- they are ordered according to the references
811 -- BY_RULES Include diagnoses grouped first by rules and
813 -- BY_FILES_BY_RULES Include diagnoses grouped first by files and
816 -- If one of these options is specified, then the report file contains
817 -- only sections set by these options
819 S_Check_Short : aliased constant S := "/SHORT " &
824 -- Generate a short form of the report file.
826 S_Check_Verb : aliased constant S := "/VERBOSE " &
831 -- The version number and copyright notice are output, as well as exact
832 -- copies of the gnat1 commands spawned to obtain the chop control
835 Check_Switches : aliased constant Switches :=
836 (S_Check_Add 'Access,
839 S_Check_Files 'Access,
840 S_Check_Help 'Access,
841 S_Check_Locs 'Access,
842 S_Check_Mess 'Access,
843 S_Check_Project 'Access,
844 S_Check_Quiet 'Access,
845 S_Check_Sections 'Access,
846 S_Check_Short 'Access,
847 S_Check_Verb 'Access);
849 ----------------------------
850 -- Switches for GNAT CHOP --
851 ----------------------------
853 S_Chop_Comp : aliased constant S := "/COMPILATION " &
855 -- /NOCOMPILATION (D)
858 -- Compilation mode, handle configuration pragmas strictly according to
861 S_Chop_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
863 -- /FILE_NAME_MAX_LENGTH[=nnn]
865 -- Limit generated file names to NNN (default of 8) characters. This is
866 -- useful if the resulting set of files is required to be interoperable
867 -- with systems like MS-DOS which limit the length of file names.
869 S_Chop_Help : aliased constant S := "/HELP " &
874 -- Print usage information.
876 S_Chop_Over : aliased constant S := "/OVERWRITE " &
881 -- Overwrite existing file names. Normally GNAT CHOP regards it as a
882 -- fatal error situation if there is already a file with the same name as
883 -- a file it would otherwise output. The /OVERWRITE qualifier bypasses
884 -- this check, and any such existing files will be silently overwritten.
886 S_Chop_Pres : aliased constant S := "/PRESERVE " &
891 -- Causes the file modification time stamp of the input file to be
892 -- preserved and used for the time stamp of the output file(s). This may
893 -- be useful for preserving coherency of time stamps in an enviroment
894 -- where gnatchop is used as part of a standard build process.
896 S_Chop_Quiet : aliased constant S := "/QUIET " &
901 -- Work quietly, only output warnings and errors.
903 S_Chop_Ref : aliased constant S := "/REFERENCE " &
908 -- Generate "Source_Reference" pragmas. Use this qualifier if the output
909 -- files are regarded as temporary and development is to be done in terms
910 -- of the original unchopped file. The /REFERENCE qualifier causes
911 -- "Source_Reference" pragmas to be inserted into each of the generated
912 -- files to refers back to the original file name and line number. The
913 -- result is that all error messages refer back to the original unchopped
916 -- In addition, the debugging information placed into the object file
917 -- (when the /DEBUG qualifier of GNAT COMPILE or GNAT MAKE is specified)
918 -- also refers back to this original file so that tools like profilers
919 -- and debuggers will give information in terms of the original unchopped
922 S_Chop_Verb : aliased constant S := "/VERBOSE " &
927 -- The version number and copyright notice are output, as well as exact
928 -- copies of the gnat1 commands spawned to obtain the chop control
931 Chop_Switches : aliased constant Switches :=
932 (S_Chop_Comp 'Access,
937 S_Chop_Quiet 'Access,
939 S_Chop_Verb 'Access);
941 -----------------------------
942 -- Switches for GNAT CLEAN --
943 -----------------------------
945 S_Clean_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
947 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
949 -- Add directories to the project search path.
951 S_Clean_Compil : aliased constant S := "/COMPILER_FILES_ONLY " &
953 -- /NOCOMPILER_FILES_ONLY (D)
954 -- /COMPILER_FILES_ONLY
956 -- Only attempt to delete the files produced by the compiler, not those
957 -- produced by the binder or the linker. The files that are not to be
958 -- deleted are library files, interface copy files, binder generated files
959 -- and executable files.
961 S_Clean_Current : aliased constant S := "/CURRENT_DIRECTORY " &
963 -- /CURRENT_DIRECTORY (D)
965 -- Look for ALI or object files in the directory where GNAT CLEAN was
968 -- /NOCURRENT_DIRECTORY
970 -- Do not look for ALI or object files in the directory where GNAT CLEAN
973 S_Clean_Delete : aliased constant S := "/DELETE " &
977 -- Delete the files that are not read-only.
981 -- Informative-only mode. Do not delete any files. Output the list of the
982 -- files that would have been deleted if this switch was not specified.
984 S_Clean_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
986 -- /DIRECTORY_OBJECTS=<file>
988 -- Find the object files and .ALI files in <file>.
989 -- This qualifier is not compatible with /PROJECT_FILE.
991 S_Clean_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
993 -- /EXTERNAL_REFERENCE="name=val"
995 -- Specifies an external reference to the project manager. Useful only if
996 -- /PROJECT_FILE is used.
999 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1001 S_Clean_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1003 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1004 -- /FULL_PATH_IN_BRIEF_MESSAGES
1006 -- When using project files, if some errors or warnings are detected
1007 -- during parsing and verbose mode is not in effect (no use of qualifier
1008 -- /VERBOSE), then error lines start with the full path name of the
1009 -- project file, rather than its simple file name.
1011 S_Clean_Help : aliased constant S := "/HELP " &
1016 -- Output a message explaining the usage of gnatclean.
1018 S_Clean_Index : aliased constant S := "/SOURCE_INDEX=#" &
1020 -- /SOURCE_INDEX=nnn
1022 -- Specifies the index of the units in the source file
1023 -- By default, source files are mono-unit and there is no index
1025 S_Clean_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1032 -- /MESSAGES_PROJECT_FILE[=messages-option]
1034 -- Specifies the "verbosity" of the parsing of project files.
1035 -- messages-option may be one of the following:
1037 -- DEFAULT (D) No messages are output if there is no error or warning.
1039 -- MEDIUM A small number of messages are output.
1041 -- HIGH A great number of messages are output, most of them not
1042 -- being useful for the user.
1044 S_Clean_Object : aliased constant S := "/OBJECT_SEARCH=*" &
1046 -- /OBJECT_SEARCH=(directory,...)
1048 -- When searching for library and object files, look in the specified
1049 -- directories. The order in which library files are searched is the same
1052 S_Clean_Project : aliased constant S := "/PROJECT_FILE=<" &
1054 -- /PROJECT_FILE=filename
1056 -- Specifies the main project file to be used. The project files rooted
1057 -- at the main project file will be parsed before the invocation of the
1058 -- compiler. The source and object directories to be searched will be
1059 -- communicated to gnatclean through logical names ADA_PRJ_INCLUDE_FILE
1060 -- and ADA_PRJ_OBJECTS_FILE.
1062 S_Clean_Quiet : aliased constant S := "/QUIET " &
1067 -- Quiet output. If there are no error, do not ouuput anything, except in
1068 -- verbose mode (qualifier /VERBOSE) or in informative-only mode
1069 -- (qualifier /NODELETE).
1071 S_Clean_Recurs : aliased constant S := "/RECURSIVE " &
1076 -- When a project file is specified (using switch -P), clean all imported
1077 -- and extended project files, recursively. If this qualifier is not
1078 -- specified, only the files related to the main project file are to be
1079 -- deleted. This qualifier has no effect if no project file is specified.
1081 S_Clean_Search : aliased constant S := "/SEARCH=*" &
1083 -- /SEARCH=(directory,...)
1085 -- Equivalent to /OBJECT_SEARCH=(directory,...).
1087 S_Clean_Verbose : aliased constant S := "/VERBOSE " &
1094 Clean_Switches : aliased constant Switches :=
1095 (S_Clean_Add 'Access,
1096 S_Clean_Compil 'Access,
1097 S_Clean_Current'Access,
1098 S_Clean_Delete 'Access,
1099 S_Clean_Dirobj 'Access,
1100 S_Clean_Ext 'Access,
1101 S_Clean_Full 'Access,
1102 S_Clean_Help 'Access,
1103 S_Clean_Index 'Access,
1104 S_Clean_Mess 'Access,
1105 S_Clean_Object 'Access,
1106 S_Clean_Project'Access,
1107 S_Clean_Quiet 'Access,
1108 S_Clean_Recurs 'Access,
1109 S_Clean_Search 'Access,
1110 S_Clean_Verbose'Access);
1112 -------------------------------
1113 -- Switches for GNAT COMPILE --
1114 -------------------------------
1116 S_GCC_Ada_83 : aliased constant S := "/83 " &
1121 -- Although GNAT is primarily an Ada 95 compiler, it accepts this
1122 -- qualifier to specify that an Ada 83 mode program is being compiled. If
1123 -- you specify this qualifier, GNAT rejects Ada 95 extensions and applies
1124 -- Ada 83 semantics. It is not possible to guarantee this qualifier does
1125 -- a perfect job; for example, some subtle tests of pathological cases,
1126 -- such as are found in ACVC tests that have been removed from the ACVC
1127 -- suite for Ada 95, may not compile correctly. However for practical
1128 -- purposes, using this qualifier should ensure that programs that
1129 -- compile correctly under the /83 qualifier can be ported reasonably
1130 -- easily to an Ada 83 compiler. This is the main use of this qualifier.
1132 -- With few exceptions (most notably the need to use "<>" on
1133 -- unconstrained generic formal parameters), it is not necessary to use
1134 -- this qualifier switch when compiling Ada 83 programs, because, with
1135 -- rare and obscure exceptions, Ada 95 is upwardly compatible with Ada
1136 -- 83. This means that a correct Ada 83 program is usually also a correct
1139 S_GCC_Ada_95 : aliased constant S := "/95 " &
1143 -- Allows GNAT to recognize the full range of Ada 95 constructs.
1144 -- This is the normal default for GNAT Pro.
1146 S_GCC_Ada_05 : aliased constant S := "/05 " &
1150 -- Allows GNAT to recognize all implemented proposed Ada 2005
1151 -- extensions. See features file for list of implemented features.
1153 S_GCC_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
1155 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
1157 -- Add directories to the project search path.
1159 S_GCC_Asm : aliased constant S := "/ASM " &
1164 -- Use to cause the assembler source file to be generated, using S as the
1165 -- filetype, instead of the object file. This may be useful if you need
1166 -- to examine the generated assembly code.
1168 S_GCC_Checks : aliased constant S := "/CHECKS=" &
1170 "-gnato,!-gnatE,!-gnatp " &
1178 "!-gnato,!-gnatp " &
1184 -- /CHECKS[=(keyword[,...])]
1186 -- If you compile with the default options, GNAT will insert many runtime
1187 -- checks into the compiled code, including code that performs range
1188 -- checking against constraints, but not arithmetic overflow checking for
1189 -- integer operations (including division by zero) or checks for access
1190 -- before elaboration on subprogram calls. All other runtime checks, as
1191 -- required by the Ada 95 Reference Manual, are generated by default.
1193 -- You may specify one or more of the following keywords to the /CHECKS
1194 -- qualifier to modify this behavior:
1196 -- DEFAULT The behavior described above. This is the default
1197 -- if the /CHECKS qualifier is not present on the
1198 -- command line. Same as /NOCHECKS.
1200 -- OVERFLOW Enables overflow checking for integer operations and
1201 -- checks for access before elaboration on subprogram
1202 -- calls. This causes GNAT to generate slower and larger
1203 -- executable programs by adding code to check for both
1204 -- overflow and division by zero (resulting in raising
1205 -- "Constraint_Error" as required by Ada semantics).
1206 -- Similarly, GNAT does not generate elaboration check
1207 -- by default, and you must specify this keyword to
1210 -- Note that this keyword does not affect the code
1211 -- generated for any floating-point operations; it
1212 -- applies only to integer operations. For floating-point,
1213 -- GNAT has the "Machine_Overflows" attribute set to
1214 -- "False" and the normal mode of operation is to generate
1215 -- IEEE NaN and infinite values on overflow or invalid
1216 -- operations (such as dividing 0.0 by 0.0).
1218 -- ELABORATION Enables dynamic checks for access-before-elaboration
1219 -- on subprogram calls and generic instantiations.
1221 -- ASSERTIONS The pragmas "Assert" and "Debug" normally have no
1222 -- effect and are ignored. This keyword causes "Assert"
1223 -- and "Debug" pragmas to be activated.
1225 -- SUPPRESS_ALL Suppress all runtime checks as though you have "pragma
1226 -- Suppress (all_checks)" in your source. Use this switch
1227 -- to improve the performance of the code at the expense
1228 -- of safety in the presence of invalid data or program
1231 -- DEFAULT Suppress the effect of any option OVERFLOW or
1234 -- FULL (D) Similar to OVERFLOW, but suppress the effect of any
1235 -- option ELABORATION or SUPPRESS_ALL.
1237 -- These keywords only control the default setting of the checks. You
1238 -- may modify them using either "Suppress" (to remove checks) or
1239 -- "Unsuppress" (to add back suppressed checks) pragmas in your program
1242 S_GCC_ChecksX : aliased constant S := "/NOCHECKS " &
1243 "-gnatp,!-gnato,!-gnatE";
1244 -- NODOC (see /CHECKS)
1246 S_GCC_Compres : aliased constant S := "/COMPRESS_NAMES " &
1248 -- /NOCOMPRESS_NAMES (D)
1251 -- Compress debug information and external symbol name table entries.
1252 -- In the generated debugging information, and also in the case of long
1253 -- external names, the compiler uses a compression mechanism if the name
1254 -- is very long. This compression method uses a checksum, and avoids
1255 -- trouble on some operating systems which have difficulty with very long
1258 S_GCC_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
1260 -- /CONFIGURATION_PRAGMAS_FILE=file
1262 -- Specify a configuration pragmas file that need to be taken into account
1264 S_GCC_Current : aliased constant S := "/CURRENT_DIRECTORY " &
1266 -- /CURRENT_DIRECTORY (D)
1267 -- /NOCURRENT_DIRECTORY
1269 -- Look for source files in the default directory.
1271 S_GCC_Data : aliased constant S := "/DATA_PREPROCESSING=<" &
1273 -- /DATA_PREPROCESSING=file_name
1275 -- This qualifier indicates to the compiler the file name (without
1276 -- directory information) of the preprocessor data file to use.
1277 -- The preprocessor data file should be found in the source directories.
1279 -- A preprocessing data file is a text file with significant lines
1280 -- indicating how should be preprocessed either a specific source or all
1281 -- sources not mentioned in other lines. A significant line is a non
1282 -- empty, non comment line. Comments are similar to Ada comments.
1284 -- Each significant line starts with either a literal string or the
1285 -- character '*'. A literal string is the file name (without directory
1286 -- information) of the source to preprocess. A character '*' indicates the
1287 -- preprocessing for all the sources that are not specified explicitly on
1288 -- other lines. It is an error to have two lines with the same file name
1289 -- or two lines starting with the character '*'.
1291 -- After the file name or the character '*', another optional literal
1292 -- string indicating the file name of the definition file to be used for
1293 -- preprocessing. (see 15.3 Form of Definitions File. The definition files
1294 -- are found by the compiler in one of the source directories. In some
1295 -- cases, when compiling a source in a directory other than the current
1296 -- directory, if the definition file is in the current directory, it may
1297 -- be necessary to add the current directory as a source directory through
1298 -- qualifier "/SEARCH=[]", otherwise the compiler would not find the
1301 -- Then, optionally, switches similar to those of gnatprep may be found.
1302 -- Those switches are:
1304 -- -b Causes both preprocessor lines and the lines deleted by
1305 -- preprocessing to be replaced by blank lines, preserving
1306 -- the line number. This switch is always implied;
1307 -- however, if specified after `-c' it cancels the effect
1310 -- -c Causes both preprocessor lines and the lines deleted by
1311 -- preprocessing to be retained as comments marked with
1312 -- the special string "--! ".
1314 -- -Dsymbol=value Define or redefine a symbol, associated with value.
1315 -- A symbol is an Ada identifier, or an Ada reserved word,
1316 -- with the exception of "if", "else", "elsif", "end",
1317 -- "and", "or" and "then". value is either a literal
1318 -- string, an Ada identifier or any Ada reserved word.
1319 -- A symbol declared with this switch replaces a symbol
1320 -- with the same name defined in a definition file.
1322 -- -s Causes a sorted list of symbol names and values to be
1323 -- listed on the standard output file.
1325 -- -u Causes undefined symbols to be treated as having the
1326 -- value FALSE in the context of a preprocessor test.
1327 -- In the absence of this option, an undefined symbol
1328 -- in a #if or #elsif test will be treated as an error.
1330 -- Examples of valid lines in a preprocessor data file:
1332 -- "toto.adb" "prep.def" -u
1333 -- -- preprocess "toto.adb", using definition file "prep.def",
1334 -- -- undefined symbol are False.
1336 -- * -c -DVERSION=V101
1337 -- -- preprocess all other sources without a definition file;
1338 -- -- suppressed lined are commented; symbol VERSION has the value
1341 -- "titi.adb" "prep2.def" -s
1342 -- -- preprocess "titi.adb", using definition file "prep2.def";
1343 -- -- list all symbols with their values.
1345 S_GCC_Debug : aliased constant S := "/DEBUG=" &
1358 -- /DEBUG[=debug-level]
1361 -- Specifies how much debugging information is to be included in
1362 -- the resulting object fie.
1364 -- 'debug-level' is one of the following:
1366 -- SYMBOLS (D) Include both debugger symbol records and traceback
1367 -- in the object file.
1369 -- ALL Include debugger symbol records, traceback plus
1370 -- extra debug information in the object file.
1372 -- NONE Excludes both debugger symbol records and traceback
1373 -- from the object file. Same as /NODEBUG.
1375 -- TRACEBACK Includes only traceback records in the object
1376 -- file. This is the default when /DEBUG is not used.
1378 S_GCC_DebugX : aliased constant S := "/NODEBUG " &
1380 -- NODOC (see /Debug)
1382 S_GCC_Dist : aliased constant S := "/DISTRIBUTION_STUBS=" &
1387 -- /NODISTRIBUTION_STUBS (D)
1388 -- /DISTRIBUTION_STUBS[=dist-opt]
1390 -- 'dist-opt' is either RECEIVER (the default) or SENDER and indicates
1391 -- that stubs for use in distributed programs (see the Distributed
1392 -- Systems Annex of the Ada RM) should be generated.
1394 S_GCC_DistX : aliased constant S := "/NODISTRIBUTION_STUBS " &
1395 "!-gnatzr,!-gnatzc";
1396 -- NODOC (see /DISTRIBUTION_STUBS)
1398 S_GCC_Error : aliased constant S := "/ERROR_LIMIT=#" &
1400 -- /NOERROR_LIMIT (D)
1403 -- NNN is a decimal integer in the range of 1 to 999999 and limits the
1404 -- number of error messages to be generated to that number. Once that
1405 -- number has been reached, the compilation is abandoned.
1406 -- Specifying 999999 is equivalent to /NOERROR_LIMIT.
1408 S_GCC_ErrorX : aliased constant S := "/NOERROR_LIMIT " &
1410 -- NODOC (see /ERROR_LIMIT)
1412 S_GCC_Expand : aliased constant S := "/EXPAND_SOURCE " &
1414 -- /NOEXPAND_SOURCE (D)
1417 -- Produces a listing of the expanded code in Ada source form. For
1418 -- example, all tasking constructs are reduced to appropriate run-time
1421 S_GCC_Extend : aliased constant S := "/EXTENSIONS_ALLOWED " &
1423 -- /NOEXTENSIONS_ALLOWED (D)
1424 -- /EXTENSIONS_ALLOWED
1426 -- GNAT specific language extensions allowed.
1428 S_GCC_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1430 -- /EXTERNAL_REFERENCE="name=val"
1432 -- Specifies an external reference to the project manager. Useful only if
1433 -- /PROJECT_FILE is used.
1436 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1438 S_GCC_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
1440 -- /FILE_NAME_MAX_LENGTH=nnn
1442 -- Activates file name "krunching". NNN, a decimal integer in the range
1443 -- 1-999, indicates the maximum allowable length of a file name (not
1444 -- including the ADS or ADB filetype. The default is not to enable file
1447 S_GCC_Force : aliased constant S := "/FORCE_ALI " &
1452 -- In normal operation mode, the .ALI file is not generated if any
1453 -- illegalities are detected in the program. The use of this qualifier
1454 -- forces generation of the .ALI file. This file is marked as being
1455 -- in error, so it cannot be used for binding purposes, but it does
1456 -- contain reasonably complete cross-reference information, and thus may
1457 -- be useful for use by tools (e.g. semantic browing tools or integrated
1458 -- development environments) that are driven from the .ALI file.
1460 S_GCC_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1462 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1463 -- /FULL_PATH_IN_BRIEF_MESSAGES
1465 -- When using project files, if some errors or warnings are detected
1466 -- during parsing and verbose mode is not in effect (no use of qualifier
1467 -- /VERBOSE), then error lines start with the full path name of the
1468 -- project file, rather than its simple file name.
1470 S_GCC_GNAT : aliased constant S := "/GNAT_INTERNAL " &
1472 -- /NOGNAT_INTERNAL (D)
1475 -- Internal GNAT implementation mode. This should not be used for
1476 -- applications programs, it is intended only for use by the compiler
1477 -- and its run-time library. For documentation, see the GNAT sources.
1478 -- Note that it implies /WARNINGS=ALL,ERRORS and /STYLE_CHECKS=GNAT
1479 -- so that all standard warnings and all standard style options are
1480 -- turned on. All warnings and style error messages are treated as
1483 S_GCC_Help : aliased constant S := "/HELP " &
1488 -- Output usage information.
1490 S_GCC_Ident : aliased constant S := "/IDENTIFIER_CHARACTER_SET=" &
1513 -- /NOIDENTIFIER_CHARACTER_SET (D)
1514 -- /IDENTIFIER_CHARACTER_SET=char-set
1516 -- Normally GNAT recognizes the Latin-1 character set in source program
1517 -- identifiers, as described in the reference manual. This qualifier
1518 -- causes GNAT to recognize alternate character sets in identifiers.
1519 -- 'char-set' is one of the following strings indicating the character
1522 -- DEFAULT (D) Equivalent to 1, below. Also equivalent to
1523 -- /NOIDENTIFIER_CHARACTER_SET.
1525 -- 1 The basic character set is Latin-1. This character
1526 -- set is defined by ISO standard 8859, part 1. The lower
1527 -- half (character codes 16#00# ... 16#7F#) is identical
1528 -- to standard ASCII coding, but the upper half is used
1529 -- to represent additional characters. This includes
1530 -- extended letters used by European languages, such as
1531 -- the umlaut used in German.
1533 -- You may use any of these extended characters freely
1534 -- in character or string literals. In addition, the
1535 -- extended characters that represent letters can be
1536 -- used in identifiers.
1538 -- 2 Latin-2 letters allowed in identifiers, with uppercase
1539 -- and lowercase equivalence.
1541 -- 3 Latin-3 letters allowed in identifiers, with uppercase
1542 -- and lower case equivalence.
1544 -- 4 Latin-4 letters allowed in identifiers, with uppercase
1545 -- and lower case equivalence.
1547 -- PC IBM PC code page 437. This code page is the normal
1548 -- default for PCs in the U.S. It corresponds to the
1549 -- original IBM PC character set. This set has some, but
1550 -- not all, of the extended Latin-1 letters, but these
1551 -- letters do not have the same encoding as Latin-1. In
1552 -- this mode, these letters are allowed in identifiers
1553 -- with uppercase and lowercase equivalence.
1555 -- PC850 This code page (850) is a modification of 437 extended
1556 -- to include all the Latin-1 letters, but still not with
1557 -- the usual Latin-1 encoding. In this mode, all these
1558 -- letters are allowed in identifiers with uppercase and
1559 -- lower case equivalence.
1561 -- FULL_UPPER Any character in the range 80-FF allowed in
1562 -- identifiers, and all are considered distinct. In
1563 -- other words, there are no uppercase and lower case
1564 -- equivalences in this range.
1566 -- NO_UPPER No upper-half characters in the range 80-FF are
1567 -- allowed in identifiers. This gives Ada 95
1568 -- compatibility for identifier names.
1570 -- WIDE GNAT allows wide character codes to appear in
1571 -- character and string literals, and also optionally
1572 -- in identifiers. See the /WIDE_CHARACTER_ENCODING
1573 -- qualifier for information on encoding formats.
1575 S_GCC_IdentX : aliased constant S := "/NOIDENTIFIER_CHARACTER_SET " &
1577 -- NODOC (see /IDENTIFIER_CHARACTER_SET)
1579 S_GCC_Ignore : aliased constant S := "/IGNORE_REP_CLAUSES " &
1581 -- /IGNORE_REP_CLAUSES
1583 -- Causes all representation clauses to be ignored and treated as
1584 -- comments. Useful when compiling foreign code (for example when ASIS
1585 -- is used to analyze such code).
1587 S_GCC_Immed : aliased constant S := "/IMMEDIATE_ERRORS " &
1589 -- /NOIMMEDIATE_ERRORS (D)
1590 -- /IMMEDIATE_ERRORS
1592 -- Causes errors to be displayed as soon as they are encountered, rather
1593 -- than after compilation is terminated. If GNAT terminates prematurely
1594 -- or goes into an infinite loop, the last error message displayed may
1595 -- help to pinpoint the culprit.
1597 S_GCC_Inline : aliased constant S := "/INLINE=" &
1605 -- /INLINE[=keyword]
1607 -- Selects the level of inlining for your program. In the absence of this
1608 -- qualifier, GNAT does not attempt inlining across units and does not
1609 -- need to access the bodies of subprograms for which "pragma Inline" is
1610 -- specified if they are not in the current unit.
1612 -- The supported keywords are as follows:
1614 -- PRAGMA (D) Recognize and process "Inline" pragmas. However,
1615 -- for the inlining to actually occur, optimization
1616 -- must be enabled. This enables inlining across unit
1617 -- boundaries, that is, inlining a call in one unit of
1618 -- a subprogram declared in a with'ed unit. The compiler
1619 -- will access these bodies, creating an extra source
1620 -- dependency for the resulting object file, and where
1621 -- possible, the call will be inlined.
1623 -- This qualifier also turns on full optimization and
1624 -- requests GNAT to try to attempt automatic inlining
1625 -- of small subprograms within a unit.
1627 -- Specifying /OPTIMIZE=NONE will disable the main effect
1628 -- of this qualifier, but you may specify other
1629 -- optimization options, to get either lower
1630 -- (/OPTIMIZE=SOME) or higher (/OPTIMIZE=UNROLL_LOOPS)
1631 -- levels of optimization.
1633 -- FULL Front end inlining. The front end inlining activated
1634 -- by this switch is generally more extensive, and quite
1635 -- often more effective than the standard PRAGMA inlining
1636 -- mode. It will also generate additional dependencies.
1638 -- SUPPRESS Suppresses all inlining, even if other optimization
1639 -- or inlining switches are set.
1641 S_GCC_InlineX : aliased constant S := "/NOINLINE " &
1643 -- NODOC (see /INLINE)
1645 S_GCC_Intsrc : aliased constant S := "/INTERSPERSE_SOURCE " &
1648 -- /NO_INTERSPERSE_SOURCE (D)
1649 -- /INTERSPERSE_SOURCE
1651 -- Causes output from /XDEBUG or /EXPAND_SOURCE to be interspersed with
1652 -- lines from the original source file, output as comment lines with the
1653 -- associated line number.
1655 S_GCC_Just : aliased constant S := "/JUSTIFY_MESSAGES=#" &
1658 -- /NO_JUSTIFY_MESSAGES (D)
1659 -- /JUSTIFY_MESSAGES=nnn
1661 -- Causes error messages to be reformatted so that a message and all its
1662 -- continuation lines count as one warning or error in the statistics on
1663 -- total errors, and the message is broken down into lines (justified) so
1664 -- that no line is longer than nnn characters. The default message
1665 -- behavior (each message counted separately and not reformatted to fit
1666 -- a particular line length) can be obtained using /NO_JUSTIFY_MESSAGES.
1668 S_GCC_JustX : aliased constant S := "/NO_JUSTIFY_MESSAGES " &
1671 -- NODOC (see /JUSTIFY_MESSAGES)
1673 S_GCC_Length : aliased constant S := "/MAX_LINE_LENGTH=#" &
1675 -- /MAX_LINE_LENGTH=nnn
1677 -- Set maximum line length.
1678 -- The length of lines must not exceed the given value nnn.
1680 S_GCC_List : aliased constant S := "/LIST " &
1685 -- Cause a full listing of the file to be generated. In the case where
1686 -- a body is compiled, the corresponding spec is also listed, along
1687 -- with any subunits.
1689 S_GCC_Mapping : aliased constant S := "/MAPPING_FILE=<" &
1691 -- /MAPPING_FILE=file_name
1693 -- Use mapping file file_name
1695 -- A mapping file is a way to communicate to the compiler two mappings:
1696 -- from unit names to file names (without any directory information) and
1697 -- from file names to path names (with full directory information).
1698 -- These mappings are used by the compiler to short-circuit the path
1701 -- The use of mapping files is not required for correct operation of the
1702 -- compiler, but mapping files can improve efficiency, particularly when
1703 -- sources are read over a slow network connection. In normal operation,
1704 -- you need not be concerned with the format or use of mapping files,
1705 -- and /MAPPING_FILE is not a qualifier that you would use explicitly.
1706 -- It is intended only for use by automatic tools such as GNAT MAKE
1707 -- running under the project file facility. The description here of the
1708 -- format of mapping files is provided for completeness and for possible
1709 -- use by other tools.
1711 -- A mapping file is a sequence of sets of three lines. In each set, the
1712 -- first line is the unit name, in lower case, with "%s" appended for
1713 -- specifications and "%b" appended for bodies; the second line is the
1714 -- file name; and the third line is the path name.
1720 -- /gnat/project1/sources/main.2_ada
1722 -- When qualifier ?MAPPING_FILE is specified, the compiler will create in
1723 -- memory the two mappings from the specified file. If there is any
1724 -- problem (non existent file, truncated file or duplicate entries),
1725 -- no mapping will be created.
1727 -- Several /MAPPING_FILE qualifiers may be specified; however, only the
1728 -- last one on the command line will be taken into account.
1730 -- When using a project file, GNAT MAKE creates a temporary mapping file
1731 -- and communicates it to the compiler using this switch.
1733 S_GCC_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1740 -- /MESSAGES_PROJECT_FILE[=messages-option]
1742 -- Specifies the "verbosity" of the parsing of project files.
1743 -- messages-option may be one of the following:
1745 -- DEFAULT (D) No messages are output if there is no error or warning.
1747 -- MEDIUM A small number of messages are output.
1749 -- HIGH A great number of messages are output, most of them not
1750 -- being useful for the user.
1752 S_GCC_Nesting : aliased constant S := "/MAX_NESTING=#" &
1756 -- Set maximum level of nesting of constructs (including subprograms,
1757 -- loops, blocks, packages, and conditionals).
1758 -- The level of nesting must not exceed the given value nnn.
1759 -- A value of zero disable this style check (not enabled by default).
1761 S_GCC_Noadc : aliased constant S := "/NO_GNAT_ADC " &
1765 -- Cause the compiler to ignore any configuration pragmas file GNAT.ADC
1766 -- in the default directory. Implied by qualifier /PROJECT_FILE.
1767 -- Often used in conjunction with qualifier /CONFIGURATION_PRAGMAS_FILE.
1769 S_GCC_Noload : aliased constant S := "/NOLOAD " &
1773 -- Cause the compiler to operate in semantic check mode with full
1774 -- checking for all illegalities specified in the reference manual, but
1775 -- without generation of any source code (no object or ALI file
1778 -- Since dependent files must be accessed, you must follow the GNAT
1779 -- semantic restrictions on file structuring to operate in this mode:
1781 -- o The needed source files must be accessible.
1782 -- o Each file must contain only one compilation unit.
1783 -- o The file name and unit name must match.
1785 -- The output consists of error messages as appropriate. No object file
1786 -- or ALI file is generated. The checking corresponds exactly to the
1787 -- notion of legality in the Ada reference manual.
1789 -- Any unit can be compiled in semantics-checking-only mode, including
1790 -- units that would not normally be compiled (generic library units,
1791 -- subunits, and specifications where a separate body is present).
1793 S_GCC_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
1797 -- Do not look in the default directory for source files of the runtime.
1799 S_GCC_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
1803 -- Do not look for library files in the system default directory.
1805 S_GCC_Opt : aliased constant S := "/OPTIMIZE=" &
1807 "-O2,!-O0,!-O1,!-O3 " &
1809 "-O0,!-O1,!-O2,!-O3 " &
1811 "-O1,!-O0,!-O2,!-O3 " &
1813 "-Os,!-O0,!-O1,!-O2,!-O3 " &
1815 "-O1,!-O0,!-O2,!-O3 " &
1818 "NO_STRICT_ALIASING " &
1819 "-fno-strict-aliasing " &
1821 "-O3,!-O0,!-O1,!-O2";
1823 -- /OPTIMIZE[=(keyword[,...])]
1825 -- Selects the level of optimization for your program. The supported
1826 -- keywords are as follows:
1828 -- ALL (D) Perform most optimizations, including those that
1829 -- may be expensive.
1831 -- NONE Do not do any optimizations. Same as /NOOPTIMIZE.
1833 -- SOME Perform some optimizations, but omit ones that
1834 -- are costly in compilation time.
1836 -- SPACE Optimize space usage
1838 -- DEVELOPMENT Same as SOME.
1840 -- INLINING Full optimization, and also attempt automatic inlining
1841 -- of small subprograms within a unit
1843 -- UNROLL_LOOPS Try to unroll loops. This keyword may be specified
1844 -- with any keyword above other than NONE. Loop
1845 -- unrolling usually, but not always, improves the
1846 -- performance of programs.
1848 -- NO_STRICT_ALIASING
1849 -- Suppress aliasing analysis. When optimization is
1850 -- enabled (ALL or SOME above), the compiler assumes
1851 -- that pointers do in fact point to legitimate values
1852 -- of the pointer type (allocated from the proper pool).
1853 -- If this assumption is violated, e.g. by the use of
1854 -- unchecked conversion, then it may be necessary to
1855 -- suppress this assumption using this keyword (which
1856 -- may be specified only in conjunction with any
1857 -- keyword above, other than NONE).
1859 S_GCC_OptX : aliased constant S := "/NOOPTIMIZE " &
1860 "-O0,!-O1,!-O2,!-O3";
1861 -- NODOC (see /OPTIMIZE)
1863 S_GCC_Output : aliased constant S := "/OUTPUT_FILE=<" &
1865 -- /OUTPUT_FILE=fname
1867 -- This has the same effect as /LIST except that the output is written
1868 -- to a file instead of to standard output. If the given fname
1869 -- does not start with a period, then it is the full name of the file
1870 -- to be written. If fname starts with a period, the name of the file
1871 -- is the concatenation of to the name of the file being compiled with
1872 -- fname where the period is replace by an underline. For example, if
1873 -- file xyz.adb is compiled with -gnatl=.lst, then the output is written
1874 -- to file xyz.adb_lst.
1876 S_GCC_Polling : aliased constant S := "/POLLING " &
1881 -- Enable polling. See the description of pragma Polling in the GNAT
1882 -- Reference Manual for full details.
1884 S_GCC_Project : aliased constant S := "/PROJECT_FILE=<" &
1886 -- /PROJECT_FILE=filename
1888 -- Specifies the main project file to be used. The project files rooted
1889 -- at the main project file will be parsed before the invocation of the
1890 -- compiler. The source and object directories to be searched will be
1891 -- communicated to the compiler through logical names
1892 -- ADA_PRJ_INCLUDE_FILE and ADA_PRJ_OBJECTS_FILE.
1894 S_GCC_Psta : aliased constant S := "/PRINT_STANDARD " &
1898 -- cause the compiler to output a representation of package Standard
1899 -- in a form very close to standard Ada. It is not quite possible to
1900 -- do this and remain entirely Standard (since new numeric base types
1901 -- cannot be created in standard Ada), but the output is easily
1902 -- readable to any Ada programmer, and is useful to determine the
1903 -- characteristics of target dependent types in package Standard.
1905 S_GCC_Report : aliased constant S := "/REPORT_ERRORS=" &
1916 -- /NOREPORT_ERRORS (D)
1917 -- /REPORT_ERRORS[=(keyword[,...])]
1919 -- Change the way errors are reported. The following keywords are
1922 -- VERBOSE (D) Verbose mode. Full error output with source lines
1925 -- BRIEF Generate the brief format error messages to
1926 -- SYS$OUTPUT as well as the verbose format message or
1929 -- FULL Normally, the compiler suppresses error messages that
1930 -- are likely to be redundant. This keyword causes all
1931 -- error messages to be generated. One particular effect
1932 -- is for the case of references to undefined variables.
1933 -- If a given variable is referenced several times, the
1934 -- normal format of messages produces one error. With
1935 -- FULL, each undefined reference produces a separate
1938 -- IMMEDIATE Normally, the compiler saves up error messages and
1939 -- generates them at the end of compilation in proper
1940 -- sequence. This keyword causes error messages to be
1941 -- generated as soon as they are detected. The use of
1942 -- IMMEDIATE usually causes error messages to be
1943 -- generated out of sequence. Use it when the compiler
1944 -- blows up due to an internal error. In this case, the
1945 -- error messages may be lost. Sometimes blowups are
1946 -- the result of mishandled error messages, so you may
1947 -- want to run with this keyword to determine whether
1948 -- any error messages were generated.
1950 -- DEFAULT Turn off VERBOSE and BRIEF. Same as /NOREPORT_ERRORS.
1952 S_GCC_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
1954 -- NODOC (see /REPORT_ERRORS)
1956 S_GCC_Repinfo : aliased constant S := "/REPRESENTATION_INFO=" &
1973 -- /NOREPRESENTATION_INFO (D)
1974 -- /REPRESENTATION_INFO[=(keyword[,...])]
1976 -- This qualifier controls output from the compiler of a listing showing
1977 -- representation information for declared types and objects.
1979 -- ARRAYS (D) Size and alignment information is listed for
1980 -- declared array and record types.
1982 -- ARRAYS_FILE Similar to ARRAYS, but the output is to a file
1983 -- with the name 'file_rep' where 'file' is the name
1984 -- of the corresponding source file.
1986 -- NONE no information is output (equivalent to omitting
1987 -- the /REPRESENTATION_INFO qualifiers).
1989 -- OBJECTS Size and alignment information is listed for all
1990 -- declared types and objects.
1992 -- OBJECTS_FILE Similar to OBJECTS, but the output is to a file
1993 -- with the name 'file_rep' where 'file' is the name
1994 -- of the corresponding source file.
1996 -- SYMBOLIC Symbolic expression information for values that
1997 -- are computed at run time for variant records.
1999 -- SYMBOLIC_FILE Similar to SYMBOLIC, but the output is to a file
2000 -- with the name 'file_rep' where 'file' is the name
2001 -- of the corresponding source file.
2003 -- DEFAULT Equivalent to ARRAYS.
2005 S_GCC_RepinfX : aliased constant S := "/NOREPRESENTATION_INFO " &
2007 -- NODOC (see /REPRESENTATION_INFO)
2009 S_GCC_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
2011 -- /RUNTIME_SYSTEM=xxx
2013 -- Build against an alternate runtime system named xxx or RTS-xxx.
2015 S_GCC_Search : aliased constant S := "/SEARCH=*" &
2017 -- /SEARCH=(directory[,...])
2019 -- When looking for source files also look in directories specified.
2021 S_GCC_Style : aliased constant S := "/STYLE_CHECKS=" &
2050 "DOS_LINE_ENDINGS " &
2072 "STANDARD_CASING " &
2074 "ORDERED_SUBPROGRAMS " &
2082 "STATEMENTS_AFTER_THEN_ELSE " &
2086 "UNNECESSARY_BLANK_LINES " &
2090 -- /NOSTYLE_CHECKS (D)
2091 -- /STYLE_CHECKS[=(keyword,[...])]
2093 -- Normally, GNAT permits any code layout consistent with the reference
2094 -- manual requirements. This qualifier imposes style checking on the
2095 -- input source code. The following keywords are supported:
2097 -- ALL_BUILTIN (D) Equivalent to the following list of options:
2098 -- 3, ATTRIBUTE, BLANKS, COMMENTS, END, VTABS,
2099 -- HTABS, IF_THEN, KEYWORD, LAYOUT, LINE_LENGTH,
2100 -- PRAGMA, REFERENCES, SPECS, TOKEN.
2102 -- 1 .. 9 Specify indentation level from 1 to 9.
2103 -- The general style of required indentation is as
2104 -- specified by the examples in the Ada Reference
2105 -- Manual. Full line comments must be aligned with
2106 -- the -- starting on a column that is a multiple
2107 -- of the alignment level.
2109 -- ATTRIBUTE Check attribute casing.
2110 -- Attribute names, including the case of keywords
2111 -- such as digits used as attributes names,
2112 -- must be written in mixed case, that is,
2113 -- the initial letter and any letter following an
2114 -- underscore must be uppercase.
2115 -- All other letters must be lowercase.
2117 -- ARRAY_INDEXES Check indexes of array attributes.
2118 -- For array attributes First, Last, Range,
2119 -- or Length, the index number must be omitted
2120 -- for one-dimensional arrays and is required
2121 -- for multi-dimensional arrays.
2123 -- BLANKS Blanks not allowed at statement end.
2124 -- Trailing blanks are not allowed at the end of
2125 -- statements. The purpose of this rule, together
2126 -- with option HTABS (no horizontal tabs), is to
2127 -- enforce a canonical format for the use of
2128 -- blanks to separate source tokens.
2130 -- COMMENTS Check comments.
2131 -- Comments must meet the following set of rules:
2133 -- * The "--" that starts the column must either
2134 -- start in column one, or else at least one
2135 -- blank must precede this sequence.
2137 -- * Comments that follow other tokens on a line
2138 -- must have at least one blank following the
2139 -- "--" at the start of the comment.
2141 -- * Full line comments must have two blanks
2142 -- following the "--" that starts the comment,
2143 -- with the following exceptions.
2145 -- * A line consisting only of the "--"
2146 -- characters, possibly preceded by blanks is
2149 -- * A comment starting with "--x" where x is
2150 -- a special character is permitted. This
2151 -- allows proper processing of the output
2152 -- generated by specialized tools including
2153 -- gnatprep (where --! is used) and the SPARK
2154 -- annnotation language (where --# is used).
2155 -- For the purposes of this rule, a special
2156 -- character is defined as being in one of the
2157 -- ASCII ranges 16#21#..16#2F# or
2160 -- * A line consisting entirely of minus signs,
2161 -- possibly preceded by blanks, is permitted.
2162 -- This allows the construction of box
2163 -- comments where lines of minus signs are
2164 -- used to form the top and bottom of the box.
2166 -- * If a comment starts and ends with "--" is
2167 -- permitted as long as at least one blank
2168 -- follows the initial "--". Together with
2169 -- the preceding rule, this allows the
2170 -- construction of box comments, as shown in
2171 -- the following example:
2173 -- ---------------------------
2174 -- -- This is a box comment --
2175 -- ---------------------------
2177 -- DOS_LINE_ENDINGS Check that no DOS line terminators are present
2178 -- All lines must be terminated by a single
2179 -- ASCII.LF character. In particular the DOS line
2180 -- terminator sequence CR / LF is not allowed).
2182 -- END Check end/exit labels.
2183 -- Optional labels on end statements ending
2184 -- subprograms and on exit statements exiting
2185 -- named loops, are required to be present.
2187 -- GNAT Enforces a set of style conventions that
2188 -- match the style used in the GNAT source code.
2189 -- This maybe useful when developing code that
2190 -- is eventually intended to be incorporated into
2191 -- GNAT. For further details, see GNAT sources.
2193 -- HTABS No horizontal tabs.
2194 -- Horizontal tab characters are not permitted in
2195 -- the source text. Together with the BLANKS
2196 -- (no blanks at end of line) option, this
2197 -- enforces a canonical form for the use of blanks
2198 -- to separate source tokens.
2200 -- IF_THEN Check if-then layout.
2201 -- The keyword then must appear either on the
2202 -- same line as the corresponding if, or on a line
2203 -- on its own, lined up under the if with at least
2204 -- one non-blank line in between containing all or
2205 -- part of the condition to be tested.
2207 -- KEYWORD Check keyword casing.
2208 -- All keywords must be in lower case (with the
2209 -- exception of keywords such as digits used as
2210 -- attribute names to which this check does not
2213 -- LAYOUT Check layout.
2214 -- Layout of statement and declaration constructs
2215 -- must follow the recommendations in the Ada
2216 -- Reference Manual, as indicated by the form of
2217 -- the syntax rules. For example an else keyword
2218 -- must be lined up with the corresponding if
2221 -- There are two respects in which the style rule
2222 -- enforced by this check option are more liberal
2223 -- than those in the Ada Reference Manual.
2224 -- First in the case of record declarations,
2225 -- it is permissible to put the record keyword on
2226 -- the same line as the type keyword, and then
2227 -- the end in end record must line up under type.
2228 -- For example, either of the following two
2229 -- layouts is acceptable:
2242 -- Second, in the case of a block statement,
2243 -- a permitted alternative is to put the block
2244 -- label on the same line as the declare or begin
2245 -- keyword, and then line the end keyword up under
2246 -- the block label. For example both the following
2252 -- A : Integer := 3;
2259 -- A : Integer := 3;
2264 -- The same alternative format is allowed for
2265 -- loops. For example, both of the following are
2270 -- Clear : while J < 10 loop
2275 -- while J < 10 loop
2281 -- LINE_LENGTH Check maximum line length.
2282 -- The length of source lines must not exceed 79
2283 -- characters, including any trailing blanks
2284 -- The value of 79 allows convenient display on
2285 -- an 80 character wide device or window, allowing
2286 -- for possible special treatment of 80 character
2289 -- NONE Clear any previously set style checks.
2291 -- ORDERED_SUBPROGRAMS Check order of subprogram bodies.
2292 -- All subprogram bodies in a given scope (e.g.
2293 -- a package body) must be in alphabetical order.
2294 -- The ordering rule uses normal Ada rules for
2295 -- comparing strings, ignoring casing of letters,
2296 -- except that if there is a trailing numeric
2297 -- suffix, then the value of this suffix is used
2298 -- in the ordering (e.g. Junk2 comes before
2301 -- PRAGMA Check pragma casing.
2302 -- Pragma names must be written in mixed case,
2303 -- that is, the initial letter and any letter
2304 -- following an underscore must be uppercase.
2305 -- All other letters must be lowercase.
2307 -- REFERENCES Check references.
2308 -- All identifier references must be cased in the
2309 -- same way as the corresponding declaration.
2310 -- No specific casing style is imposed on
2311 -- identifiers. The only requirement is for
2312 -- consistency of references with declarations.
2314 -- SPECS Check separate specs.
2315 -- Separate declarations ("specs") are required
2316 -- for subprograms (a body is not allowed to serve
2317 -- as its own declaration). The only exception is
2318 -- that parameterless library level procedures are
2319 -- not required to have a separate declaration.
2320 -- This exception covers the most frequent form of
2321 -- main program procedures.
2323 -- STANDARD_CASING Check casing of entities in Standard.
2324 -- Any identifier from Standard must be cased to
2325 -- match the presentation in the Ada Reference
2326 -- Manual (for example, Integer and ASCII.NUL).
2328 -- TOKEN Check token spacing.
2329 -- The following token spacing rules are enforced:
2331 -- * The keywords abs and not must be followed
2334 -- * The token => must be surrounded by spaces.
2336 -- * The token <> must be preceded by a space or
2337 -- a left parenthesis.
2339 -- * Binary operators other than ** must be
2340 -- surrounded by spaces. There is no
2341 -- restriction on the layout of the ** binary
2344 -- * Colon must be surrounded by spaces.
2346 -- * Colon-equal (assignment) must be surrounded
2349 -- * Comma must be the first non-blank character
2350 -- on the line, or be immediately preceded by
2351 -- a non-blank character, and must be followed
2354 -- * If the token preceding a left paren ends
2355 -- with a letter or digit, then a space must
2356 -- separate the two tokens.
2358 -- * A right parenthesis must either be the
2359 -- first non-blank character on a line, or it
2360 -- must be preceded by a non-blank character.
2362 -- * A semicolon must not be preceded by
2363 -- a space, and must not be followed by
2364 -- a non-blank character.
2366 -- * A unary plus or minus may not be followed
2369 -- * A vertical bar must be surrounded by
2372 -- In the above rules, appearing in column one is
2373 -- always permitted, that is, counts as meeting
2374 -- either a requirement for a required preceding
2375 -- space, or as meeting a requirement for no
2378 -- Appearing at the end of a line is also always
2379 -- permitted, that is, counts as meeting either
2380 -- a requirement for a following space,
2381 -- or as meeting a requirement for no following
2384 -- UNNECESSARY_BLANK_LINES
2385 -- Check for unnecessary blank lines.
2386 -- A blank line is considered unnecessary if it
2387 -- appears at the end of the file, or if more
2388 -- than one blank line occurs in sequence.
2390 -- VTABS No form feeds or vertical tabs.
2391 -- Form feeds or vertical tab characters are not
2392 -- permitted in the source text.
2394 -- XTRA_PARENS Check for the use of an unnecessary extra
2395 -- level of parentheses (C - style) around
2396 -- conditions in if statements, while statements
2397 -- and exit statements.
2399 S_GCC_StyleX : aliased constant S := "/NOSTYLE_CHECKS " &
2401 -- NODOC (see /STYLE_CHECKS)
2403 S_GCC_Symbol : aliased constant S := "/SYMBOL_PREPROCESSING=" & '"' &
2405 -- /SYMBOL_PREPROCESSING="symbol=value"
2407 -- Define or redefine a preprocessing symbol, associated with value.
2408 -- If "=value" is not specified, then the value of the symbol is True.
2409 -- A symbol is an identifier, following normal Ada (case-insensitive)
2410 -- rules for its syntax, and value is any sequence (including an empty
2411 -- sequence) of characters from the set (letters, digits, period,
2412 -- underline). Ada reserved words may be used as symbols, with the
2413 -- exceptions of "if", "else", "elsif", "end", "and", "or" and "then".
2415 -- A symbol declared with this qualifier on the command line replaces
2416 -- a symbol with the same name either in a definition file or specified
2417 -- with a switch -D in the preprocessor data file.
2419 -- This qualifier is similar to qualifier /ASSOCIATE of
2420 -- GNAT PREPROCESSING.
2422 S_GCC_Syntax : aliased constant S := "/SYNTAX_ONLY " &
2424 -- /NOSYNTAX_ONLY (D)
2427 -- Run GNAT in syntax checking only mode. You can check a series of
2428 -- files in a single command, and can use wild cards to specify such a
2431 -- You may use other qualifiers in conjunction with this qualifier. In
2432 -- particular, /LIST and /REPORT_ERRORS=VERBOSE are useful to control the
2433 -- format of any generated error messages.
2435 -- The output is simply the error messages, if any. No object file or ALI
2436 -- file is generated by a syntax-only compilation. Also, no units other
2437 -- than the one specified are accessed. For example, if a unit "X" with's
2438 -- a unit "Y", compiling unit "X" in syntax check only mode does not
2439 -- access the source file containing unit "Y".
2441 -- Normally, GNAT allows only a single unit in a source file. However,
2442 -- this restriction does not apply in syntax-check-only mode, and it is
2443 -- possible to check a file containing multiple compilation units
2444 -- concatenated together. This is primarily used by the GNAT CHOP
2447 S_GCC_Table : aliased constant S := "/TABLE_MULTIPLIER=#" &
2449 -- /TABLE_MULTIPLIER=nnn
2451 -- All compiler tables start at nnn times usual starting size.
2453 S_GCC_Trace : aliased constant S := "/TRACE_UNITS " &
2458 -- This switch that does for the frontend what /VERBOSE does for the
2459 -- backend. The system prints the name of each unit, either a compilation
2460 -- unit or nested unit, as it is being analyzed.
2462 S_GCC_Tree : aliased constant S := "/TREE_OUTPUT " &
2467 -- Cause GNAT to write the internal tree for a unit to a file (with the
2468 -- filetype ATB for a body or ATS for a spec). This is not normally
2469 -- required, but is used by separate analysis tools. Typically these
2470 -- tools do the necessary compilations automatically, so you should never
2471 -- have to specify this switch in normal operation.
2473 S_GCC_Trys : aliased constant S := "/TRY_SEMANTICS " &
2478 -- In normal operation mode the compiler first parses the program and
2479 -- determines if there are any syntax errors. If there are, appropriate
2480 -- error messages are generated and compilation is immediately
2481 -- terminated. This qualifier tells GNAT to continue with semantic
2482 -- analysis even if syntax errors have been found. This may enable the
2483 -- detection of more errors in a single run. On the other hand, the
2484 -- semantic analyzer is more likely to encounter some internal fatal
2485 -- error when given a syntactically invalid tree.
2487 S_GCC_Units : aliased constant S := "/UNITS_LIST " &
2489 -- /NOUNITS_LIST (D)
2492 -- Print a list of units required by this compilation on SYS$OUTPUT. The
2493 -- listing includes all units on which the unit being compiled depends
2494 -- either directly or indirectly.
2496 S_GCC_Unique : aliased constant S := "/UNIQUE_ERROR_TAG " &
2498 -- /NOUNIQUE_ERROR_TAG (D)
2499 -- /UNIQUE_ERROR_TAG
2501 -- Tag compiler error messages with the string "error: ".
2503 S_GCC_Upcase : aliased constant S := "/UPPERCASE_EXTERNALS " &
2505 -- /NOUPPERCASE_EXTERNALS (D)
2506 -- /UPPERCASE_EXTERNALS
2508 -- Fold default and explicit external names in pragmas Import and Export
2509 -- to uppercase for compatibility with the default behavior of DEC C.
2511 S_GCC_Valid : aliased constant S := "/VALIDITY_CHECKING=" &
2556 -- /VALIDITY_CHECKING[=(keyword,[...])]
2558 -- Control level of validity checking.
2560 -- DEFAULT (D) In this mode checks are made to prevent
2561 -- erroneous behavior in accordance with the RM.
2562 -- Notably extra checks may be needed for case
2563 -- statements and subscripted array assignments.
2565 -- NONE No special checks for invalid values are
2566 -- performed. This means that references to
2567 -- uninitialized variables can cause erroneous
2568 -- behavior from constructs like case statements
2569 -- and subscripted array assignments. In this
2570 -- mode, invalid values can lead to erroneous
2573 -- FULL Every assignment is checked for validity, so
2574 -- that it is impossible to assign invalid values.
2575 -- The RM specifically allows such assignments,
2576 -- but in this mode, invalid values can never be
2577 -- assigned, and an attempt to perform such an
2578 -- assignment immediately raises Constraint_Error.
2579 -- This behavior is allowed (but not required) by
2580 -- the RM. This mode is intended as a debugging aid,
2581 -- and may be useful in helping to track down
2582 -- uninitialized variables. It may be useful to
2583 -- use this in conjunction with the Normalize_Scalars
2584 -- pragma which attempts to initialize with invalid
2585 -- values where possible.
2587 S_GCC_Verbose : aliased constant S := "/VERBOSE " &
2592 -- Show commands generated by the GCC driver. Normally used only for
2593 -- debugging purposes or if you need to be sure what version of the
2594 -- compiler you are executing.
2596 S_GCC_Verb_Asm : aliased constant S := "/VERBOSE_ASM " &
2597 "-S,-verbose_asm,!-c";
2601 -- Use to cause the assembler source file to be generated, using S as the
2602 -- filetype, instead of the object file. This may be useful if you need
2603 -- to examine the generated assembly code.
2605 S_GCC_Warn : aliased constant S := "/WARNINGS=" &
2607 "!-gnatws,!-gnatwe " &
2618 "FAILING_ASSERTIONS " &
2620 "NO_FAILING_ASSERTIONS " &
2622 "BAD_FIXED_VALUES " &
2624 "NO_BAD_FIXED_VALUES " &
2630 "MISSING_COMPONENT_CLAUSES " &
2632 "NOMISSING_COMPONENT_CLAUSES " &
2634 "IMPLICIT_DEREFERENCE " &
2636 "NO_IMPLICIT_DEREFERENCE " &
2640 "UNREFERENCED_FORMALS " &
2642 "NOUNREFERENCED_FORMALS " &
2644 "UNRECOGNIZED_PRAGMAS " &
2646 "NOUNRECOGNIZED_PRAGMAS " &
2654 "NOIMPLEMENTATION " &
2660 "CONSTANT_VARIABLES " &
2662 "NOCONSTANT_VARIABLES " &
2670 "NOMODIFIED_UNREF " &
2678 "OUT_PARAM_UNREF " &
2680 "NOOUT_PARAM_UNREF " &
2682 "INEFFECTIVE_INLINE " &
2684 "NOINEFFECTIVE_INLINE " &
2688 "NOMISSING_PARENS " &
2696 "NOOBJECT_RENAMES " &
2705 "-Wuninitialized " &
2710 "VARIABLES_UNINITIALIZED " &
2712 "NOVARIABLES_UNINITIALIZED " &
2714 "LOWBOUND_ASSUMED " &
2716 "NOLOWBOUND_ASSUMED " &
2718 "IMPORT_EXPORT_PRAGMAS " &
2720 "NOIMPORT_EXPORT_PRAGMAS " &
2722 "LOCAL_RAISE_HANDLING " &
2724 "NOLOCAL_RAISE_HANDLING " &
2726 "ADA_2005_COMPATIBILITY " &
2728 "NOADA_2005_COMPATIBILITY " &
2730 "UNCHECKED_CONVERSIONS " &
2732 "NOUNCHECKED_CONVERSIONS " &
2736 -- Suppress the output of all warning messages from the GNAT front end.
2737 -- Note that it does not suppress warnings from the gcc back end.
2739 -- /WARNINGS[=(keyword[,...])]
2741 -- In addition to error messages, corresponding to illegalities as
2742 -- defined in the reference manual, the compiler detects two kinds of
2743 -- warning situations. First, the compiler considers some constructs
2744 -- suspicious and generates a warning message to alert you to a possible
2745 -- error. Second, if the compiler detects a situation that is sure to
2746 -- raise an exception at runtime, it generates a warning message.
2748 -- You may specify the following keywords to change this behavior:
2750 -- DEFAULT (D) The default behavior above.
2752 -- ALL Activate all optional warnings.
2753 -- Activates most optional warning messages,
2754 -- see remaining list in this section for
2755 -- details on optional warning messages that
2756 -- can be individually controlled.
2757 -- The warnings that are not turned on by
2758 -- this option are BIASED_ROUNDING,
2759 -- IMPLICIT_DEREFERENCE, HIDING and
2760 -- ELABORATION. All other optional Ada
2761 -- warnings are turned on.
2763 -- NOALL Suppress all optional errors.
2764 -- Suppresses all optional warning messages
2765 -- that can be activated by option ALL.
2767 -- ALL_GCC Request additional messages from the GCC
2768 -- backend. Most of these are not relevant
2771 -- CONDITIONALS Activate warnings for conditional
2772 -- Expressions used in tests that are known
2773 -- to be True or False at compile time. The
2774 -- default is that such warnings are not
2777 -- NOCONDITIONALS Suppress warnings for conditional
2778 -- expressions used in tests that are known
2779 -- to be True or False at compile time.
2781 -- IMPLICIT_DEREFERENCE Activate warnings on implicit dereferencing.
2782 -- The use of a prefix of an access type in an
2783 -- indexed component, slice, or selected component
2784 -- without an explicit .all will generate
2785 -- a warning. With this warning enabled, access
2786 -- checks occur only at points where an explicit
2787 -- .all appears in the source code (assuming no
2788 -- warnings are generated as a result of this
2789 -- option). The default is that such warnings are
2790 -- not generated. Note that /WARNINGS=ALL does not
2791 -- affect the setting of this warning option.
2793 -- NOIMPLICIT_DEREFERENCE Suppress warnings on implicit dereferencing.
2794 -- in indexed components, slices, and selected
2797 -- ELABORATION Activate warnings on missing pragma
2798 -- Elaborate_All statements. The default is
2799 -- that such warnings are not generated.
2801 -- NOELABORATION Suppress warnings on missing pragma
2802 -- Elaborate_All statements.
2804 -- ERRORS Warning messages are to be treated as errors.
2805 -- The warning string still appears, but the
2806 -- warning messages are counted as errors, and
2807 -- prevent the generation of an object file.
2809 -- HIDING Activate warnings on hiding declarations.
2810 -- A declaration is considered hiding if it is
2811 -- for a non-overloadable entity, and it declares
2812 -- an entity with the same name as some other
2813 -- entity that is directly or use-visible. The
2814 -- default is that such warnings are not
2817 -- NOHIDING Suppress warnings on hiding declarations.
2819 -- IMPLEMENTATION Activate warnings for a with of an internal
2820 -- GNAT implementation unit, defined as any unit
2821 -- from the Ada, Interfaces, GNAT, DEC or
2822 -- System hierarchies that is not documented in
2823 -- either the Ada Reference Manual or the GNAT
2824 -- Programmer's Reference Manual. Such units are
2825 -- intended only for internal implementation
2826 -- purposes and should not be with'ed by user
2827 -- programs. The default is that such warnings
2830 -- NOIMPLEMENTATION Disables warnings for a with of an internal
2831 -- GNAT implementation unit.
2833 -- INEFFECTIVE_INLINE Activate warnings on ineffective pragma Inlines
2834 -- Activates warnings for failure of front end
2835 -- inlining (activated by /INLINE=FULL) to inline
2836 -- a particular call. There are many reasons for
2837 -- not being able to inline a call, including most
2838 -- commonly that the call is too complex to
2839 -- inline. This warning can also be turned on
2840 -- using /INLINE=FULL.
2842 -- NOINEFFECTIVE_INLINE Suppress warnings on ineffective pragma Inlines
2843 -- Suppresses warnings on ineffective pragma
2844 -- Inlines. If the inlining mechanism cannot
2845 -- inline a call, it will simply ignore the
2846 -- request silently.
2848 -- MISSING_COMPONENT_CLAUSES
2849 -- Activate warnings for cases when there are
2850 -- component clauses for a record type, but not
2851 -- for every component of the record.
2853 -- NOMISSING_COMPONENT_CLAUSES
2854 -- Suppress warnings for cases when there are
2855 -- missing component clauses for a record type.
2858 -- Activate warnings for cases where parentheses
2859 -- are not used and the result is potential
2860 -- ambiguity from a reader's point of view.
2861 -- For example (not a > b) when a and b are
2862 -- modular means (not (a) > b) and very likely
2863 -- the programmer intended (not (a > b)).
2866 -- Suppress warnings for cases where parentheses
2867 -- are not used and the result is potential
2868 -- ambiguity from a reader's point of view.
2870 -- MODIFIED_UNREF Activates warnings for variables that are
2871 -- assigned (using an initialization value or with
2872 -- one or more assignment statements) but whose
2873 -- value is never read. The warning is suppressed
2874 -- for volatile variables and also for variables
2875 -- that are renamings of other variables or for
2876 -- which an address clause is given. This warning
2877 -- can also be turned on using /WARNINGS/OPTIONAL.
2879 -- NOMODIFIED_UNREF Disables warnings for variables that are
2880 -- assigned or initialized, but never read.
2882 -- NORMAL Sets normal warning mode, in which enabled
2883 -- warnings are issued and treated as warnings
2884 -- rather than errors. This is the default mode.
2885 -- It can be used to cancel the effect of an
2886 -- explicit /WARNINGS=SUPPRESS or
2887 -- /WARNINGS=ERRORS. It also cancels the effect
2888 -- of the implicit /WARNINGS=ERRORS that is
2889 -- activated by the use of /STYLE=GNAT.
2891 -- OBSOLESCENT Activates warnings for calls to subprograms
2892 -- marked with pragma Obsolescent and for use of
2893 -- features in Annex J of the Ada Reference
2894 -- Manual. In the case of Annex J, not all
2895 -- features are flagged. In particular use of the
2896 -- renamed packages (like Text_IO), use of package
2897 -- ASCII and use of the attribute 'Constrained are
2898 -- not flagged, since these are very common and
2899 -- would generate many annoying positive warnings.
2900 -- The default is that such warnings are not
2903 -- NOOBSOLESCENT Disables warnings on use of obsolescent
2906 -- OBJECT_RENAME Activate warnings for non limited objects
2907 -- renaming parameterless functions.
2909 -- NOOBJECT_RENAME Suppress warnings for non limited objects
2910 -- renaming parameterless functions.
2912 -- OPTIONAL Equivalent to ALL.
2914 -- NOOPTIONAL Equivalent to NOALL.
2916 -- OVERLAYS Activate warnings for possibly unintended
2917 -- initialization effects of defining address
2918 -- clauses that cause one variable to overlap
2919 -- another. The default is that such warnings
2922 -- NOOVERLAYS Suppress warnings on possibly unintended
2923 -- initialization effects of defining address
2924 -- clauses that cause one variable to overlap
2927 -- REDUNDANT Activate warnings for redundant constructs.
2928 -- In particular assignments of a variable to
2929 -- itself, and a type conversion that converts
2930 -- an object to its own type. The default
2931 -- is that such warnings are not generated.
2933 -- NOREDUNDANT Suppress warnings for redundant constructs.
2935 -- SUPPRESS Completely suppresse the output of all warning
2936 -- messages. Same as /NOWARNINGS.
2938 -- UNCHECKED_CONVERSIONS Activates warnings on unchecked conversions.
2939 -- Causes warnings to be generated for
2940 -- unchecked conversions when the two types are
2941 -- known at compile time to have different sizes.
2942 -- The default is that such warnings are
2945 -- NOUNCHECKED_CONVERSIONS Suppress warnings for unchecked conversions.
2947 -- UNINITIALIZED Generate warnings for uninitialized variables.
2948 -- This is a GCC option, not an Ada option.
2949 -- You must also specify the /OPTIMIZE qualifier
2950 -- with a value other than NONE (in other words,
2951 -- this keyword works only if optimization is
2954 -- UNREFERENCED_FORMALS Activate warnings on unreferenced formals.
2955 -- Causes a warning to be generated if a formal
2956 -- parameter is not referenced in the body of
2957 -- the subprogram. This warning can also be turned
2958 -- on using option ALL or UNUSED.
2960 -- NOUNREFERENCED_FORMALS Suppress warnings on unreferenced formals.
2961 -- Suppresses warnings for unreferenced formal
2962 -- parameters. Note that the combination UNUSED
2963 -- followed by NOUNREFERENCED_FORMALS has the
2964 -- effect of warning on unreferenced entities
2965 -- other than subprogram formals.
2967 -- UNUSED Activates warnings to be generated for entities
2968 -- that are defined but not referenced, and for
2969 -- units that are with'ed and not referenced. In
2970 -- the case of packages, a warning is also
2971 -- generated if no entities in the package are
2972 -- referenced. This means that if the package
2973 -- is referenced but the only references are in
2974 -- use clauses or renames declarations, a warning
2975 -- is still generated. A warning is also generated
2976 -- for a generic package that is with'ed but never
2977 -- instantiated. In the case where a package or
2978 -- subprogram body is compiled, and there is a
2979 -- with on the corresponding spec that is only
2980 -- referenced in the body, a warning is also
2981 -- generated, noting that the with can be moved
2982 -- to the body. The default is that such warnings
2983 -- are not generated.
2985 -- NOUNUSED Suppress warnings for unused entities and
2988 -- VARIABLES_UNINITIALIZED Activates warnings on unassigned variables.
2989 -- Causes warnings to be generated when a variable
2990 -- is accessed which may not be properly
2992 -- The default is that such warnings are
2995 -- NOVARIABLES_UNINITIALIZED Suppress warnings for uninitialized
2998 S_GCC_WarnX : aliased constant S := "/NOWARNINGS " &
3000 -- NODOC (see /WARNINGS)
3002 S_GCC_No_Back : aliased constant S := "/NO_BACK_END_WARNINGS " &
3004 -- /NO_BACK_END_WARNINGS
3006 -- Inhibit all warning messages of the GCC back-end.
3008 S_GCC_Wide : aliased constant S := "/WIDE_CHARACTER_ENCODING=" &
3021 -- /NOWIDE_CHARACTER_ENCODING (D)
3022 -- /WIDE_CHARACTER_ENCODING[=encode-type]
3024 -- Specifies the mechanism used to encode wide characters. 'encode-type'
3025 -- is one of the following:
3027 -- BRACKETS (D) A wide character is encoded as ["xxxx"] where XXXX
3028 -- are four hexadecimal digits representing the coding
3029 -- ('Pos value) of the character in type
3030 -- Wide_Character. The hexadecimal digits may use upper
3031 -- or lower case letters.
3033 -- This notation can also be used for upper half
3034 -- Character values using the format ["xx"] where XX is
3035 -- two hexadecimal digits representing the coding ('Pos
3036 -- value) of the character in type Character (or
3037 -- Wide_Character). The hexadecimal digits may use upper
3040 -- NONE No wide characters are allowed. Same
3041 -- as /NOWIDE_CHARCTER_ENCODING.
3043 -- HEX In this encoding, a wide character is represented by
3044 -- the following five character sequence: ESC a b c d
3045 -- Where 'a', 'b', 'c', and 'd' are the four hexadecimal
3046 -- characters (using uppercase letters) of the wide
3047 -- character code. For example, ESC A345 is used to
3048 -- represent the wide character with code 16#A345#. This
3049 -- scheme is compatible with use of the full
3050 -- Wide_Character set.
3052 -- UPPER The wide character with encoding 16#abcd# where the
3053 -- upper bit is on (in other words, "a" is in the range
3054 -- 8-F) is represented as two bytes, 16#ab# and 16#cd#.
3055 -- The second byte may never be a format control
3056 -- character, but is not required to be in the upper
3057 -- half. This method can be also used for shift-JIS or
3058 -- EUC, where the internal coding matches the external
3061 -- SHIFT_JIS A wide character is represented by a two-character
3062 -- sequence, 16#ab# and 16#cd#, with the restrictions
3063 -- described for upper-half encoding as described above.
3064 -- The internal character code is the corresponding JIS
3065 -- character according to the standard algorithm for
3066 -- Shift-JIS conversion. Only characters defined in the
3067 -- JIS code set table can be used with this encoding
3070 -- UTF8 A wide character is represented using
3071 -- UCS Transformation Format 8 (UTF-8) as defined in Annex
3072 -- R of ISO 10646-1/Am.2. Depending on the character
3073 -- value, the representation is a one, two, or three byte
3076 -- 16#0000#-16#007f#: 2#0xxxxxxx#
3077 -- 16#0080#-16#07ff#: 2#110xxxxx# 2#10xxxxxx#
3078 -- 16#0800#-16#ffff#: 2#1110xxxx# 2#10xxxxxx# 2#10xxxxxx#
3080 -- where the xxx bits correspond to the left-padded bits
3081 -- of the the 16-bit character value. Note that all lower
3082 -- half ASCII characters are represented as ASCII bytes
3083 -- and all upper half characters and other wide characters
3084 -- are represented as sequences of upper-half (The full
3085 -- UTF-8 scheme allows for encoding 31-bit characters as
3086 -- 6-byte sequences, but in this implementation, all UTF-8
3087 -- sequences of four or more bytes length will be treated
3090 -- EUC A wide character is represented by a two-character
3091 -- sequence 16#ab# and 16#cd#, with both characters being
3092 -- in the upper half. The internal character code is the
3093 -- corresponding JIS character according to the EUC
3094 -- encoding algorithm. Only characters defined in the JIS
3095 -- code set table can be used with this encoding method.
3097 S_GCC_WideX : aliased constant S := "/NOWIDE_CHARACTER_ENCODING " &
3099 -- NODOC (see /WIDE_CHARACTER_ENCODING)
3101 S_GCC_Xdebug : aliased constant S := "/XDEBUG " &
3106 -- Output expanded source files for source level debugging.
3107 -- The expanded source (see /EXPAND_SOURCE) is written to files
3108 -- with names formed by appending "_DG" to the input file name,
3109 -- The debugging information generated by the /DEBUG qualifier will then
3110 -- refer to the generated file. This allows source level debugging using
3111 -- the generated code which is sometimes useful for complex code, for
3112 -- example to find out exactly which part of a complex construction
3113 -- raised an exception.
3115 S_GCC_Xref : aliased constant S := "/XREF=" &
3122 -- Normally the compiler generates full cross-referencing information in
3123 -- the .ALI file. This information is used by a number of tools,
3124 -- including GNAT FIND and GNAT XREF.
3126 -- GENERATE (D) Generate cross-referencing information.
3128 -- SUPPRESS Suppress cross-referencing information.
3129 -- This saves some space and may slightly
3130 -- speed up compilation, but means that some
3131 -- tools cannot be used.
3133 GCC_Switches : aliased constant Switches :=
3134 (S_GCC_Ada_83 'Access,
3135 S_GCC_Ada_95 'Access,
3136 S_GCC_Ada_05 'Access,
3139 S_GCC_Checks 'Access,
3140 S_GCC_ChecksX 'Access,
3141 S_GCC_Compres 'Access,
3142 S_GCC_Config 'Access,
3143 S_GCC_Current 'Access,
3144 S_GCC_Debug 'Access,
3145 S_GCC_DebugX 'Access,
3148 S_GCC_DistX 'Access,
3149 S_GCC_Error 'Access,
3150 S_GCC_ErrorX 'Access,
3151 S_GCC_Expand 'Access,
3152 S_GCC_Extend 'Access,
3155 S_GCC_Force 'Access,
3159 S_GCC_Ident 'Access,
3160 S_GCC_IdentX 'Access,
3161 S_GCC_Ignore 'Access,
3162 S_GCC_Immed 'Access,
3163 S_GCC_Inline 'Access,
3164 S_GCC_InlineX 'Access,
3165 S_GCC_Intsrc 'Access,
3167 S_GCC_JustX 'Access,
3168 S_GCC_Length 'Access,
3170 S_GCC_Output 'Access,
3171 S_GCC_Mapping 'Access,
3173 S_GCC_Nesting 'Access,
3174 S_GCC_Noadc 'Access,
3175 S_GCC_Noload 'Access,
3176 S_GCC_Nostinc 'Access,
3177 S_GCC_Nostlib 'Access,
3180 S_GCC_Polling 'Access,
3181 S_GCC_Project 'Access,
3183 S_GCC_Report 'Access,
3184 S_GCC_ReportX 'Access,
3185 S_GCC_Repinfo 'Access,
3186 S_GCC_RepinfX 'Access,
3188 S_GCC_Search 'Access,
3189 S_GCC_Style 'Access,
3190 S_GCC_StyleX 'Access,
3191 S_GCC_Symbol 'Access,
3192 S_GCC_Syntax 'Access,
3193 S_GCC_Table 'Access,
3194 S_GCC_Trace 'Access,
3197 S_GCC_Units 'Access,
3198 S_GCC_Unique 'Access,
3199 S_GCC_Upcase 'Access,
3200 S_GCC_Valid 'Access,
3201 S_GCC_Verbose 'Access,
3202 S_GCC_Verb_Asm'Access,
3204 S_GCC_WarnX 'Access,
3206 S_GCC_WideX 'Access,
3207 S_GCC_No_Back 'Access,
3208 S_GCC_Xdebug 'Access,
3209 S_GCC_Xref 'Access);
3211 ----------------------------
3212 -- Switches for GNAT ELIM --
3213 ----------------------------
3215 S_Elim_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3217 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
3219 -- Add directories to the project search path.
3221 S_Elim_All : aliased constant S := "/ALL " &
3226 -- Also look for subprograms from the GNAT run time that can be
3227 -- eliminated. Note that when 'gnat.adc' is produced using this switch,
3228 -- the entire program must be recompiled with qualifier /ALL_FILES of
3231 S_Elim_Bind : aliased constant S := "/BIND_FILE=<" &
3233 -- /BIND_FILE=file_name
3235 -- Specifies file_name as the bind file to process. If this qualifier is
3236 -- not used, the name of the bind file is computed from the full expanded
3237 -- Ada name of a main subprogram.
3239 S_Elim_Comp : aliased constant S := "/COMPILER=@" &
3241 -- /COMPILER=path_name
3243 -- Instructs GNAT ELIM to use a specific gcc compiler instead of one
3244 -- available on the path.
3246 S_Elim_Config : aliased constant S := "/CONFIGURATION_PRAGMAS=<" &
3248 -- /CONFIGURATION_PRAGMAS=path_name
3250 -- Specifies a file that contains configuration pragmas.
3251 -- The file must be specified with absolute path.
3253 S_Elim_Current : aliased constant S := "/CURRENT_DIRECTORY " &
3255 -- /CURRENT_DIRECTORY (D)
3256 -- /NOCURRENT_DIRECTORY
3258 -- Look for source files in the default directory.
3260 S_Elim_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3262 -- /EXTERNAL_REFERENCE="name=val"
3264 -- Specifies an external reference to the project manager. Useful only if
3265 -- /PROJECT_FILE is used.
3268 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3270 S_Elim_GNATMAKE : aliased constant S := "/GNATMAKE=@" &
3272 -- /GNATMAKE=path_name
3274 -- Instructs GNAT MAKE to use a specific gnatmake instead of one available
3277 S_Elim_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3284 -- /MESSAGES_PROJECT_FILE[=messages-option]
3286 -- Specifies the "verbosity" of the parsing of project files.
3287 -- messages-option may be one of the following:
3289 -- DEFAULT (D) No messages are output if there is no error or warning.
3291 -- MEDIUM A small number of messages are output.
3293 -- HIGH A great number of messages are output, most of them not
3294 -- being useful for the user.
3296 S_Elim_Project : aliased constant S := "/PROJECT_FILE=<" &
3298 -- /PROJECT_FILE=filename
3300 -- Specifies the main project file to be used. The project files rooted
3301 -- at the main project file will be parsed before the invocation of the
3302 -- gnatelim. The source directories to be searched will be communicated
3303 -- to gnatelim through logical name ADA_PRJ_INCLUDE_FILE.
3305 S_Elim_Quiet : aliased constant S := "/QUIET " &
3310 -- Quiet mode: by default GNAT ELIM outputs to the standard error stream
3311 -- the number of program units left to be processed. This option turns
3314 S_Elim_Search : aliased constant S := "/SEARCH=*" &
3316 -- /SEARCH=(directory, ...)
3318 -- When looking for source files also look in the specified directories.
3320 S_Elim_Verb : aliased constant S := "/VERBOSE " &
3325 -- Verbose mode: GNAT ELIM version information is output as Ada comments
3326 -- to the standard output stream. Also, in addition to the number of
3327 -- program units left, GNAT ELIM will output the name of the current unit
3330 Elim_Switches : aliased constant Switches :=
3331 (S_Elim_Add 'Access,
3333 S_Elim_Bind 'Access,
3334 S_Elim_Comp 'Access,
3335 S_Elim_Config 'Access,
3336 S_Elim_Current 'Access,
3338 S_Elim_GNATMAKE'Access,
3339 S_Elim_Mess 'Access,
3340 S_Elim_Project 'Access,
3341 S_Elim_Quiet 'Access,
3342 S_Elim_Search 'Access,
3343 S_Elim_Verb 'Access);
3345 ----------------------------
3346 -- Switches for GNAT FIND --
3347 ----------------------------
3349 S_Find_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3351 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
3353 -- Add directories to the project search path.
3355 S_Find_All : aliased constant S := "/ALL_FILES " &
3360 -- If this switch is present, FIND and XREF will parse the read-only
3361 -- files found in the library search path. Otherwise, these files will
3362 -- be ignored. This option can be used to protect Gnat sources or your
3363 -- own libraries from being parsed, thus making FIND and XREF much
3364 -- faster, and their output much smaller.
3366 S_Find_Deriv : aliased constant S := "/DERIVED_TYPE_INFORMATION " &
3368 -- /NODERIVED_TYPE_INFORMATION (D)
3369 -- /DERIVED_TYPE_INFORMATION
3371 -- Output the parent type reference for each matching derived types.
3373 S_Find_Expr : aliased constant S := "/EXPRESSIONS " &
3375 -- /NOEXPRESSIONS (D)
3378 -- By default, FIND accepts the simple regular expression set for pattern.
3379 -- If this switch is set, then the pattern will be considered as a full
3380 -- Unix-style regular expression.
3382 S_Find_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3384 -- /EXTERNAL_REFERENCE="name=val"
3386 -- Specifies an external reference to the project manager. Useful only if
3387 -- /PROJECT_FILE is used.
3390 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3392 S_Find_Full : aliased constant S := "/FULL_PATHNAME " &
3394 -- /NOFULL_PATHNAME (D)
3397 -- If this switch is set, the output file names will be preceded by their
3398 -- directory (if the file was found in the search path). If this switch
3399 -- is not set, the directory will not be printed.
3401 S_Find_Ignore : aliased constant S := "/IGNORE_LOCALS " &
3403 -- /NOIGNORE_LOCALS (D)
3406 -- If this switch is set, information is output only for library-level
3407 -- entities, ignoring local entities. The use of this switch may
3408 -- accelerate FIND and XREF.
3410 S_Find_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3417 -- /MESSAGES_PROJECT_FILE[=messages-option]
3419 -- Specifies the "verbosity" of the parsing of project files.
3420 -- messages-option may be one of the following:
3422 -- DEFAULT (D) No messages are output if there is no error or warning.
3424 -- MEDIUM A small number of messages are output.
3426 -- HIGH A great number of messages are output, most of them not
3427 -- being useful for the user.
3429 S_Find_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
3433 -- Do not look for sources in the system default directory.
3435 S_Find_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
3439 -- Do not look for library files in the system default directory.
3441 S_Find_Object : aliased constant S := "/OBJECT_SEARCH=*" &
3443 -- /OBJECT_SEARCH=(directory,...)
3445 -- When searching for library and object files, look in the specified
3446 -- directories. The order in which library files are searched is the same
3449 S_Find_Print : aliased constant S := "/PRINT_LINES " &
3451 -- /NOPRINT_LINES (D)
3454 -- Output the content of the Ada source file lines were the entity was
3457 S_Find_Project : aliased constant S := "/PROJECT=@" &
3461 -- Specify a project file to use. By default, FIND and XREF will try to
3462 -- locate a project file in the current directory.
3464 -- If a project file is either specified or found by the tools, then the
3465 -- content of the source directory and object directory lines are added
3466 -- as if they had been specified respectively by /SOURCE_SEARCH and
3469 -- This qualifier is not compatible with /PROJECT_FILE
3471 S_Find_Prj : aliased constant S := "/PROJECT_FILE=<" &
3473 -- /PROJECT_FILE=filename
3475 -- Specifies the main project file to be used. The project files rooted
3476 -- at the main project file will be parsed before looking for sources.
3477 -- The source and object directories to be searched will be communicated
3478 -- to gnatfind through logical names ADA_PRJ_INCLUDE_FILE and
3479 -- ADA_PRJ_OBJECTS_FILE.
3481 S_Find_Ref : aliased constant S := "/REFERENCES " &
3483 -- /NOREFERENCES (D)
3486 -- By default, FIND will output only the information about the
3487 -- declaration, body or type completion of the entities. If this switch
3488 -- is set, the FIND will locate every reference to the entities in the
3489 -- files specified on the command line (or in every file in the search
3490 -- path if no file is given on the command line).
3492 S_Find_Search : aliased constant S := "/SEARCH=*" &
3494 -- /SEARCH=(directory,...)
3497 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
3499 S_Find_Source : aliased constant S := "/SOURCE_SEARCH=*" &
3501 -- /SOURCE_SEARCH=(directory,...)
3503 -- When looking for source files also look in the specified directories.
3504 -- The order in which source file search is undertaken is the same as for
3507 S_Find_Types : aliased constant S := "/TYPE_HIERARCHY " &
3509 -- /NOTYPE_HIERARCHY (D)
3512 -- Output the type hierarchy for the specified type. It acts like the
3513 -- /DERIVED_TYPE_INFORMATION qualifier, but recursively from parent type
3514 -- to parent type. When this qualifier is specified it is not possible to
3515 -- specify more than one file.
3517 Find_Switches : aliased constant Switches :=
3518 (S_Find_Add 'Access,
3520 S_Find_Deriv 'Access,
3521 S_Find_Expr 'Access,
3523 S_Find_Full 'Access,
3524 S_Find_Ignore 'Access,
3525 S_Find_Mess 'Access,
3526 S_Find_Nostinc 'Access,
3527 S_Find_Nostlib 'Access,
3528 S_Find_Object 'Access,
3529 S_Find_Print 'Access,
3530 S_Find_Project 'Access,
3533 S_Find_Search 'Access,
3534 S_Find_Source 'Access,
3535 S_Find_Types 'Access);
3537 ------------------------------
3538 -- Switches for GNAT KRUNCH --
3539 ------------------------------
3541 S_Krunch_Count : aliased constant S := "/COUNT=#" &
3546 -- Limit file names to nnn characters (where nnn is a decimal
3547 -- integer). The maximum file name length is 39, but if you want to
3548 -- generate a set of files that would be usable if ported to a system
3549 -- with some different maximum file length, then a different value can
3552 Krunch_Switches : aliased constant Switches :=
3553 (1 .. 1 => S_Krunch_Count 'Access);
3555 ----------------------------
3556 -- Switches for GNAT LINK --
3557 ----------------------------
3559 S_Link_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3561 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
3563 -- Add directories to the project search path.
3565 S_Link_Bind : aliased constant S := "/BIND_FILE=" &
3570 -- /BIND_FILE=[bind-file-option]
3572 -- Specifies the language of the binder generated file.
3574 -- ADA (D) Binder file is Ada.
3576 -- C Binder file is 'C'.
3578 S_Link_Debug : aliased constant S := "/DEBUG=" &
3588 -- /DEBUG[=debug-option]
3590 -- Specifies the amount of debugging information included. 'debug-option'
3591 -- is one of the following:
3593 -- ALL (D) Include full debugging information.
3595 -- NONE Provide no debugging information. Same as /NODEBUG.
3597 -- TRACEBACK Provide sufficient debug information for a traceback.
3599 -- NOTRACEBACK Same as NONE.
3601 S_Link_Nodebug : aliased constant S := "/NODEBUG " &
3603 -- NODOC (see /DEBUG)
3605 S_Link_Execut : aliased constant S := "/EXECUTABLE=@" &
3607 -- /EXECUTABLE=exec-name
3609 -- 'exec-name' specifies an alternative name for the generated executable
3610 -- program. If this qualifier switch is omitted, the executable is called
3611 -- the name of the main unit. So "$ GNAT LINK TRY.ALI" creates an
3612 -- executable called TRY.EXE.
3614 S_Link_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3616 -- /EXTERNAL_REFERENCE="name=val"
3618 -- Specifies an external reference to the project manager. Useful only if
3619 -- /PROJECT_FILE is used.
3622 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3624 S_Link_Forlink : aliased constant S := "/FOR_LINKER=" & '"' &
3625 "--for-linker=" & '"';
3626 -- /FOR_LINKER=<string>
3628 -- Transmit the option <string> to the underlying linker.
3630 S_Link_Force : aliased constant S := "/FORCE_OBJECT_FILE_LIST " &
3632 -- /NOFORCE_OBJECT_FILE_LIST (D)
3633 -- /FORCE_OBJECT_FILE_LIST
3635 -- Forces the generation of a file that contains commands for the linker.
3636 -- This is useful in some cases to deal with special situations where the
3637 -- command line length is exceeded.
3639 S_Link_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
3640 "--for-linker=IDENT=" &
3642 -- /IDENTIFICATION="<string>"
3644 -- "<string>" specifies the string to be stored in the image file ident-
3645 -- ification field in the image header. It overrides any pragma Ident
3646 -- specified string.
3648 S_Link_Libdir : aliased constant S := "/LIBDIR=*" &
3650 -- /LIBDIR=(directory, ...)
3652 -- Look for libraries in the specified directories.
3654 S_Link_Library : aliased constant S := "/LIBRARY=|" &
3658 -- Link with library named "xyz".
3660 S_Link_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3667 -- /MESSAGES_PROJECT_FILE[=messages-option]
3669 -- Specifies the "verbosity" of the parsing of project files.
3670 -- messages-option may be one of the following:
3672 -- DEFAULT (D) No messages are output if there is no error or warning.
3674 -- MEDIUM A small number of messages are output.
3676 -- HIGH A great number of messages are output, most of them not
3677 -- being useful for the user.
3679 S_Link_Nocomp : aliased constant S := "/NOCOMPILE " &
3683 -- Do not compile the file generated by the binder.
3684 -- This may be used when a link is rerun with different options,
3685 -- but there is no need to recompile the binder generated file.
3687 S_Link_Noinhib : aliased constant S := "/NOINHIBIT-EXEC " &
3688 "--for-linker=--noinhibit-exec";
3691 -- Delete executable if there are errors or warnings.
3693 S_Link_Nofiles : aliased constant S := "/NOSTART_FILES " &
3697 -- Link in default image initialization and startup functions.
3699 S_Link_Project : aliased constant S := "/PROJECT_FILE=<" &
3701 -- /PROJECT_FILE=filename
3703 -- Specifies the main project file to be used. The project files rooted
3704 -- at the main project file will be parsed before the invocation of the
3706 -- The source and object directories to be searched will be communicated
3707 -- to the linker through logical names ADA_PRJ_INCLUDE_FILE and
3708 -- ADA_PRJ_OBJECTS_FILE.
3710 S_Link_Return : aliased constant S := "/RETURN_CODES=" &
3712 "!-mvms-return-codes " &
3714 "-mvms-return-codes";
3715 -- /RETURN_CODES=POSIX (D)
3716 -- /RETURN_CODES=VMS
3718 -- Specifies the style of codes returned by
3719 -- Ada.Command_Line.Set_Exit_Status. Must be used in conjunction with
3720 -- and match the Bind qualifer with the same name.
3722 -- POSIX (D) Return Posix compatible exit codes.
3724 -- VMS Return VMS compatible exit codes. The value returned
3725 -- is identically equal to the Set_Exit_Status parameter.
3727 S_Link_Static : aliased constant S := "/STATIC " &
3728 "--for-linker=-static";
3732 -- Indicate to the linker that the link is static.
3734 S_Link_Verb : aliased constant S := "/VERBOSE " &
3739 -- Causes additional information to be output, including a full list of
3740 -- the included object files. This switch option is most useful when you
3741 -- want to see what set of object files are being used in the link step.
3743 S_Link_ZZZZZ : aliased constant S := "/<other> " &
3747 -- Any other switch that will be transmited to the underlying linker.
3749 Link_Switches : aliased constant Switches :=
3750 (S_Link_Add 'Access,
3751 S_Link_Bind 'Access,
3752 S_Link_Debug 'Access,
3753 S_Link_Nodebug 'Access,
3754 S_Link_Execut 'Access,
3756 S_Link_Forlink 'Access,
3757 S_Link_Force 'Access,
3758 S_Link_Ident 'Access,
3759 S_Link_Libdir 'Access,
3760 S_Link_Library 'Access,
3761 S_Link_Mess 'Access,
3762 S_Link_Nocomp 'Access,
3763 S_Link_Nofiles 'Access,
3764 S_Link_Noinhib 'Access,
3765 S_Link_Project 'Access,
3766 S_Link_Return 'Access,
3767 S_Link_Static 'Access,
3768 S_Link_Verb 'Access,
3769 S_Link_ZZZZZ 'Access);
3771 ----------------------------
3772 -- Switches for GNAT LIST --
3773 ----------------------------
3775 S_List_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3777 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
3779 -- Add directories to the project search path.
3781 S_List_All : aliased constant S := "/ALL_UNITS " &
3786 -- Consider all units, including those of the predefined Ada library.
3787 -- Especially useful with /DEPENDENCIES.
3789 S_List_Allproj : aliased constant S := "/ALL_PROJECTS " &
3791 -- /NOALL_PROJECTS (D)
3794 -- When used with a project file and no file specified, indicate
3795 -- that gnatls should be called for all sources of all projects in
3796 -- the project tree.
3798 S_List_Current : aliased constant S := "/CURRENT_DIRECTORY " &
3800 -- /CURRENT_DIRECTORY (D)
3801 -- /NOCURRENT_DIRECTORY
3803 -- Look for source, library or object files in the default directory.
3805 S_List_Depend : aliased constant S := "/DEPENDENCIES " &
3807 -- /NODEPENDENCIES (D)
3810 S_List_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3812 -- /EXTERNAL_REFERENCE="name=val"
3814 -- Specifies an external reference to the project manager. Useful only if
3815 -- /PROJECT_FILE is used.
3818 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3820 S_List_Files : aliased constant S := "/FILES=@" &
3824 -- Take as arguments the files that are listed in the specified
3827 S_List_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3834 -- /MESSAGES_PROJECT_FILE[=messages-option]
3836 -- Specifies the "verbosity" of the parsing of project files.
3837 -- messages-option may be one of the following:
3839 -- DEFAULT (D) No messages are output if there is no error or warning.
3841 -- MEDIUM A small number of messages are output.
3843 -- HIGH A great number of messages are output, most of them not
3844 -- being useful for the user.
3846 S_List_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
3850 -- Do not look for sources of the run time in the standard directory.
3852 S_List_Object : aliased constant S := "/OBJECT_SEARCH=*" &
3854 -- /OBJECT_SEARCH=(directory,...)
3856 -- When looking for library and object files look also in the specified
3859 S_List_Output : aliased constant S := "/OUTPUT=" &
3872 -- /OUTPUT=(option,option,...)
3874 -- SOURCES (D) Only output information about source files.
3876 -- DEPEND List sources from which specified units depend on.
3878 -- OBJECTS Only output information about object files.
3880 -- UNITS Only output information about compilation units.
3882 -- OPTIONS Output the list of options.
3884 -- VERBOSE Output the complete source and object paths.
3885 -- Do not use the default column layout but instead
3886 -- use long format giving as much as information
3887 -- possible on each requested units, including
3888 -- special characteristics.
3890 S_List_Project : aliased constant S := "/PROJECT_FILE=<" &
3892 -- /PROJECT_FILE=filename
3894 -- Specifies the main project file to be used. The project files rooted
3895 -- at the main project file will be parsed before doing any listing.
3896 -- The source and object directories to be searched will be communicated
3897 -- to gnatlist through logical names ADA_PRJ_INCLUDE_FILE and
3898 -- ADA_PRJ_OBJECTS_FILE.
3900 S_List_Search : aliased constant S := "/SEARCH=*" &
3902 -- /SEARCH=(directory,...)
3904 -- Search the specified directories for both source and object files.
3906 S_List_Source : aliased constant S := "/SOURCE_SEARCH=*" &
3908 -- /SOURCE_SEARCH=(directory,...)
3910 -- When looking for source files also look in the specified directories.
3912 List_Switches : aliased constant Switches :=
3913 (S_List_Add 'Access,
3915 S_List_Allproj 'Access,
3916 S_List_Current 'Access,
3917 S_List_Depend 'Access,
3919 S_List_Files 'Access,
3920 S_List_Mess 'Access,
3921 S_List_Nostinc 'Access,
3922 S_List_Object 'Access,
3923 S_List_Output 'Access,
3924 S_List_Project 'Access,
3925 S_List_Search 'Access,
3926 S_List_Source 'Access);
3928 ----------------------------
3929 -- Switches for GNAT MAKE --
3930 ----------------------------
3932 S_Make_Actions : aliased constant S := "/ACTIONS=" &
3939 -- /ACTIONS=(keyword[,...])
3941 -- GNAT MAKE default behavior is to check if the sources are up to date,
3942 -- compile those sources that are not up to date, bind the main source,
3943 -- then link the executable.
3945 -- With the /ACTIONS qualifier, GNAT MAKE may be restricted to one or
3946 -- two of these three steps:
3953 -- You may specify one or more of the following keywords to the /ACTIONS
3956 -- BIND Bind only. Can be combined with /ACTIONS=COMPILE
3957 -- to do compilation and binding, but no linking.
3958 -- Can be combined with /ACTIONS=LINK to do binding and
3959 -- linking. When not combined with /ACTIONS=COMPILE,
3960 -- all the units in the closure of the main program must
3961 -- have been previously compiled and must be up to date.
3963 -- COMPILE Compile only. Do not perform binding, except when
3964 -- /ACTIONS=BIND is also specified. Do not perform
3965 -- linking, except if both /ACTIONS=BIND and /ACTIONS=LINK
3966 -- are also specified.
3968 -- LINK Link only. Can be combined with /ACTIONS=BIND to do
3969 -- binding and linking. Linking will not be performed
3970 -- if combined with /ACTIONS=COMPILE but not with
3971 -- /ACTIONS=BIND\. When not combined with /ACTIONS=BIND
3972 -- all the units in the closure of the main program must
3973 -- have been previously compiled and must be up to date,
3974 -- and the main program need to have been bound.
3976 S_Make_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3978 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
3980 -- Add directories to the project search path.
3982 S_Make_All : aliased constant S := "/ALL_FILES " &
3987 -- Consider all files in the make process, even the GNAT internal system
3988 -- files (for example, the predefined Ada library files). By default,
3989 -- GNAT MAKE does not check these files (however, if there is an
3990 -- installation problem, it will be caught when GNAT MAKE binds your
3991 -- program). You may have to specify this qualifier if you are working on
3992 -- GNAT itself. The vast majority of GNAT MAKE users never need to
3993 -- specify this switch. All GNAT internal files with will be compiled
3994 -- with /STYLE_CHECK=GNAT.
3996 S_Make_Allproj : aliased constant S := "/ALL_PROJECTS " &
3998 -- /NOALL_PROJECTS (D)
4002 -- When used without project files, it is equivalent to /UNIQUE.
4003 -- When used with a project file with no main (neither on the command
4004 -- line nor in the attribute Main) check every source of every project,
4005 -- recompile all sources that are not up to date and rebuild libraries
4008 S_Make_Bind : aliased constant S := "/BINDER_QUALIFIERS=?" &
4010 -- /BINDER_QUALIFIERS
4012 -- Any qualifiers specified after this qualifier other than
4013 -- /COMPILER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4014 -- passed to any GNAT BIND commands generated by GNAT MAKE.
4016 S_Make_Bindprj : aliased constant S := "/BND_LNK_FULL_PROJECT " &
4018 -- /BND_LNK_FULL_PROJECT
4020 -- Bind and link all sources of a project, without any consideration
4021 -- to attribute Main, if there is one. This qualifier need to be
4022 -- used in conjunction with the /PROJECT_FILE= qualifier and cannot
4023 -- be used with a main subprogram on the command line or for
4024 -- a library project file. As the binder is invoked with the option
4025 -- meaning "No Ada main subprogram", the user must ensure that the
4026 -- proper options are specified to the linker. This qualifier is
4027 -- normally used when the main subprogram is in a foreign language
4030 S_Make_Comp : aliased constant S := "/COMPILER_QUALIFIERS=?" &
4032 -- /COMPILER_QUALIFIERS
4034 -- Any qualifiers specified after this qualifier other than
4035 -- /BINDER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4036 -- passed to any GNAT COMPILE commands generated by GNAT MAKE.
4038 S_Make_Cond : aliased constant S := "/CONDITIONAL_SOURCE_SEARCH=*" &
4040 -- /CONDITIONAL_SOURCE_SEARCH=dir
4042 -- Equivalent to "/SOURCE_SEARCH=dir /SKIP_MISSING=dir".
4044 S_Make_Cont : aliased constant S := "/CONTINUE_ON_ERROR " &
4046 -- /NOCONTINUE_ON_ERROR (D)
4047 -- /CONTINUE_ON_ERROR
4049 -- Keep going. Continue as much as possible after a compilation error.
4050 -- To ease the programmer's task in case of compilation errors, the list
4051 -- of sources for which the compile fails is given when GNAT MAKE
4054 S_Make_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4056 -- /CURRENT_DIRECTORY (D)
4057 -- /NOCURRENT_DIRECTORY
4059 -- Look for source, library or object files in the default directory.
4061 S_Make_Dep : aliased constant S := "/DEPENDENCIES_LIST " &
4063 -- /NODEPENDENCIES_LIST (D)
4064 -- /DEPENDENCIES_LIST
4066 -- Check if all objects are up to date. If they are, output the object
4067 -- dependences to SYS$OUTPUT in a form that can be directly exploited in
4068 -- a Unix-style Makefile. By default, each source file is prefixed with
4069 -- its (relative or absolute) directory name. This name is whatever you
4070 -- specified in the various /SOURCE_SEARCH and /SEARCH qualifiers. If
4071 -- you also speficy the /QUIET qualifier, only the source file names,
4072 -- without relative paths, are output. If you just specify the
4073 -- /DEPENDENCY_LIST qualifier, dependencies of the GNAT internal system
4074 -- files are omitted. This is typically what you want. If you also
4075 -- specify the /ALL_FILES qualifier, dependencies of the GNAT internal
4076 -- files are also listed. Note that dependencies of the objects in
4077 -- external Ada libraries (see the /SKIP_MISSING qualifier) are never
4080 S_Make_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
4082 -- /DIRECTORY_OBJECTS=<file>
4084 -- Put all object files and .ALI files in <file>.
4085 -- This qualifier is not compatible with /PROJECT_FILE.
4087 S_Make_Doobj : aliased constant S := "/DO_OBJECT_CHECK " &
4089 -- /NODO_OBJECT_CHECK (D)
4092 -- Don't compile, bind, or link. Output a single command that will
4093 -- recompile an out of date unit, if any. Repeated use of this option,
4094 -- followed by carrying out the indicated compilation, will eventually
4095 -- result in recompiling all required units.
4097 -- If any ALI is missing during the process, GNAT MAKE halts and
4098 -- displays an error message.
4100 S_Make_Execut : aliased constant S := "/EXECUTABLE=@" &
4102 -- /EXECUTABLE=exec-name
4104 -- The name of the final executable program will be 'exec_name'. If this
4105 -- qualifier is omitted the default name for the executable will be the
4106 -- name of the input file with an EXE filetype. You may prefix
4107 -- 'exec_name' with a relative or absolute directory path.
4109 S_Make_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4111 -- /EXTERNAL_REFERENCE="name=val"
4113 -- Specifies an external reference to the project manager. Useful only if
4114 -- /PROJECT_FILE is used.
4117 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4119 S_Make_Force : aliased constant S := "/FORCE_COMPILE " &
4121 -- /NOFORCE_COMPILE (D)
4124 -- Force recompilations. Recompile all sources, even though some object
4125 -- files may be up to date, but don't recompile predefined or GNAT
4126 -- internal files unless the /ALL_FILES qualfier is also specified.
4128 S_Make_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
4130 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
4131 -- /FULL_PATH_IN_BRIEF_MESSAGES
4133 -- When using project files, if some errors or warnings are detected
4134 -- during parsing and verbose mode is not in effect (no use of qualifier
4135 -- /VERBOSE), then error lines start with the full path name of the
4136 -- project file, rather than its simple file name.
4138 S_Make_Hi_Verb : aliased constant S := "/HIGH_VERBOSITY " &
4140 -- /NOHIGH_VERBOSITY (D)
4143 -- Displays the reason for all recompilations GNAT MAKE decides are
4144 -- necessary, in high verbosity. Equivalent to /VERBOSE.
4146 S_Make_Inplace : aliased constant S := "/IN_PLACE " &
4151 -- In normal mode, GNAT MAKE compiles all object files and ALI files
4152 -- into the current directory. If the /IN_PLACE switch is used,
4153 -- then instead object files and ALI files that already exist are over-
4154 -- written in place. This means that once a large project is organized
4155 -- into separate directories in the desired manner, then GNAT MAKE will
4156 -- automatically maintain and update this organization. If no ALI files
4157 -- are found on the Ada object path, the new object and ALI files are
4158 -- created in the directory containing the source being compiled.
4160 S_Make_Index : aliased constant S := "/SOURCE_INDEX=#" &
4162 -- /SOURCE_INDEX=nnn
4164 -- Specifies the index of the units in the source file
4165 -- By default, source files are mono-unit and there is no index
4166 -- When /SOURCE_INDEX=nnn is specified, only one main may be specified
4167 -- on the command line.
4169 S_Make_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
4171 -- /LIBRARY_SEARCH=(directory[,...])
4173 -- Add the specified directories to the list of directories in which the
4174 -- linker will search for libraries.
4176 S_Make_Link : aliased constant S := "/LINKER_QUALIFIERS=?" &
4178 -- /LINKER_QUALIFIERS
4180 -- Any qualifiers specified after this qualifier other than
4181 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /MAKE_QUALIFIERS will be
4182 -- passed to any GNAT LINK commands generated by GNAT LINK.
4184 S_Make_Low_Verb : aliased constant S := "/LOW_VERBOSITY " &
4186 -- /NOLOW_VERBOSITY (D)
4189 -- Displays the reason for all recompilations GNAT MAKE decides are
4190 -- necessary, in low verbosity, that is with less output than
4191 -- /MEDIUM_VERBOSITY, /HIGH_VERBOSITY or /VERBOSE.
4193 S_Make_Make : aliased constant S := "/MAKE_QUALIFIERS=?" &
4197 -- Any qualifiers specified after this qualifier other than
4198 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /LINKER_QUALIFIERS
4199 -- are for the benefit of GNAT MAKE itself.
4201 S_Make_Mapping : aliased constant S := "/MAPPING " &
4206 -- Use a mapping file. A mapping file is a way to communicate to the
4207 -- compiler two mappings: from unit names to file names (without any
4208 -- directory information) and from file names to path names (with full
4209 -- directory information). These mappings are used by the compiler to
4210 -- short-circuit the path search. When GNAT MAKE is invoked with this
4211 -- qualifier, it will create a mapping file, initially populated by the
4212 -- project manager, if /PROJECT_File= is used, otherwise initially empty.
4213 -- Each invocation of the compiler will add the newly accessed sources to
4214 -- the mapping file. This will improve the source search during the next
4215 -- invocations of the compiler
4217 S_Make_Med_Verb : aliased constant S := "/MEDIUM_VERBOSITY " &
4219 -- /NOMEDIUM_VERBOSITY (D)
4220 -- /MEDIUM_VERBOSITY
4222 -- Displays the reason for all recompilations GNAT MAKE decides are
4223 -- necessary, in medium verbosity, that is with potentially less output
4224 -- than /HIGH_VERBOSITY or /VERBOSE.
4226 S_Make_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4233 -- /MESSAGES_PROJECT_FILE[=messages-option]
4235 -- Specifies the "verbosity" of the parsing of project files.
4236 -- messages-option may be one of the following:
4238 -- DEFAULT (D) No messages are output if there is no error or warning.
4240 -- MEDIUM A small number of messages are output.
4242 -- HIGH A great number of messages are output, most of them not
4243 -- being useful for the user.
4245 S_Make_Minimal : aliased constant S := "/MINIMAL_RECOMPILATION " &
4247 -- /NOMINIMAL_RECOMPILATION (D)
4248 -- /MINIMAL_RECOMPILATION
4250 -- Specifies that the minimum necessary amount of recompilation
4251 -- be performed. In this mode GNAT MAKE ignores time stamp differences
4252 -- when the only modifications to a source file consist in
4253 -- adding/removing comments, empty lines, spaces or tabs.
4255 S_Make_Missing : aliased constant S := "/CREATE_MISSING_DIRS " &
4257 -- /NOCREATE_MISSING_DIRS (D)
4258 -- /CREATE_MISSING_DIRS
4260 -- When an object directory, a library directory or an exec directory
4261 -- in missing, attempt to create the directory.
4263 S_Make_Nolink : aliased constant S := "/NOLINK " &
4267 -- Compile only. Do not perform binding and linking. If the root unit is
4268 -- not a main unit, this is the default. Otherwise GNAT MAKE will
4269 -- attempt binding and linking unless all objects are up to date and the
4270 -- executable is more recent than the objects.
4271 -- This is equivalent to /ACTIONS=COMPILE
4273 S_Make_Nomain : aliased constant S := "/NOMAIN " &
4277 -- No main subprogram. Bind and link the program even if the unit name
4278 -- given on the command line is a package name. The resulting executable
4279 -- will execute the elaboration routines of the package and its closure,
4280 -- then the finalization routines.
4282 S_Make_Nonpro : aliased constant S := "/NON_PROJECT_UNIT_COMPILATION " &
4284 -- /NON_PROJECT_UNIT_COMPILATION
4286 -- Normally, when using project files, a unit that is not part of any
4287 -- project file, cannot be compile. These units may be compile, when
4288 -- needed, if this qualifier is specified.
4290 S_Make_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4294 -- Do not look for sources the in the system default directory.
4296 S_Make_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
4300 -- Do not look for library files in the system default directory.
4302 S_Make_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4304 -- /OBJECT_SEARCH=(directory[,...])
4306 -- When looking for library and object files look also in the specified
4309 S_Make_Proc : aliased constant S := "/PROCESSES=#" &
4314 -- Use NNN processes to carry out the (re)complations. If you have a
4315 -- multiprocessor machine, compilations will occur in parallel. In the
4316 -- event of compilation errors, messages from various compilations might
4317 -- get interspersed (but GNAT MAKE will give you the full ordered list of
4318 -- failing compiles at the end). This can at times be annoying. To get a
4319 -- clean list of error messages don't use this qualifier.
4321 S_Make_Nojobs : aliased constant S := "/NOPROCESSES " &
4323 -- NODOC (see /PROCESS)
4325 S_Make_Project : aliased constant S := "/PROJECT_FILE=<" &
4327 -- /PROJECT_FILE=filename
4329 -- Specifies the main project file to be used. The project files rooted
4330 -- at the main project file will be parsed before any other processing to
4331 -- set the building environment.
4333 S_Make_Quiet : aliased constant S := "/QUIET " &
4338 -- When this qualifiers is specified, the commands carried out by GNAT
4339 -- MAKE are not displayed.
4341 S_Make_Reason : aliased constant S := "/REASONS " &
4346 -- Displays the reason for all recompilations GNAT MAKE decides are
4349 S_Make_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
4351 -- /RUNTIME_SYSTEM=xxx
4353 -- Build against an alternate runtime system named xxx or RTS-xxx.
4355 S_Make_Search : aliased constant S := "/SEARCH=*" &
4357 -- /SEARCH=(directory[,...])
4359 -- Search the specified directories for both source and object files.
4361 S_Make_Skip : aliased constant S := "/SKIP_MISSING=*" &
4363 -- /SKIP_MISSING=(directory[,...])
4365 -- Skip missing library sources if ALI in 'directory'.
4367 S_Make_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4369 -- /SOURCE_SEARCH=(directory[,...])
4371 -- When looking for source files also look in the specified directories.
4373 S_Make_Stand : aliased constant S := "/STANDARD_OUTPUT_FOR_COMMANDS " &
4375 -- /NOSTANDARD_OUTPUT_FOR_COMMANDS (D)
4376 -- /STANDARD_OUTPUT_FOR_COMMANDS
4378 -- Output the commands for the compiler, the binder and the linker
4379 -- on SYS$OUTPUT, instead of SYS$ERROR.
4381 S_Make_Switch : aliased constant S := "/SWITCH_CHECK " &
4383 -- /NOSWITCH_CHECK (D)
4386 -- Recompile if compiler switches have changed since last compilation.
4387 -- All compiler switches but -I and -o are taken into account in the
4388 -- following way: orders between different "first letter" switches are
4389 -- ignored, but orders between same switches are taken into account.
4390 -- For example, -O -O2 is different than -O2 -O, but -g -O is equivalent
4393 S_Make_Unique : aliased constant S := "/UNIQUE " &
4398 -- Recompile at most the main file. It implies /ACTIONS=COMPILE.
4399 -- Combined with /FORCE_COMPILE, it is equivalent to calling the compiler
4402 S_Make_Use_Map : aliased constant S := "/USE_MAPPING_File=@" &
4404 -- /USE_MAPPING_FILE=file_name
4406 -- Use a specific mapping file. The file 'file_name', specified as a path
4407 -- name (absolute or relative) by this qualifier, should already exist,
4408 -- otherwise the qualifier is ineffective. The specified mapping file
4409 -- will be communicated to the compiler. This switch is not compatible
4410 -- with a project file (/PROJECT_FILE=) or with multiple compiling
4411 -- processes (/PROCESSES=nnn, when nnn is greater than 1).
4413 S_Make_Verbose : aliased constant S := "/VERBOSE " &
4418 -- Displays the reason for all recompilations GNAT MAKE decides are
4421 Make_Switches : aliased constant Switches :=
4422 (S_Make_Add 'Access,
4423 S_Make_Actions 'Access,
4425 S_Make_Allproj 'Access,
4426 S_Make_Bind 'Access,
4427 S_Make_Comp 'Access,
4428 S_Make_Cond 'Access,
4429 S_Make_Cont 'Access,
4430 S_Make_Current 'Access,
4432 S_Make_Dirobj 'Access,
4433 S_Make_Doobj 'Access,
4434 S_Make_Execut 'Access,
4436 S_Make_Force 'Access,
4437 S_Make_Full 'Access,
4438 S_Make_Hi_Verb 'Access,
4439 S_Make_Inplace 'Access,
4440 S_Make_Index 'Access,
4441 S_Make_Library 'Access,
4442 S_Make_Link 'Access,
4443 S_Make_Low_Verb'Access,
4444 S_Make_Make 'Access,
4445 S_Make_Mapping 'Access,
4446 S_Make_Med_Verb'Access,
4447 S_Make_Mess 'Access,
4448 S_Make_Minimal 'Access,
4449 S_Make_Missing 'Access,
4450 S_Make_Nolink 'Access,
4451 S_Make_Nomain 'Access,
4452 S_Make_Nonpro 'Access,
4453 S_Make_Nostinc 'Access,
4454 S_Make_Nostlib 'Access,
4455 S_Make_Object 'Access,
4456 S_Make_Proc 'Access,
4457 S_Make_Nojobs 'Access,
4458 S_Make_Project 'Access,
4459 S_Make_Quiet 'Access,
4460 S_Make_Reason 'Access,
4462 S_Make_Search 'Access,
4463 S_Make_Skip 'Access,
4464 S_Make_Source 'Access,
4465 S_Make_Stand 'Access,
4466 S_Make_Switch 'Access,
4467 S_Make_Unique 'Access,
4468 S_Make_Use_Map 'Access,
4469 S_Make_Verbose 'Access);
4471 ------------------------------
4472 -- Switches for GNAT METRIC --
4473 ------------------------------
4475 S_Metric_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4477 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
4479 -- Add directories to the project search path.
4481 S_Metric_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
4483 -- /NOALL_PROJECTS (D)
4485 -- When GNAT METRIC is used with a Project File and no source is
4486 -- specified, the underlying tool gnatmetric is called for all the
4487 -- sources of all the Project Files in the project tree.
4489 S_Metric_Debug : aliased constant S := "/DEBUG_OUTPUT " &
4493 -- Generate the debug information
4495 S_Metric_Direct : aliased constant S := "/DIRECTORY=@" &
4497 -- /DIRECTORY=pathname
4499 -- Put the files with detailed metric information into the specified
4502 S_Metric_Element : aliased constant S := "/ELEMENT_METRICS=" &
4504 "!-ed,!-es,!-enl,!-eps," &
4505 "!-eas,!-ept,!-eat,!-enu," &
4507 "DECLARATION_TOTAL " &
4509 "STATEMENT_TOTAL " &
4511 "LOOP_NESTING_MAX " &
4513 "INT_SUBPROGRAMS " &
4515 "SUBPROGRAMS_ALL " &
4521 "PROGRAM_NESTING_MAX " &
4523 "CONSTRUCT_NESTING_MAX " &
4525 -- NODOC (see /SYNTAX_METRICS)
4527 S_Metric_Syntax : aliased constant S := "/SYNTAX_METRICS=" &
4531 "--no-syntax-all " &
4532 "DECLARATIONS_ON " &
4534 "DECLARATIONS_OFF " &
4535 "--no-declarations " &
4539 "--no-statements " &
4540 "PUBLIC_SUBPROGRAMS_ON " &
4541 "--public-subprograms " &
4542 "PUBLIC_SUBPROGRAMS_OFF " &
4543 "--no-public-subprograms " &
4544 "ALL_SUBPROGRAMS_ON " &
4545 "--all-subprograms " &
4546 "ALL_SUBPROGRAMS_OFF " &
4547 "--no-all-subprograms " &
4548 "PUBLIC_TYPES_ON " &
4550 "PUBLIC_TYPES_OFF " &
4551 "--no-public-types " &
4556 "UNIT_NESTING_ON " &
4558 "UNIT_NESTING_OFF " &
4559 "--no-unit-nesting " &
4560 "CONSTRUCT_NESTING_ON " &
4561 "--construct-nesting " &
4562 "CONSTRUCT_NESTING_OFF " &
4563 "--no-construct-nesting";
4564 -- /SYNTAX_METRICS(option, option ...)
4566 -- Specifies the syntax element metrics to be computed (if at least one
4567 -- positive syntax element metric, line metric or complexity metric is
4568 -- specified then only explicitly specified specified syntax element
4569 -- metrics are computed and reported)
4571 -- option may be one of the following:
4573 -- ALL_ON (D) All the syntax element metrics are computed
4574 -- ALL_OFF None of syntax element metrics is computed
4575 -- DECLARATIONS_ON Compute the total number of declarations
4576 -- DECLARATIONS_OFF Do not compute the total number of
4578 -- STATEMENTS_ON Compute the total number of statements
4579 -- STATEMENTS_OFF Do not compute the total number of
4581 -- PUBLIC_SUBPROGRAMS_ON Compute the number of public subprograms
4582 -- PUBLIC_SUBPROGRAMS_OFF Do not compute the number of public
4584 -- ALL_SUBPROGRAMS_ON Compute the number of all the subprograms
4585 -- ALL_SUBPROGRAMS_OFF Do not compute the number of all the
4587 -- PUBLIC_TYPES_ON Compute the number of public types
4588 -- PUBLIC_TYPES_OFF Do not compute the number of public types
4589 -- ALL_TYPES_ON Compute the number of all the types
4590 -- ALL_TYPES_OFF Do not compute the number of all the types
4591 -- UNIT_NESTING_ON Compute the maximal program unit nesting
4593 -- UNIT_NESTING_OFF Do not compute the maximal program unit
4595 -- CONSTRUCT_NESTING_ON Compute the maximal construct nesting level
4596 -- CONSTRUCT_NESTING_OFF Do not compute the maximal construct nesting
4599 -- All combinations of syntax element metrics options are allowed.
4601 S_Metric_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4603 -- /EXTERNAL_REFERENCE="name=val"
4605 -- Specifies an external reference to the project manager. Useful only if
4606 -- /PROJECT_FILE is used.
4609 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4611 S_Metric_Files : aliased constant S := "/FILES=@" &
4615 -- Take as arguments the files that are listed in the specified
4618 S_Metric_Format : aliased constant S := "/FORMAT_OUTPUT=" &
4625 "SHORT_SOURCE_FILE_NAME " &
4627 -- /FORMAT_OUTPUT=(option, option ...)
4629 -- Specifies the details of the tool output
4631 -- option may be one of the following:
4633 -- DEFAULT (D) Generate the text output only, use full
4634 -- argument source names in global information
4635 -- XML Generate the output in XML format
4636 -- NO_TEXT Do not generate the text output (implies XML)
4637 -- SHORT_SOURCE_FILE_NAME Use short argument source names in output
4639 S_Metric_Globout : aliased constant S := "/GLOBAL_OUTPUT=@" &
4641 -- /GLOBAL_OUTPUT=filename
4643 -- Put the textual global metric information into the specified file
4645 S_Metric_Line : aliased constant S := "/LINE_METRICS=" &
4647 "!-la,!-lcode,!-lcomm," &
4655 "MIXED_CODE_COMMENTS " &
4657 "COMMENT_PERCENTAGE " &
4661 "AVERAGE_LINES_IN_BODIES " &
4663 -- NODOC (see /LINE_COUNT_METRICS)
4665 S_Metric_Lines : aliased constant S := "/LINE_COUNT_METRICS=" &
4677 "--no-lines-code " &
4678 "COMMENT_LINES_ON " &
4679 "--lines-comment " &
4680 "COMMENT_LINES_OFF " &
4681 "--no-lines-comment " &
4682 "CODE_COMMENT_LINES_ON " &
4683 "--lines-eol-comment " &
4684 "CODE_COMMENT_LINES_OFF " &
4685 "--no-lines-eol-comment " &
4686 "COMMENT_PERCENTAGE_ON " &
4688 "COMMENT_PERCENTAGE_OFF " &
4689 "--no-lines-ratio " &
4692 "BLANK_LINES_OFF " &
4693 "--no-lines-blank " &
4694 "AVERAGE_BODY_LINES_ON " &
4695 "--lines-average " &
4696 "AVERAGE_BODY_LINES_OFF " &
4697 "--no-lines-average";
4698 -- /LINE_COUNT_METRICS=(option, option ...)
4700 -- Specifies the line metrics to be computed (if at least one positive
4701 -- syntax element metric, line metric or complexity metric is specified
4702 -- then only explicitly specified specified line metrics are computed and
4705 -- option may be one of the following:
4707 -- ALL_ON (D) All the line metrics are computed
4708 -- ALL_OFF None of line metrics is computed
4709 -- ALL_LINES_ON All lines are computed
4710 -- ALL_LINES_OFF All lines are not computed
4711 -- CODE_LINES_ON Lines with Ada code are computed
4712 -- CODE_LINES_OFF Lines with Ada code are not computed
4713 -- COMMENT_LINES_ON Comment lines are computed
4714 -- COMMENT_LINES_OFF Comment lines are not computed
4715 -- COMMENT_PERCENTAGE_ON Ratio between comment lines and all the
4716 -- lines containing comments and program code
4718 -- COMMENT_PERCENTAGE_OFF Ratio between comment lines and all the
4719 -- lines containing comments and program code
4721 -- BLANK_LINES_ON Blank lines are computed
4722 -- BLANK_LINES_OFF Blank lines are not computed
4723 -- AVERAGE_BODY_LINES_ON Average number of code lines in subprogram,
4724 -- task and entry bodies and statement
4725 -- sequences of package bodies is computed
4726 -- AVERAGE_BODY_LINES_OFF Average number of code lines in subprogram,
4727 -- task and entry bodies and statement
4728 -- sequences of package bodies is not computed
4730 -- All combinations of line metrics options are allowed.
4732 S_Metric_Complexity : aliased constant S := "/COMPLEXITY_METRICS=" &
4734 "--complexity-all " &
4736 "--no-complexity-all " &
4738 "--complexity-cyclomatic " &
4740 "--no-complexity-cyclomatic " &
4742 "--complexity-essential " &
4744 "--no-complexity-essential " &
4745 "LOOP_NESTING_ON " &
4747 "LOOP_NESTING_OFF " &
4748 "--no-loop-nesting " &
4749 "AVERAGE_COMPLEXITY_ON " &
4750 "--complexity-average " &
4751 "AVERAGE_COMPLEXITY_OFF " &
4752 "--no-complexity-average";
4753 -- /COMPLEXITY_METRICS=(option, option ...)
4755 -- Specifies the complexity metrics to be computed (if at least one
4756 -- positive syntax element metric, line metric or complexity metric is
4757 -- specified then only explicitly specified specified line metrics are
4758 -- computed and reported)
4760 -- option may be one of the following:
4762 -- ALL_ON (D) All the complexity metrics are computed
4763 -- ALL_OFF None of complexity metrics is computed
4764 -- CYCLOMATIC_ON Compute the McCabe Cyclomatic Complexity
4765 -- CYCLOMATIC_OFF Do not compute the McCabe Cyclomatic
4767 -- ESSENTIAL_ON Compute the Essential Complexity
4768 -- ESSENTIAL_OFF Do not ompute the Essential Complexity
4769 -- LOOP_NESTIMG_ON Compute the maximal loop nesting
4770 -- LOOP_NESTIMG_OFF Do not compute the maximal loop nesting
4771 -- AVERAGE_COMPLEXITY_ON Compute the average complexity for
4772 -- executable bodies
4773 -- AVERAGE_COMPLEXITY_OFF Do not compute the average complexity for
4774 -- executable bodies
4776 -- All combinations of line metrics options are allowed.
4778 S_Metric_No_Local : aliased constant S := "/NO_LOCAL_DETAILS " &
4780 -- /LOCAL_DETAILS (D)
4781 -- /NO_LOCAL_DETAILS
4783 -- Do not compute the detailed metrics for local program units.
4785 S_Metric_No_Exits_As_Gotos : aliased constant S := "/NO_EXITS_AS_GOTOS " &
4787 -- /EXITS_AS_GOTOS (D)
4788 -- /NO_EXITS_AS_GOTOS
4790 -- Do not count EXIT statements as GOTOs when computing the Essential
4793 S_Metric_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4800 -- /MESSAGES_PROJECT_FILE[=messages-option]
4802 -- Specifies the "verbosity" of the parsing of project files.
4803 -- messages-option may be one of the following:
4805 -- DEFAULT (D) No messages are output if there is no error or warning.
4807 -- MEDIUM A small number of messages are output.
4809 -- HIGH A great number of messages are output, most of them not
4810 -- being useful for the user.
4812 S_Metric_Project : aliased constant S := "/PROJECT_FILE=<" &
4814 -- /PROJECT_FILE=filename
4816 -- Specifies the main project file to be used. The project files rooted
4817 -- at the main project file will be parsed before the invocation of the
4820 S_Metric_Quiet : aliased constant S := "/QUIET " &
4825 -- Quiet mode: by default GNAT METRIC outputs to the standard error stream
4826 -- the number of program units left to be processed. This option turns
4829 S_Metric_Suffix : aliased constant S := "/SUFFIX_DETAILS=" & '"' &
4831 -- /SUFFIX_DETAILS=suffix
4833 -- Use the given suffix as the suffix for the name of the file to place
4834 -- the detailed metrics into.
4836 S_Metric_Suppress : aliased constant S := "/SUPPRESS=" &
4838 "!-nocc,!-noec,!-nonl," &
4840 "CYCLOMATIC_COMPLEXITY " &
4842 "ESSENTIAL_COMPLEXITY " &
4844 "MAXIMAL_LOOP_NESTING " &
4850 -- NODOC (see /COMPLEXITY_METRICS /NO_LOCAL_DETAILS /NO_EXITS_AS_GOTOS)
4852 S_Metric_Verbose : aliased constant S := "/VERBOSE " &
4859 S_Metric_XMLout : aliased constant S := "/XML_OUTPUT=@" &
4861 -- /XML_OUTPUT=filename
4863 -- Place the XML output into the specified file
4865 Metric_Switches : aliased constant Switches :=
4866 (S_Metric_Add 'Access,
4867 S_Metric_All_Prjs 'Access,
4868 S_Metric_Complexity 'Access,
4869 S_Metric_Debug 'Access,
4870 S_Metric_Direct 'Access,
4871 S_Metric_Element 'Access,
4872 S_Metric_Ext 'Access,
4873 S_Metric_Files 'Access,
4874 S_Metric_Format 'Access,
4875 S_Metric_Globout 'Access,
4876 S_Metric_Line 'Access,
4877 S_Metric_Lines 'Access,
4878 S_Metric_Mess 'Access,
4879 S_Metric_No_Exits_As_Gotos'Access,
4880 S_Metric_No_Local 'Access,
4881 S_Metric_Project 'Access,
4882 S_Metric_Quiet 'Access,
4883 S_Metric_Suffix 'Access,
4884 S_Metric_Syntax 'Access,
4885 S_Metric_Suppress 'Access,
4886 S_Metric_Verbose 'Access,
4887 S_Metric_XMLout 'Access);
4889 ----------------------------
4890 -- Switches for GNAT NAME --
4891 ----------------------------
4893 S_Name_Conf : aliased constant S := "/CONFIG_FILE=<" &
4895 -- /CONFIG_FILE=path_name
4897 -- Create a configuration pragmas file 'path_name' (instead of the default
4898 -- 'gnat.adc'). 'path_name' may include directory information. 'path_name'
4899 -- must be writable. There may be only one qualifier /CONFIG_FILE.
4900 -- This qualifier is not compatible with qualifier /PROJECT_FILE.
4902 S_Name_Dirs : aliased constant S := "/SOURCE_DIRS=*" &
4904 -- /SOURCE_DIRS=(directory, ...)
4906 -- Look for source files in the specified directories. When this qualifier
4907 -- is specified, the current working directory will not be searched for
4908 -- source files, unless it is explicitly specified with a qualifier
4909 -- /SOURCE_DIRS or /DIRS_FILE. Several qualifiers /SOURCE_DIRS may be
4910 -- specified. If a directory is specified as a relative path, it is
4911 -- relative to the directory of the configuration pragmas file specified
4912 -- with qualifier /CONFIG_FILE, or to the directory of the project file
4913 -- specified with qualifier /PROJECT_FILE or, if neither qualifier
4914 -- /CONFIG_FILE nor qualifier /PROJECT_FILE are specified, it is relative
4915 -- to the current working directory. The directories specified with
4916 -- qualifiers /SOURCE_DIRS must exist and be readable.
4918 S_Name_Dfile : aliased constant S := "/DIRS_FILE=<" &
4920 -- /DIRS_FILE=file_name
4922 -- Look for source files in all directories listed in text file
4923 -- 'file_name'. 'file_name' must be an existing, readable text file.
4924 -- Each non empty line in the specified file must be a directory.
4925 -- Specifying qualifier /DIRS_FILE is equivalent to specifying as many
4926 -- qualifiers /SOURCE_DIRS as there are non empty lines in the specified
4929 S_Name_Frng : aliased constant S := "/FOREIGN_PATTERN=" & '"' &
4931 -- /FOREIGN_PATTERN=<string>
4933 -- Specify a foreign pattern.
4934 -- Using this qualifier, it is possible to add sources of languages other
4935 -- than Ada to the list of sources of a project file. It is only useful
4936 -- if a qualifier /PROJECT_FILE is used. For example,
4938 -- GNAT NAME /PROJECT_FILE=PRJ /FOREIGN_PATTERN="*.C" "*.ADA"
4940 -- will look for Ada units in all files with the '.ADA' extension, and
4941 -- will add to the list of file for project PRJ.GPR the C files with
4944 S_Name_Help : aliased constant S := "/HELP " &
4949 -- Output usage information to the standard output stream.
4951 S_Name_Proj : aliased constant S := "/PROJECT_FILE=<" &
4953 -- /PROJECT_FILE=file_name
4955 -- Create or update a project file. 'file_name' may include directory
4956 -- information. The specified file must be writable. There may be only
4957 -- one qualifier /PROJECT_FILE. When a qualifier /PROJECT_DILE is
4958 -- specified, no qualifier /CONFIG_FILE may be specified.
4960 S_Name_Verbose : aliased constant S := "/VERBOSE " &
4965 -- Verbose mode. Output detailed explanation of behavior to the standard
4966 -- output stream. This includes name of the file written, the name of the
4967 -- directories to search and, for each file in those directories whose
4968 -- name matches at least one of the Naming Patterns, an indication of
4969 -- whether the file contains a unit, and if so the name of the unit.
4971 S_Name_Excl : aliased constant S := "/EXCLUDED_PATTERN=" & '"' &
4973 -- /EXCLUDED_PATTERN=<string>
4975 -- Specify an excluded pattern.
4976 -- Using this qualifier, it is possible to exclude some files that would
4977 -- match the Naming patterns. For example,
4979 -- GNAT NAME /EXCLUDED_PATTERN="*_NT.ADA" "*.ADA"
4981 -- will look for Ada units in all files with the '.ADA' extension, except
4982 -- those whose names end with '_NT.ADA'.
4984 Name_Switches : aliased constant Switches :=
4985 (S_Name_Conf 'Access,
4986 S_Name_Dirs 'Access,
4987 S_Name_Dfile 'Access,
4988 S_Name_Frng 'Access,
4989 S_Name_Help 'Access,
4990 S_Name_Proj 'Access,
4991 S_Name_Verbose 'Access,
4992 S_Name_Excl 'Access);
4994 ----------------------------------
4995 -- Switches for GNAT PREPROCESS --
4996 ----------------------------------
4998 S_Prep_Assoc : aliased constant S := "/ASSOCIATE=" & '"' &
5000 -- /ASSOCIATE="name=val"
5002 -- Defines a new symbol, associated with value. If no value is given
5003 -- on the command line, then symbol is considered to be True.
5004 -- This qualifier can be used in place of a definition file.
5006 S_Prep_Blank : aliased constant S := "/BLANK_LINES " &
5008 -- /NOBLANK_LINES (D)
5011 -- Causes both preprocessor lines and the lines deleted by preprocessing
5012 -- to be replaced by blank lines in the output source file, thus
5013 -- preserving line numbers in the output file.
5015 S_Prep_Com : aliased constant S := "/COMMENTS " &
5020 -- /COMMENTS causes both preprocessor lines and the lines deleted
5021 -- by preprocessing to be retained in the output source as comments marked
5022 -- with the special string "--! ". This option will result in line numbers
5023 -- being preserved in the output file.
5025 -- /NOCOMMENTS causes both preprocessor lines and the lines deleted by
5026 -- preprocessing to be replaced by blank lines in the output source file,
5027 -- thus preserving line numbers in the output file.
5029 S_Prep_Ref : aliased constant S := "/REFERENCE " &
5034 -- Causes a "Source_Reference" pragma to be generated that references the
5035 -- original input file, so that error messages will use the file name of
5036 -- this original file. Also implies /BLANK_LINES if /COMMENTS is not
5039 S_Prep_Remove : aliased constant S := "/REMOVE " &
5044 -- Preprocessor lines and deleted lines are completely removed from the
5047 S_Prep_Replace : aliased constant S := "/REPLACE_IN_COMMENTS " &
5049 -- /NOREPLACE_IN_COMMENTS (D)
5050 -- /REPLACE_IN_COMMENTS
5052 -- Causes preprocessor to scan comments and perform replacements on
5053 -- any $symbol occurrences within the comment text.
5055 S_Prep_Symbols : aliased constant S := "/SYMBOLS " &
5060 -- Causes a sorted list of symbol names and values to be listed on
5063 S_Prep_Undef : aliased constant S := "/UNDEFINED " &
5068 Prep_Switches : aliased constant Switches :=
5069 (S_Prep_Assoc 'Access,
5070 S_Prep_Blank 'Access,
5073 S_Prep_Remove 'Access,
5074 S_Prep_Replace 'Access,
5075 S_Prep_Symbols 'Access,
5076 S_Prep_Undef 'Access);
5078 ------------------------------
5079 -- Switches for GNAT PRETTY --
5080 ------------------------------
5082 S_Pretty_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5084 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
5086 -- Add directories to the project search path.
5088 S_Pretty_Align : aliased constant S := "/ALIGN=" &
5101 "COMPONENT_CLAUSES " &
5103 -- /ALIGN[=align-option, align-option, ...]
5105 -- Set alignments. By default, all alignments (colons in declarations,
5106 -- initialisations in declarations, assignments and arrow delimiters) are
5109 -- align-option may be one of the following:
5111 -- OFF (D) Set all alignments to OFF
5112 -- COLONS Set alignments of colons in declarations to ON
5113 -- DECLARATIONS Set alignments of initialisations in declarations
5115 -- STATEMENTS Set alignments of assignments statements to ON
5116 -- ARROWS Set alignments of arrow delimiters to ON.
5117 -- COMPONENT_CLAUSES Set alignments of AT keywords in component
5120 -- Specifying one of the ON options without first specifying the OFF
5121 -- option has no effect, because by default all alignments are set to ON.
5123 S_Pretty_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
5125 -- /NOALL_PROJECTS (D)
5127 -- When GNAT PRETTY is used with a Project File and no source is
5128 -- specified, the underlying tool gnatpp is called for all the
5129 -- sources of all the Project Files in the project tree.
5131 S_Pretty_Attrib : aliased constant S := "/ATTRIBUTE_CASING=" &
5138 -- /ATTRIBUTE_CASING[=casing-option]
5140 -- Set the case of the attributes. By default the attributes are in mixed
5142 -- casing-option may be one of the following:
5148 S_Pretty_Comments : aliased constant S := "/COMMENTS_LAYOUT=" &
5153 "STANDARD_INDENT " &
5161 -- /COMMENTS_LAYOUT[=layout-option, layout-option, ...]
5163 -- Set the comment layout. By default, comments use the GNAT style
5164 -- comment line indentation.
5166 -- layout-option may be one of the following:
5168 -- UNTOUCHEDÂ Â Â Â Â Â Â Â Â Â All the comments remain unchanged
5169 -- DEFAULT (D) GNAT style comment line indentation
5170 -- STANDARD_INDENT Standard comment line indentation
5171 -- GNAT_BEGINNING GNAT style comment beginning
5172 -- REFORMAT Reformat comment blocks
5173 -- KEEP_SPECIAL Keep unchanged special form comments
5175 -- All combinations of layout options are allowed, except for DEFAULT
5176 -- and STANDARD_INDENT which are mutually exclusive, and also if
5177 -- UNTOUCHED is specified, this must be the only option.
5179 -- The difference between "GNAT style comment line indentation" and
5180 -- "standard comment line indentation" is the following: for standard
5181 -- comment indentation, any comment line is indented as if it were
5182 -- a declaration or statement at the same place.
5183 -- For GNAT style comment indentation, comment lines which are
5184 -- immediately followed by if or case statement alternative, record
5185 -- variant or 'begin' keyword are indented as the keyword that follows
5188 -- Standard indentation:
5197 -- GNAT style indentation:
5206 -- Option "GNAT style comment beginning" means that for each comment
5207 -- which is not considered as non-formattable separator (that is, the
5208 -- comment line contains only dashes, or a comment line ends with two
5209 -- dashes), there will be at least two spaces between starting "--" and
5210 -- the first non-blank character of the comment.
5212 S_Pretty_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
5214 -- /CONFIGURATION_PRAGMAS_FILE=file
5216 -- Specify a configuration pragmas file that need to be passed to the
5219 S_Pretty_Constr : aliased constant S := "/CONSTRUCT_LAYOUT=" &
5226 -- /CONSTRUCT_LAYOUT[=construct-option]
5228 -- Set construct layout. Default is GNAT style layout.
5229 -- construct-option may be one of the following:
5235 -- The difference between GNAT style and Compact layout on one hand
5236 -- and Uncompact layout on the other hand can be illustrated by the
5237 -- following examples:
5239 -- GNAT style and Uncompact layout
5242 -- type q is record type q is
5243 -- a : integer; record
5244 -- b : integer; a : integer;
5245 -- end record; b : integer;
5249 -- Block : declare Block :
5250 -- A : Integer := 3; declare
5251 -- begin A : Integer := 3;
5252 -- Proc (A, A); begin
5253 -- end Block; Proc (A, A);
5256 -- Clear : for J in 1 .. 10 loop Clear :
5257 -- A (J) := 0; for J in 1 .. 10 loop
5258 -- end loop Clear; A (J) := 0;
5262 -- A further difference between GNAT style layout and compact layout is
5263 -- that in GNAT style layout compound statements, return statements and
5264 -- bodies are always separated by empty lines.
5266 S_Pretty_Comind : aliased constant S := "/CONTINUATION_INDENT=#" &
5268 -- /CONTINUATION_INDENT=nnn
5270 -- Indentation level for continuation lines, nnn from 1 .. 9.
5271 -- The default value is one less then the (normal) indentation level,
5272 -- unless the indentation is set to 1: in that case the default value for
5273 -- continuation line indentation is also 1.
5275 S_Pretty_Compact_Is : aliased constant S := "/NO_SEPARATE_IS " &
5279 -- Do not place the IS keyword on a separate line in a subprogram body in
5280 -- case if the specification occupies more then one line.
5282 S_Pretty_Sep_Loop_Then : aliased constant S := "/SEPARATE_LOOP_THEN " &
5283 "--separate-loop-then";
5284 -- /SEPARATE_LOOP_THEN
5286 -- Place the THEN keyword in IF statement and the LOOP keyword in for-
5287 -- and while-loops on a separate line.
5289 S_Pretty_N_Sep_Loop_Then : aliased constant S := "/NO_SEPARATE_LOOP_THEN " &
5290 "--no-separate-loop-then";
5291 -- /NO_SEPARATE_LOOP_THEN
5293 -- Do not place the THEN keyword in IF statement and the LOOP keyword in
5294 -- for- and while-loops on a separate line.
5296 S_Pretty_Use_On_New_Line : aliased constant S := "/USE_ON_NEW_LINE " &
5297 "--use-on-new-line";
5300 -- Start any USE clause that is a part of a context clause from a
5303 S_Pretty_Stnm_On_Nw_Line : aliased constant S := "/STMT_NAME_ON_NEW_LINE " &
5304 "--separate-stmt-name";
5305 -- /STMT_NAME_ON_NEW_LINE
5307 -- For named block and loop statements use a separate line for the
5308 -- statement name, but do not use an extra indentation level for the
5309 -- statement itself.
5311 S_Pretty_Eol : aliased constant S := "/END_OF_LINE=" &
5320 -- /END_OF_LINE=[option]
5322 -- Specifies the form of the line terminators in the produced source.
5323 -- By default, the form of the line terminator depends on the platforms.
5324 -- On Unix and VMS, it is a Line Feed (LF) chararcter. On Windows (DOS),
5325 -- It is a Carriage Return (CR) followed by a Line Feed.
5326 -- The Options DOS and CRLF are equivalent. The options UNIX and LF are
5329 S_Pretty_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5331 -- /EXTERNAL_REFERENCE="name=val"
5333 -- Specifies an external reference to the project manager. Useful only if
5334 -- /PROJECT_FILE is used.
5337 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5339 S_Pretty_Current : aliased constant S := "/CURRENT_DIRECTORY " &
5341 -- /CURRENT_DIRECTORY (D)
5343 -- Look for source files in the current working directory.
5345 -- /NOCURRENT_DIRECTORY
5346 -- Do not look for source files in the current working directory.
5348 S_Pretty_Dico : aliased constant S := "/DICTIONARY=*" &
5350 -- /DICTIONARY=(file_name, ...)
5352 -- Use each specified file as a dictionary file that defines the casing
5353 -- for a set of specified names, thereby overriding the effect on these
5354 -- names by any explicit or implicit /NAME_CASING qualifier.
5356 -- GNAT PRETTY implicitly uses a default dictionary file to define the
5357 -- casing for the Ada predefined names and the names declared in the GNAT
5360 -- The structure of a dictionary file, and details on the conventions
5361 -- used in the default dictionary file, are defined in the GNAT User's
5364 S_Pretty_Encoding : aliased constant S := "/RESULT_ENCODING=" &
5377 -- /RESULT_ENCODING[=encoding-type]
5379 -- Specify the wide character encoding method used when writtimg the
5380 -- reformatted code in the result file. 'encoding-type' is one of the
5383 -- BRACKETS (D) Brackets encoding.
5385 -- HEX Hex ESC encoding.
5387 -- UPPER Upper half encoding.
5389 -- SHIFT_JIS Shift-JIS encoding.
5391 -- EUC EUC Encoding.
5393 -- UTF8 UTF-8 encoding.
5395 -- See 'HELP GNAT COMPILE /WIDE_CHARACTER_ENCODING' for an explanation
5396 -- about the different character encoding methods.
5398 S_Pretty_Files : aliased constant S := "/FILES=@" &
5402 -- Take as arguments the files that are listed in the specified
5405 S_Pretty_Forced : aliased constant S := "/FORCED_OUTPUT=@" &
5407 -- /FORCED_OUTPUT=file
5409 -- Write the output into the specified file, overriding any possibly
5412 S_Pretty_Formfeed : aliased constant S := "/FORM_FEED_AFTER_PRAGMA_PAGE " &
5414 -- /FORM_FEED_AFTER_PRAGMA_PAGE
5416 -- When there is a pragma Page in the source, insert a Form Feed
5417 -- character immediately after the semicolon that follows the pragma
5420 S_Pretty_Indent : aliased constant S := "/INDENTATION_LEVEL=#" &
5422 -- /INDENTATION_LEVEL=nnn
5424 -- Specify the number of spaces to add for each indentation level.
5425 -- nnn must be between 1 and 9. The default is 3.
5427 S_Pretty_Keyword : aliased constant S := "/KEYWORD_CASING=" &
5432 -- /KEYWORD_CASING[=keyword-option]
5434 -- Specify the case of Ada keywords. The default is keywords in lower
5436 -- keyword-option may be one of the following:
5441 S_Pretty_Maxlen : aliased constant S := "/LINE_LENGTH_MAX=#" &
5443 -- /LINE_LENGTH_MAX=nnn
5445 -- Set the maximum line length, nnn from 32 ..256. The default is 79.
5447 S_Pretty_Maxind : aliased constant S := "/MAX_INDENT=#" &
5451 -- Do not use an additional indentation level for case alternatives
5452 -- and variants if their number is nnn or more. The default is 10.
5453 -- If nnn is zero, an additional indentation level is used for any number
5454 -- of case alternatives and variants.
5456 S_Pretty_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5463 -- /MESSAGES_PROJECT_FILE[=messages-option]
5465 -- Specifies the "verbosity" of the parsing of project files.
5466 -- messages-option may be one of the following:
5468 -- DEFAULT (D) No messages are output if there is no error or warning.
5470 -- MEDIUM A small number of messages are output.
5472 -- HIGH A great number of messages are output, most of them not
5473 -- being useful for the user.
5475 S_Pretty_Names : aliased constant S := "/NAME_CASING=" &
5484 -- /NAME_CASING[=name-option]
5486 -- Specify the casing of names.
5487 -- 'name-option' may be one of:
5489 -- AS_DECLARED (D) Name casing for defining occurrences are as they
5490 -- appear in the source file.
5492 -- LOWER_CASE Names are in lower case.
5494 -- UPPER_CASE Names are in upper case.
5496 -- MIXED_CASE Names are in mixed case.
5498 S_Pretty_No_Backup : aliased constant S := "/NO_BACKUP " &
5500 -- /REPLACE_NO_BACKUP
5502 -- Replace the argument source with the pretty-printed source without
5503 -- creating any backup copy of the argument source.
5505 S_Pretty_No_Labels : aliased constant S := "/NO_MISSED_LABELS " &
5507 -- /NO_MISSED_LABELS
5509 -- Do not insert missing end/exit labels. The end label is the name of
5510 -- a construct that may optionally appear at the end of the construct.
5511 -- This includes the names of packages and subprograms.
5512 -- Similarly, the exit label is the name of a loop that may appear as the
5513 -- argument of an exit statement within the loop. By default, GNAT PRETTY
5514 -- inserts these end/exit labels when they are absent in the original
5515 -- source. This qualifier /NO_MISSED_LABELS suppresses this insertion,
5516 -- so that the formatted source reflects the original.
5518 S_Pretty_Notabs : aliased constant S := "/NOTABS " &
5522 -- Replace all tabulations in comments with spaces.
5524 S_Pretty_Output : aliased constant S := "/OUTPUT=@" &
5528 -- Write the output to the specified file. If the file already exists,
5529 -- an error is reported.
5531 S_Pretty_Override : aliased constant S := "/OVERRIDING_REPLACE " &
5533 -- /NOOVERRIDING_REPLACE (D)
5534 -- /OVERRIDING_REPLACE
5536 -- Replace the argument source with the pretty-printed source and copy the
5537 -- argument source into filename.NPP, overriding any existing file if
5540 S_Pretty_Pragma : aliased constant S := "/PRAGMA_CASING=" &
5547 -- /PRAGMA_CASING[=pragma-option]
5549 -- Set the case of pragma identifiers. The default is Mixed case.
5550 -- pragma-option may be one of the following:
5556 S_Pretty_Project : aliased constant S := "/PROJECT_FILE=<" &
5558 -- /PROJECT_FILE=filename
5560 -- Specifies the main project file to be used. The project files rooted
5561 -- at the main project file will be parsed before any other processing to
5562 -- set the building environment.
5564 S_Pretty_Replace : aliased constant S := "/REPLACE " &
5569 -- Replace the argument source with the pretty-printed source and copy the
5570 -- argument source into filename.NPP. If filename.NPP already exists,
5571 -- report an error and exit.
5573 S_Pretty_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
5575 -- /RUNTIME_SYSTEM=xxx
5577 -- Compile against an alternate runtime system named xxx or RTS-xxx.
5579 S_Pretty_Search : aliased constant S := "/SEARCH=*" &
5581 -- /SEARCH=(directory[,...])
5583 -- When looking for source files also look in directories specified.
5585 S_Pretty_Specific : aliased constant S := "/SPECIFIC_CASING " &
5589 -- Do not use the default dictionary file; instead, use the casing
5590 -- defined by a qualifier /NAME_CASING and/or any explicit dictionary
5591 -- file specified by a qualifier /DICTIONARY.
5593 S_Pretty_Standard : aliased constant S := "/STANDARD_OUTPUT " &
5595 -- /NOSTANDARD_OUTPUT (D)
5598 -- Redirect the output to the standard output.
5600 S_Pretty_Verbose : aliased constant S := "/VERBOSE " &
5605 -- Verbose mode; GNAT PRETTY generates version information and then a
5606 -- trace of the actions it takes to produce or obtain the ASIS tree.
5608 S_Pretty_Warnings : aliased constant S := "/WARNINGS " &
5613 -- Issue a warning to the standard error stream if it is not possible
5614 -- to provide the required layout in the result source.
5615 -- By default such warnings are not activated.
5617 Pretty_Switches : aliased constant Switches :=
5618 (S_Pretty_Add 'Access,
5619 S_Pretty_Align 'Access,
5620 S_Pretty_All_Prjs 'Access,
5621 S_Pretty_Attrib 'Access,
5622 S_Pretty_Comments 'Access,
5623 S_Pretty_Compact_Is 'Access,
5624 S_Pretty_Config 'Access,
5625 S_Pretty_Constr 'Access,
5626 S_Pretty_Comind 'Access,
5627 S_Pretty_Current 'Access,
5628 S_Pretty_Dico 'Access,
5629 S_Pretty_Eol 'Access,
5630 S_Pretty_Ext 'Access,
5631 S_Pretty_Encoding 'Access,
5632 S_Pretty_Files 'Access,
5633 S_Pretty_Forced 'Access,
5634 S_Pretty_Formfeed 'Access,
5635 S_Pretty_Indent 'Access,
5636 S_Pretty_Keyword 'Access,
5637 S_Pretty_Maxlen 'Access,
5638 S_Pretty_Maxind 'Access,
5639 S_Pretty_Mess 'Access,
5640 S_Pretty_Names 'Access,
5641 S_Pretty_No_Backup 'Access,
5642 S_Pretty_No_Labels 'Access,
5643 S_Pretty_Notabs 'Access,
5644 S_Pretty_Output 'Access,
5645 S_Pretty_Override 'Access,
5646 S_Pretty_Pragma 'Access,
5647 S_Pretty_Replace 'Access,
5648 S_Pretty_Project 'Access,
5649 S_Pretty_RTS 'Access,
5650 S_Pretty_Search 'Access,
5651 S_Pretty_Sep_Loop_Then 'Access,
5652 S_Pretty_N_Sep_Loop_Then'Access,
5653 S_Pretty_Use_On_New_Line'Access,
5654 S_Pretty_Stnm_On_Nw_Line'Access,
5655 S_Pretty_Specific 'Access,
5656 S_Pretty_Standard 'Access,
5657 S_Pretty_Verbose 'Access,
5658 S_Pretty_Warnings 'Access);
5660 ------------------------------
5661 -- Switches for GNAT SHARED --
5662 ------------------------------
5664 S_Shared_Debug : aliased constant S := "/DEBUG=" &
5673 -- /DEBUG[=debug-option]
5676 -- Specifies the amount of debugging information included. 'debug-option'
5677 -- is one of the following:
5679 -- ALL (D) Include full debugging information.
5681 -- NONE Provide no debugging information. Same as /NODEBUG.
5683 -- TRACEBACK Provide sufficient debug information for a traceback.
5685 -- NOTRACEBACK Same as NONE.
5687 S_Shared_Image : aliased constant S := "/IMAGE=@" &
5689 -- /IMAGE=image-name
5691 -- 'image-name' specifies the name for the generated shared library.
5693 S_Shared_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
5694 "--for-linker=IDENT=" &
5696 -- /IDENTIFICATION="<string>"
5698 -- "<string>" specifies the string to be stored in the image file ident-
5699 -- ification field in the image header. It overrides any pragma Ident
5700 -- specified string.
5702 S_Shared_Nofiles : aliased constant S := "/NOSTART_FILES " &
5706 -- Link in default image initialization and startup functions.
5708 S_Shared_Noinhib : aliased constant S := "/NOINHIBIT-IMAGE " &
5709 "--for-linker=--noinhibit-exec";
5712 -- Delete image if there are errors or warnings.
5714 S_Shared_Verb : aliased constant S := "/VERBOSE " &
5719 -- Causes additional information to be output, including a full list of
5720 -- the included object files. This switch option is most useful when you
5721 -- want to see what set of object files are being used in the link step.
5723 S_Shared_ZZZZZ : aliased constant S := "/<other> " &
5727 -- Any other switch transmitted to the underlying linker.
5729 Shared_Switches : aliased constant Switches :=
5730 (S_Shared_Debug 'Access,
5731 S_Shared_Image 'Access,
5732 S_Shared_Ident 'Access,
5733 S_Shared_Nofiles 'Access,
5734 S_Shared_Noinhib 'Access,
5735 S_Shared_Verb 'Access,
5736 S_Shared_ZZZZZ 'Access);
5738 -----------------------------
5739 -- Switches for GNAT STACK --
5740 -----------------------------
5742 S_Stack_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5744 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
5746 -- Add directories to the project search path.
5748 S_Stack_All : aliased constant S := "/ALL_SUBPROGRAMS " &
5750 -- /NOALL_SUBPROGRAMS (D)
5753 -- Consider all subprograms as entry points.
5755 S_Stack_All_Cycles : aliased constant S := "/ALL_CYCLES " &
5757 -- /NOALL_CYCLES (D)
5760 -- Extract all possible cycles in the call graph.
5762 S_Stack_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
5764 -- /NOALL_PROJECTS (D)
5767 -- When GNAT STACK is used with a Project File and no source is
5768 -- specified, the underlying tool gnatstack is called for all the
5769 -- units of all the Project Files in the project tree.
5771 S_Stack_Debug : aliased constant S := "/DEBUG " &
5776 -- Generate internal debug information.
5778 S_Stack_Directory : aliased constant S := "/DIRECTORY=*" &
5780 -- /DIRECTORY=(direc[,...])
5782 -- When looking for .ci files look also in directories specified.
5784 S_Stack_Entries : aliased constant S := "/ENTRIES=*" &
5787 -- /ENTRY=(entry_point[,...])
5789 -- Name of symbol to be used as entry point for the analysis.
5791 S_Stack_Files : aliased constant S := "/FILES=@" &
5795 -- Take as arguments the files that are listed in the specified
5798 S_Stack_Help : aliased constant S := "/HELP " &
5803 -- Output a message explaining the usage of gnatstack.
5805 S_Stack_List : aliased constant S := "/LIST=#" &
5809 -- Print the nnn subprograms requiring the biggest local stack usage. By
5810 -- default none will be displayed.
5812 S_Stack_Order : aliased constant S := "/ORDER=" &
5817 -- /ORDER[=order-option]
5819 -- Specifies the order for displaying the different call graphs.
5820 -- order-option may be one of the following:
5822 -- STACK (D) Select stack usage order
5824 -- ALPHABETICAL Select alphabetical order
5826 S_Stack_Path : aliased constant S := "/PATH " &
5831 -- Print all the subprograms that make up the worst-case path for every
5834 S_Stack_Project : aliased constant S := "/PROJECT_FILE=<" &
5836 -- /PROJECT_FILE=filename
5838 -- Specifies the main project file to be used. The project files rooted
5839 -- at the main project file will be parsed before the invocation of
5842 S_Stack_Output : aliased constant S := "/OUTPUT=@" &
5846 -- Name of the file containing the generated graph (VCG format).
5848 S_Stack_Regexp : aliased constant S := "/EXPRESSION=|" &
5851 -- /EXPRESSION=regular-expression
5853 -- Any symbol matching the regular expression will be considered as a
5854 -- potential entry point for the analysis.
5856 S_Stack_Unbounded : aliased constant S := "/UNBOUNDED=#" &
5860 -- Default stack size to be used for unbounded (dynamic) frames.
5862 S_Stack_Unknown : aliased constant S := "/UNKNOWN=#" &
5866 -- Default stack size to be used for unknown (external) calls.
5868 S_Stack_Verbose : aliased constant S := "/VERBOSE " &
5873 -- Specifies the amount of information to be displayed about the
5874 -- different subprograms. In verbose mode the full location of the
5875 -- subprogram will be part of the output, as well as detailed information
5876 -- about inaccurate data.
5878 S_Stack_Warnings : aliased constant S := "/WARNINGS=" &
5889 -- /WARNINGS[=(keyword[,...])]
5891 -- The following keywords are supported:
5893 -- ALL Turn on all optional warnings
5895 -- CYCLES Turn on warnings for cycles
5897 -- UNBOUNDED Turn on warnings for unbounded frames
5899 -- EXTERNAL Turn on warnings for external calls
5901 -- INDIRECT Turn on warnings for indirect calls
5903 Stack_Switches : aliased constant Switches :=
5904 (S_Stack_Add 'Access,
5905 S_Stack_All 'Access,
5906 S_Stack_All_Cycles 'Access,
5907 S_Stack_All_Prjs 'Access,
5908 S_Stack_Debug 'Access,
5909 S_Stack_Directory 'Access,
5910 S_Stack_Entries 'Access,
5911 S_Stack_Files 'Access,
5912 S_Stack_Help 'Access,
5913 S_Stack_List 'Access,
5914 S_Stack_Order 'Access,
5915 S_Stack_Path 'Access,
5916 S_Stack_Project 'Access,
5917 S_Stack_Output 'Access,
5918 S_Stack_Regexp 'Access,
5919 S_Stack_Unbounded 'Access,
5920 S_Stack_Unknown 'Access,
5921 S_Stack_Verbose 'Access,
5922 S_Stack_Warnings 'Access);
5924 ----------------------------
5925 -- Switches for GNAT STUB --
5926 ----------------------------
5928 S_Stub_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5930 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
5932 -- Add directories to the project search path.
5934 S_Stub_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
5936 -- /CONFIGURATION_PRAGMAS_FILE=filespec
5938 -- Specifies a configuration pragmas file that must be taken into account
5941 S_Stub_Current : aliased constant S := "/CURRENT_DIRECTORY " &
5943 -- /CURRENT_DIRECTORY (D)
5944 -- /NOCURRENT_DIRECTORY
5946 -- Look for source, library or object files in the default directory.
5948 S_Stub_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5950 -- /EXTERNAL_REFERENCE="name=val"
5952 -- Specifies an external reference to the project manager. Useful only if
5953 -- /PROJECT_FILE is used.
5956 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5958 S_Stub_Full : aliased constant S := "/FULL " &
5963 -- If the destination directory already contains a file with the name of
5964 -- the body file for the argument file spec, replace it with the generated
5965 -- body stub. If /FULL is not used and there is already a body file, this
5966 -- existing body file is not replaced.
5968 S_Stub_Header : aliased constant S := "/HEADER=" &
5973 -- /HEADER[=header-option]
5975 -- Specifies the form of the comment header above the generated body stub.
5976 -- If no /HEADER qualifier is specified, there is no comment header.
5977 -- header-option is one of the following:
5980 -- GENERAL (D) Put a sample comment header into the body stub.
5982 -- SPEC Put the comment header (i.e., all the comments
5983 -- preceding the compilation unit) from the source of the
5984 -- library unit declaration into the body stub.
5986 S_Stub_Indent : aliased constant S := "/INDENTATION=#" &
5990 -- (nnn is a non-negative integer). Set the indentation level in the
5991 -- generated body stub to nnn. nnn=0 means "no indentation".
5992 -- Default insdentation is 3.
5994 S_Stub_Keep : aliased constant S := "/KEEP " &
5999 -- Do not delete the tree file (i.e., the snapshot of the compiler
6000 -- internal structures used by gnatstub) after creating the body stub.
6002 S_Stub_Length : aliased constant S := "/LINE_LENGTH=#" &
6006 -- (n is a non-negative integer). Set the maximum line length in the body
6007 -- stub to nnn. Default is 78.
6009 S_Stub_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6016 -- /MESSAGES_PROJECT_FILE[=messages-option]
6018 -- Specifies the "verbosity" of the parsing of project files.
6019 -- messages-option may be one of the following:
6021 -- DEFAULT (D) No messages are output if there is no error or warning.
6023 -- MEDIUM A small number of messages are output.
6025 -- HIGH A great number of messages are output, most of them not
6026 -- being useful for the user.
6028 S_Stub_Output : aliased constant S := "/OUTPUT=@" &
6032 -- Body file name. This should be set if the argument file name does not
6033 -- follow the GNAT file naming conventions. If this switch is omitted,
6034 -- the default name for the body will be obtained from the argument file
6035 -- name according to the GNAT file naming conventions.
6037 S_Stub_Project : aliased constant S := "/PROJECT_FILE=<" &
6039 -- /PROJECT_FILE=filename
6041 -- Specifies the main project file to be used. The project files rooted
6042 -- at the main project file will be parsed before any other processing.
6043 -- The source and object directories to be searched will be communicated
6044 -- to gnatstub through logical names ADA_PRJ_INCLUDE_FILE and
6045 -- ADA_PRJ_OBJECTS_FILE.
6047 S_Stub_Quiet : aliased constant S := "/QUIET " &
6052 -- Quiet mode: do not generate a confirmation when a body is successfully
6053 -- created, and do not generate a message when a body is not required for
6054 -- an argument unit.
6056 S_Stub_Search : aliased constant S := "/SEARCH=*" &
6058 -- /SEARCH=(directory[,...])
6060 -- When looking for source files also look in directories specified.
6062 S_Stub_Tree : aliased constant S := "/TREE_FILE=" &
6069 -- /TREE_FILE[=treefile-option]
6071 -- Specify what to do with the tree file.
6072 -- treefile-option is one of the following:
6074 -- OVERWRITE (D) Overwrite the existing tree file. If the current
6075 -- directory already contains the file which, according
6076 -- to the GNAT file naming rules should be considered
6077 -- as a tree file for the argument source file,
6078 -- gnatstub will refuse to create the tree file needed
6079 -- to create a sample body unless this option is chosen.
6081 -- SAVE Do not remove the tree file (i.e., the snapshot
6082 -- of the compiler internal structures used by gnatstub)
6083 -- after creating the body stub.
6085 -- REUSE Reuse the tree file (if it exists) instead of
6087 -- Instead of creating the tree file for the library
6088 -- unit declaration, gnatstub tries to find it in the
6089 -- current directory and use it for creating a body.
6090 -- If the tree file is not found, no body is created.
6091 -- This option also implies `SAVE', whether or not the
6092 -- latter is set explicitly.
6094 S_Stub_Verbose : aliased constant S := "/VERBOSE " &
6099 -- Verbose mode: generate version information.
6101 Stub_Switches : aliased constant Switches :=
6102 (S_Stub_Add 'Access,
6103 S_Stub_Config 'Access,
6104 S_Stub_Current 'Access,
6106 S_Stub_Full 'Access,
6107 S_Stub_Header 'Access,
6108 S_Stub_Indent 'Access,
6109 S_Stub_Keep 'Access,
6110 S_Stub_Length 'Access,
6111 S_Stub_Mess 'Access,
6112 S_Stub_Output 'Access,
6113 S_Stub_Project 'Access,
6114 S_Stub_Quiet 'Access,
6115 S_Stub_Search 'Access,
6116 S_Stub_Tree 'Access,
6117 S_Stub_Verbose 'Access);
6119 ----------------------------
6120 -- Switches for GNAT XREF --
6121 ----------------------------
6123 S_Xref_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6125 -- /ADD_PROJECT_SEARCH_PATH==(directory[,...])
6127 -- Add directories to the project search path.
6129 S_Xref_All : aliased constant S := "/ALL_FILES " &
6134 -- If this switch is present, FIND and XREF will parse the read-only
6135 -- files found in the library search path. Otherwise, these files will
6136 -- be ignored. This option can be used to protect Gnat sources or your
6137 -- own libraries from being parsed, thus making FIND and XREF much
6138 -- faster, and their output much smaller.
6140 S_Xref_Deriv : aliased constant S := "/DERIVED_TYPES " &
6142 -- /NODERIVED_TYPES (D)
6145 -- Output the parent type reference for each matching derived types.
6147 S_Xref_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6149 -- /EXTERNAL_REFERENCE="name=val"
6151 -- Specifies an external reference to the project manager. Useful only if
6152 -- /PROJECT_FILE is used.
6155 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6157 S_Xref_Full : aliased constant S := "/FULL_PATHNAME " &
6159 -- /NOFULL_PATHNAME (D)
6162 -- If this switch is set, the output file names will be preceded by their
6163 -- directory (if the file was found in the search path). If this switch
6164 -- is not set, the directory will not be printed.
6166 S_Xref_Global : aliased constant S := "/IGNORE_LOCALS " &
6168 -- /NOIGNORE_LOCALS (D)
6171 -- If this switch is set, information is output only for library-level
6172 -- entities, ignoring local entities. The use of this switch may
6173 -- accelerate FIND and XREF.
6175 S_Xref_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6182 -- /MESSAGES_PROJECT_FILE[=messages-option]
6184 -- Specifies the "verbosity" of the parsing of project files.
6185 -- messages-option may be one of the following:
6187 -- DEFAULT (D) No messages are output if there is no error or warning.
6189 -- MEDIUM A small number of messages are output.
6191 -- HIGH A great number of messages are output, most of them not
6192 -- being useful for the user.
6194 S_Xref_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
6198 -- Do not look for sources in the system default directory.
6200 S_Xref_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
6204 -- Do not look for library files in the system default directory.
6206 S_Xref_Object : aliased constant S := "/OBJECT_SEARCH=*" &
6208 -- /OBJECT_SEARCH=(directory,...)
6210 -- When searching for library and object files, look in the specified
6211 -- directories. The order in which library files are searched is the same
6214 S_Xref_Project : aliased constant S := "/PROJECT=@" &
6218 -- Specify a project file to use. By default, FIND and XREF will try to
6219 -- locate a project file in the current directory.
6221 -- If a project file is either specified or found by the tools, then the
6222 -- content of the source directory and object directory lines are added
6223 -- as if they had been specified respectively by /SOURCE_SEARCH and
6226 S_Xref_Prj : aliased constant S := "/PROJECT_FILE=<" &
6228 -- /PROJECT_FILE=filename
6230 -- Specifies the main project file to be used. The project files rooted
6231 -- at the main project file will be parsed before doing any processing.
6232 -- The source and object directories to be searched will be communicated
6233 -- to gnatxref through logical names ADA_PRJ_INCLUDE_FILE and
6234 -- ADA_PRJ_OBJECTS_FILE.
6236 S_Xref_Search : aliased constant S := "/SEARCH=*" &
6238 -- /SEARCH=(directory,...)
6241 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
6243 S_Xref_Source : aliased constant S := "/SOURCE_SEARCH=*" &
6245 -- /SOURCE_SEARCH=(directory,...)
6247 -- When looking for source files also look in the specified directories.
6248 -- The order in which source file search is undertaken is the same as for
6251 S_Xref_Output : aliased constant S := "/UNUSED " &
6253 -- /SOURCE_SEARCH=(directory,...)
6255 -- When looking for source files also look in the specified directories.
6256 -- The order in which source file search is undertaken is the same as for
6259 S_Xref_Tags : aliased constant S := "/TAGS " &
6264 -- Print a 'tags' file for vi.
6266 Xref_Switches : aliased constant Switches :=
6267 (S_Xref_Add 'Access,
6269 S_Xref_Deriv 'Access,
6271 S_Xref_Full 'Access,
6272 S_Xref_Global 'Access,
6273 S_Xref_Mess 'Access,
6274 S_Xref_Nostinc 'Access,
6275 S_Xref_Nostlib 'Access,
6276 S_Xref_Object 'Access,
6277 S_Xref_Project 'Access,
6279 S_Xref_Search 'Access,
6280 S_Xref_Source 'Access,
6281 S_Xref_Output 'Access,
6282 S_Xref_Tags 'Access);