mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 07:38:22 +02:00
check-doc-syntax: Find duplicate "Since:" tags
It makes no sense to say more than one time when some symbol was introduced. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
a184de9064
commit
fcccb1a65a
1 changed files with 4 additions and 1 deletions
|
|
@ -69,6 +69,9 @@ in_doc {
|
|||
}
|
||||
|
||||
/^ \* Since: ([0-9]*.[0-9]*|TBD)$/ {
|
||||
if (doc_has_since != 0) {
|
||||
log_error("Duplicate 'Since' field")
|
||||
}
|
||||
doc_has_since = doc_line
|
||||
}
|
||||
|
||||
|
|
@ -102,4 +105,4 @@ in_doc {
|
|||
END {
|
||||
if (!name_found)
|
||||
log_warning("not found")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue