# pragma-once

[**pragma-once**](https://github.com/trunk-io/plugins/blob/main/linters/pragma-once/README.md) is a linter for C, C++.

You can enable the pragma-once linter with:

```shell
trunk check enable pragma-once
```

![pragma-once example output](https://577236045-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F61Ep9MrYBkJa0Yq3zS1s%2Fuploads%2Fgit-blob-5cfdaaf70e1d6c2846914cc623fe43a1972bd641%2Fpragma-once.gif?alt=media)

## Auto Enabling

pragma-once will never be auto-enabled. It must be enabled manually.

## Links

* [pragma-once site](https://github.com/trunk-io/plugins/blob/main/linters/pragma-once/README.md)
* pragma-once Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/pragma-once)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
