Home > OS >  visual studio can't apply clang-format 13
visual studio can't apply clang-format 13

Time:11-28

I'm expecting to use AlignArrayOfStructures, however it's only available in clang-format 13. So I set Custom clang-format.exe to C:/Program Files/LLVM/bin/clang-format.exe.

PS C:\Program Files\LLVM\bin> .\clang-format.exe --version
clang-format version 13.0.0

But I still got a error, it says enter image description here

CodePudding user response:

Reading the manual carefully.

AIAS_Right (in configuration: Right)

AIAS_Right is the enum value, corresponding name in the config is Right. Use

AlignArrayOfStructures: Right
  • Related