从命令行自动应用 Clang 的修复提示
Apply Clang's fix-it hints automatically from command line
Clang(和GCC(编译错误可以附带有关如何修复它们的建议:"修复提示"。Clang(或者另一个LLVM工具(是否有应用这些提示的选项?我在 https://clang.llvm.org/docs/UsersManual.html 中看不到一个。显然,这样的程序可以使用-fdiagnostics-parseable-fixits
编写;这不是我要问的。
是的。
-fix-only-warnings Apply fix-it advice only for warnings, not errors -fix-what-you-can Apply fix-it advice even in the presence of unfixable errors -fixit-recompile Apply fix-it changes and recompile -fixit-to-temporary Apply fix-it changes to temporary files -fixit=<value> Apply fix-it advice creating a file with the given suffix -fixit Apply fix-it advice to the input source
相关文章:
- 奇怪的结构&GCC&clang(void*返回类型)
- 数据成员SFINAE的C++17测试:gcc vs clang
- 当我编译webrtc服务器时,Windows上只支持clang-cl
- 为什么在Windows上的VS 2019和Clang 9中"size_t"在没有标题的情况下工作
- 我可以将一个用clang c++11编译的对象与另一个用c++17编译的对象链接起来吗
- Clang bug?使用指针作为模板参数
- clang整洁10忽略了我的NOLINT命令
- 如何防止clang格式在流运算符调用之间添加换行符<<
- 在clang++预处理器中确定gcc工具链版本
- 为什么 Clang 不允许"and"作为函数名称?
- 带有 -stdlib=libc++ 的 clang++ 9.0.1 找不到<optional>
- clang格式:宏的缩进
- CLANG 编译器 说:变量"PTR"可能未初始化
- clang格式:禁用排序包含
- 为什么lambda在clang上崩溃而不是在gcc上崩溃
- gcc和clang在表达式是否为常量求值的问题上存在分歧
- 循环展开 - G++ 与 Clang++
- 如何使用Clang/GCC在Mac上为C/C++设置VSCode
- 一位朋友将模板函数缩写为clang和gcc
- 从命令行自动应用 Clang 的修复提示