ClangFormat is a formatter for Protobuf and C, C++. You can enable the ClangFormat formatter with:Documentation Index
Fetch the complete documentation index at: https://trunk-4cab4936-sam-gutentag-flaky-tests-new-monitors.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Auto Enabling
ClangFormat will be auto-enabled if a.clang-format config file is present.
Settings
ClangFormat supports the following config files:.clang-format
.trunk/configs and trunk check will still find them. See Moving Linters for more info.
Usage Notes
By default, Trunk uses ClangFormat to additionally format.proto files. However, for this to work, you need to have told clang-format to do so in your .clang-format config file. You can do that by adding the following to the end of your .clang-format file:
.clang-format file:
Links
- ClangFormat site
- ClangFormat Trunk Code Quality integration source
- Trunk Code Quality’s open source plugins repo