我在 CMake 中使用 cpplint:
set(CMAKE_CXX_CPPLINT cpplint;
--filter=-build/include_subdir,-legal/copyright;
--quiet)
但即使 cpplint 产生了一些警告,构建仍然成功。
我找不到将这些警告视为错误的方法(类似于将 -warnings-as-errors
用于 clang-tidy 时)并导致构建失败。
最佳答案
关于cmake - Cpplint 和 CMake - 将警告视为错误并失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61632697/