value in opts: if op == "-i": input_file = value elif op == "-o": ...
要说静态分析工具中的“多面手”, Clang-Tidy 绝对算得上一个。它不仅能帮你发现潜在的Bug,还能自动重构代码,顺手优化一下性能。更重要的是,这玩意儿对现代C++的支持特别好,什么C++11、C++17、C++20,它都能玩得转。温馨提示 :Clang-Tidy的规则是可以自定义的,比如你想强制所有变量名用小写开头,它也能帮你检...
There are currently many checks of clang-tidy, which is listed here: http://clang.llvm.org/extra/clang-tidy/checks/list.html. This repository provides detailed comments about all these checks. - 整理初步的google和cert检查项 · whiskey-ibuprofen/ClangTid