mercredi 6 novembre 2019

Is there a way to disable "SpacesInBraces" in clang-format?

I would like this:

int x{ 0 };

To look like this:

int x{0};

But I don't see an option for it in the documentation.

There's:

  • SpacesInAngles
  • SpacesInContainerLiterals
  • SpacesInParentheses
  • SpacesInSquareBrackets

But I don't see that option for braces. Is this doable in clang-format?

Aucun commentaire:

Enregistrer un commentaire