# clang API bindings: fix enum detection functions · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1bbec59e07faa1f581595f316320fd179dbba785)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1bbec59e07faa1f581595f316320fd179dbba785

Requested commit: 1bbec59e07faa1f581595f316320fd179dbba785

Commit: 1bbec59e07faa1f581595f316320fd179dbba785

Tree: 43f3e01ff1d4350928bbf0beb3e9c01fe90ae850

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
clang API bindings: fix enum detection functions

These functions are intended to emit compile errors when Clang adds new
items to its enums. However, two of them were casting to the Zig enum
and switching on that, which wouldn't detect anything useful.

```

## Parents

- [0f35a1f37ade9cf25707c41711b352174f1e2789](https://git.cafe/gitcafe/zig/commit/0f35a1f37ade9cf25707c41711b352174f1e2789?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1bbec59e07faa1f581595f316320fd179dbba785?format=markdown)
