代码之家  ›  专栏  ›  技术社区  ›  Kyle Knoepfel

字符格式属性前的空格

  •  1
  • Kyle Knoepfel  · 技术社区  · 7 年前

    clang-format 为了格式化我们的C++ 17支持代码库,我们希望在一个与变量相关的属性之前添加一个空间:

    int x[[maybe_unused]] = foo(); // clang-format 6 does this
    int y [[maybe_unused]] = bar(); // we'd like this
    

    .clang-format 文件。

    1 回复  |  直到 7 年前
        1
  •  1
  •   Kyle Knoepfel    7 年前

    这个问题是用计算机解决的 clang-format