EulerChen
V2EX  ›  C++

CMake 文件有可用于流水线的格式化工具么?

  •  
  •   EulerChen ·
    ApsarasX · Mar 17, 2023 · 1699 views
    This topic created in 1177 days ago, the information mentioned may be changed or developed.

    C/C++都有 clang-format 这样的格式化工具,但我并没有找到 CMake 有类似的工具。

    CLion 倒是能格式化 CMake 文件,但不能在命令行和流水线里用。

    github 上搜到了一个 Python 写的cmake_format,但感觉用的人不多,也很久没维护了。

    大家平常都怎么格式化 CMake 文件呢?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2971 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 04:15 · PVG 12:15 · LAX 21:15 · JFK 00:15
    ♥ Do have faith in what you're doing.