Built-in types, and derived types that have a built-in type as the base type, do not have any associated TypeMentions. It seems that only user-defined types are mentioned by TypeMention. As far as I can see, this behaviour is not documented anywhere.
This is a problem when running queries where TypeMention is expected to cover all types, such as the macro annotation queries in #8497 (for Linux kernel __user macro).
Built-in types, and derived types that have a built-in type as the base type, do not have any associated
TypeMentions. It seems that only user-defined types are mentioned byTypeMention. As far as I can see, this behaviour is not documented anywhere.This is a problem when running queries where
TypeMentionis expected to cover all types, such as the macro annotation queries in #8497 (for Linux kernel__usermacro).To demonstrate:
typementions.qlmentionedtypes.qltest.cppqlpack.ymlOutput:
The root cause appears to be in the extractor, as the trap file doesn't contain any
type_mentionsthat aren't also queryable asTypeMention:The text was updated successfully, but these errors were encountered: