# aro_translate_c: do not translate \_Static_assert declarations · gitcafe/zig

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

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

Visibility: public

Requested revision: 5d8e56c2ebf22cc1320aa26d8ed6877bd03036cb

Requested commit: 5d8e56c2ebf22cc1320aa26d8ed6877bd03036cb

Commit: 5d8e56c2ebf22cc1320aa26d8ed6877bd03036cb

Tree: 04d85873cf6a94718cdc29a97d7bb0ab1d598335

Author: Evan Haas

Committer: Evan Haas

## Message

```
aro_translate_c: do not translate _Static_assert declarations

This does not completely ignore static asserts - they are validated by aro
during parsing; any failures will render an error and non-zero exit code.

Emit a warning comment that _Static_asserts are not translated - this
matches the behavior of the existing clang-based translate-c.

Aro currently does not store source locations for _Static_assert
declarations so I've hard-coded token index 0 for now.

```

## Parents

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

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