Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 772 Bytes

CLANG-FORMAT.md

File metadata and controls

17 lines (10 loc) · 772 Bytes

clang-format

Use this clang-format config to format new and modified code.

Install

For VSCode install and use clangd plugin https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd

For other development environments, you should install clang-format-18 manually.

sudo apt-get install clang-format-18

Configure the plugin for your favorite code editor to use the config to format the code. For VS Code, for example, you can use https://marketplace.visualstudio.com/items?itemName=xaver.clang-format

Note. clang-format searches for the .clang-format configuration file in the directory of the formatted file and in all parent directories. Therefore, no additional settings are required.