# Sema: improve compile error for bad function alignment · gitcafe/zig

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

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

Visibility: public

Requested revision: fc6e111b76764ae00e2c868ad46f39235837e239

Requested commit: fc6e111b76764ae00e2c868ad46f39235837e239

Commit: fc6e111b76764ae00e2c868ad46f39235837e239

Tree: bde27d8b548e01d17a3fac8cfb61abbc396f68ba

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: improve compile error for bad function alignment

 * Integrate more declaratively with src/target.zig
 * Only trigger the check when a function body is found, do not trigger
   for function types.

```

## Parents

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

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