Skip to content

Commit a0dd591

Browse files
authored
Merge pull request #3195 from masatake/ada-minor-fix
Ada: minor fix
2 parents f978721 + 69ed2a4 commit a0dd591

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

main/entry.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,9 +1503,10 @@ static bool isTagWritable(const tagEntryInfo *const tag)
15031503
}
15041504
else if (isLanguageKindRefOnly(tag->langType, tag->kindIndex))
15051505
{
1506-
error (WARNING, "definition tag for refonly kind(%s) is made: %s",
1506+
error (WARNING, "PARSER BUG: a definition tag for a refonly kind(%s.%s) of is made: %s found in %s.",
1507+
getLanguageName(tag->langType),
15071508
getLanguageKind(tag->langType, tag->kindIndex)->name,
1508-
tag->name);
1509+
tag->name, tag->inputFileName);
15091510
/* This one is not so critical. */
15101511
}
15111512

parsers/ada.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static kindDefinition AdaKinds[] =
165165
{
166166
{ true, 'P', "packspec", "package specifications" },
167167
{ true, 'p', "package", "packages",
168-
.referenceOnly = true, ATTACH_ROLES(AdaPackageRoles) },
168+
.referenceOnly = false, ATTACH_ROLES(AdaPackageRoles) },
169169
{ false, 'T', "typespec", "type specifications" },
170170
{ true, 't', "type", "types" },
171171
{ false, 'U', "subspec", "subtype specifications" },

0 commit comments

Comments
 (0)