[PATCH] D55964: [clang-format][TableGen] Don't add spaces around items in square braces.

Jordan Rupprecht via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 9 10:09:58 PST 2019


rupprecht added a comment.

In D55964#1351348 <https://reviews.llvm.org/D55964#1351348>, @djasper wrote:

> This seem to conceptually be a list of things rather than an array subscript, though, right?  Could we alternatively set SpacesInContainerLiterals to false for LK_TableGen?


That seems to work, e.g. if I manually set the option in the test, but I can't seem to find a way to set a per-language default. `getLLVMStyle()`, which seems to be the default that every style is rooted from, assumes C++ (and does not have the language provided). Is there a good way to workaround that?


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55964/new/

https://reviews.llvm.org/D55964





More information about the cfe-commits mailing list