Skip to content

Clang-query silent failures are extremely misleading #119890

Open
@higher-performance

Description

@higher-performance

Example:

int main() { return 0; }
clang-query> m expr(hasType(anyOf(type(), type())))
0 matches.

These should really produce errors -- it's too easy to write a complicated query thinking that anyOf or allOf are working correctly when they aren't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-queryenhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions