Skip to content

Python clang.cindex CursorKind enum missing case(s?) #60252

@rjra100

Description

@rjra100

The list of cursor kinds supported by clang.cindex (here) is currently missing case 604, CXCursor_ConceptDecl (see here).
Code which attempts to call node.kind is liable to fail with a ValueError "Unknown template argument kind 604" if invoked with the compiler in C++20 mode. In most cases it can be worked around by catching the error and returning something something else (e.g. CursorKind.UNEXPOSED_DECL) as a placeholder, but obviously it won't be able to do anything that actually requires parsing a Concept.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions