Skip to content

Commit afcd3af

Browse files
committed
main: provide more information about a warning
The context information of the warning message: ctags: Warning: definition tag for refonly kind(foo) is made: bar, was too limited to fix the issue behind the message. Signed-off-by: Masatake YAMATO <[email protected]>
1 parent f9c2d52 commit afcd3af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
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

0 commit comments

Comments
 (0)