报告实参标识符名称和形参名称之间的不匹配。 这可以帮助检测编程错误,例如,当您意外切换同一类型的实参时。 原始研究论文可在此处找到。

示例:


  const User* get_User(int64_t company_id, int64_t user_id) {
    return new User{company_id, user_id, "foo"};
  }

  void call_User(int64_t company_id, int64_t user_id) {
    const User* user = get_User(user_id, company_id); // potential issue here
    //...
  }

使用下面的复选框可检查名称少于三个符号的实参。

了解更多。

2018.2 的新功能