Dims
Dims

Reputation: 51019

Where does CLion's CLangFormat take format settings?

Where does CLion's CLangFormat take format settings?

I have settings in action I don't like. How to change them and/or how to force using of specific clang configuration file?

Upvotes: 1

Views: 1197

Answers (1)

uta
uta

Reputation: 2069

There is no special CLangFormat edition. CLion is using LLVM implementation. There is the default settings, they are the same as LLVM clangformat utility has. To change the setting, just create .clang-format file in your source root and follow the instructions If you are using the latest CLion 2020.1 EAP, you can create this .clang-format automatically at the moment of ClangFormat activation of from the export setting menu.

Upvotes: 1

Related Questions