Add code verifying that all tag types for a language are mapped to some group
commit0333c75a08cfc64b347c8780cc7cd3b9af8d94b1
authorJiří Techet <techet@gmail.com>
Thu, 16 Dec 2021 22:23:04 +0000 (16 23:23 +0100)
committerJiří Techet <techet@gmail.com>
Sun, 10 Apr 2022 12:34:15 +0000 (10 14:34 +0200)
tree06ab1a2e822321d8f4650ca96819737aec9c8d3e
parent3f8733f083e72be58e00ab2dde1e2584fe276cc5
Add code verifying that all tag types for a language are mapped to some group

First, lang_types is constructed to contain all tag types used in
map_LANGUAGE mapping, then, group_types is constructed to contain all
tag types from group_LANGUAGE. Since some groups are used for more
languages (e.g. group_C) and contain more tag types than tag types
used for the given language, the check doesn't simply do

group_types != lang_types

but rather

(group_types & lang_types) != lang_types

to eliminate types from the group not used for the given language.
src/tagmanager/tm_parser.c