簡體   English   中英

從命令行自動應用Clang的fix-it提示

[英]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 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM