2009-07-13 Robert Dewar <dewar@adacore.com>
+ * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
+ & comment edits.
+
+2009-07-13 Robert Dewar <dewar@adacore.com>
+
* opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
-- Output an error message. If Data.Error_Report is null, simply call
-- Prj.Err.Error_Msg. Otherwise, disregard Flag_Location and use
-- Error_Report. If Msg starts with "?", this is a warning, and the
- -- string "Warning :" is adding at the beginning. If Msg starts with "<",
- -- see comment for Err_Vars.Error_Msg_Warn
+ -- string "Warning:" is prepended to the message. If Msg starts with "<",
+ -- see comment for Err_Vars.Error_Msg_Warn.
procedure Search_Directories
(Project : in out Project_Processing_Data;
For_All_Sources : Boolean);
-- Search the source directories to find the sources. If For_All_Sources is
-- True, check each regular file name against the naming schemes of the
- -- different languages. Otherwise consider only the file names in the hash
- -- table Source_Names. If Allow_Duplicate_Basenames, then files with the
- -- same base names are authorized within a project for source-based
- -- languages (never for unit based languages)
+ -- various languages. Otherwise consider only the file names in hash table
+ -- Source_Names. If Allow_Duplicate_Basenames then files with identical
+ -- base names are permitted within a project for source-based languages
+ -- (never for unit based languages).
procedure Check_File
(Project : in out Project_Processing_Data;
-- File_Name is the same as Name, but has been normalized.
-- Display_File_Name, however, has not been normalized.
--
- -- Source_Directory is the directory in which the file
- -- was found. It hasn't been normalized (nor has had links resolved).
- -- It should not end with a directory separator, to avoid duplicates
- -- later on.
+ -- Source_Directory is the directory in which the file was found. It is
+ -- neither normalized nor has had links resolved, and must not end with a
+ -- a directory separator, to avoid duplicates later on.
--
-- If For_All_Sources is True, then all possible file names are analyzed
- -- otherwise only those currently set in the Source_Names htable.
+ -- otherwise only those currently set in the Source_Names hash table.
procedure Check_File_Naming_Schemes
(In_Tree : Project_Tree_Ref;
subtype Known_Casing is Casing_Type range All_Upper_Case .. Mixed_Case;
type Cst_String_Access is access constant String;
+
All_Lower_Case_Image : aliased constant String := "lowercase";
All_Upper_Case_Image : aliased constant String := "UPPERCASE";
Mixed_Case_Image : aliased constant String := "MixedCase";
+
The_Casing_Images : constant array (Known_Casing) of Cst_String_Access :=
- (All_Lower_Case => All_Lower_Case_Image'Access,
- All_Upper_Case => All_Upper_Case_Image'Access,
- Mixed_Case => Mixed_Case_Image'Access);
+ (All_Lower_Case => All_Lower_Case_Image'Access,
+ All_Upper_Case => All_Upper_Case_Image'Access,
+ Mixed_Case => Mixed_Case_Image'Access);
Project_Empty : constant Project_Data :=
(Qualifier => Unspecified,
is
Dont_Care : Boolean;
pragma Warnings (Off, Dont_Care);
+
begin
if not Debug.Debug_Flag_N then
if Current_Verbosity = High then
procedure Delete_All_Temp_Files (Tree : Project_Tree_Ref) is
Dont_Care : Boolean;
pragma Warnings (Off, Dont_Care);
+
Path : Path_Name_Type;
+
begin
if not Debug.Debug_Flag_N then
for Index in
procedure Record_Temp_File
(Tree : Project_Tree_Ref;
- Path : Path_Name_Type) is
+ Path : Path_Name_Type)
+ is
begin
Temp_Files_Table.Append (Tree.Private_Part.Temp_Files, Path);
end Record_Temp_File;
Set_Etype (L, T_F);
end if;
-
end Try_One_Interp;
procedure Analyze_Set_Membership;
Alt : Node_Id;
Index : Interp_Index;
It : Interp;
-
Candidate_Interps : Node_Id;
Common_Type : Entity_Id := Empty;
else
Get_First_Interp (Alt, Index, It);
while Present (It.Typ) loop
- if
- not Has_Compatible_Type (Candidate_Interps, It.Typ)
+ if not
+ Has_Compatible_Type (Candidate_Interps, It.Typ)
then
Remove_Interp (Index);
end if;
+
Get_Next_Interp (Index, It);
end loop;
Get_First_Interp (Alt, Index, It);
+
if No (It.Typ) then
Error_Msg_N ("alternative has no legal type", Alt);
return;
end if;
- -- If alternative is not overloaded, we have a
- -- unique type for all of them.
+ -- If alternative is not overloaded, we have a unique type
+ -- for all of them.
Set_Etype (Alt, It.Typ);
Get_Next_Interp (Index, It);
end loop;
end Resolve_Set_Membership;
- -- start of processing for Resolve_Membership_Op
+ -- Start of processing for Resolve_Membership_Op
begin
if L = Error or else R = Error then