Clang-format for formatting program options

clang-format seems to make a big mess of blocks like this:

 desc.add_options()("help", "output usage") ("inputDirectory", po::value<boost::filesystem::path>()->required(), "The input path") ("outputDirectory", po::value<boost::filesystem::path>()->required(), "The output path"); 

I know about // clang-format off to not explicitly format the block, but is there a set of configuration rules to make it do something reasonable with this?

+6
source share

Source: https://habr.com/ru/post/1013433/


All Articles