在C ++源文件中仅更改带有clang格式的特定选项

时间:2019-03-21 16:58:06

标签: clang-format

我只需要更改clang格式的PointerAlignment,并保持所有其他选项不变。有可能吗?

我尝试了以下文件:

BasedOnStyle: Google
IndentWidth: 4
Language: Cpp
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left

它更改了PointerAlignment,但应用了Google样式。我也尝试过

BasedOnStyle: none

但是它不起作用。

0 个答案:

没有答案