c++ - 使用谷歌风格命名约定在 vscode 中 lint c++
问题描述
我正在寻找一种方法来 lint c++ 代码以匹配 google 样式指南命名约定。例如,如果我有
const int lDaysInAWeek = 7; // Bad - should start with a "k"
std::string tableName; // Bad - mixed case. Variables should be lowercase with underscores.
void OpenFileorDie(); // Bad - functions should start with a capital letter and have a capital letter for each new word
我想在悬停时有曲线和 QuickFix 选项。有没有办法配置 vscode 来帮助我遵守约定?
解决方案
推荐阅读
- windows - 如何检索用户证书的私钥?
- c - hiredis 使用 TLS 失败
- mysql - 如何减去和除以不同日期的 3 个子查询?
- c# - ANTLR 访问者单元测试在一条规则上成功,但在另一条规则上失败
- sql-server - 变量值可以传递给局部变量吗?然后可以使用本地变量来构建动态 SQL 查询吗?
- python - 如何更改可选函数参数的默认值
- python-3.x - 尝试使用循环顺序抓取多个页面以更改 url
- html - 使用 css 定位与其他东西具有相同类的东西
- ms-access-2007 - 访问表中的回车
- mysql - 使用 UNION 的大型复杂查询允许我按 ORDER BY 但不允许 GROUP - 为什么?