1 打开Qt,点击Help-->About Plugins...,在ClangCodeModel后打勾;
2 点击 Tools-->Options-->Analyer-->Manage-->Clang-Tidy static analyzer checks,点击Copy复制一份,选中Clang-Tidy static analyzer checks(Copy),点击Clazy,选择Level0,level1...;
3 点击Analyze-->Clang-Tidy and Clazy即可。
1 打开Qt,点击Help-->About Plugins...,在ClangCodeModel后打勾;
2 点击 Tools-->Options-->Analyer-->Manage-->Clang-Tidy static analyzer checks,点击Copy复制一份,选中Clang-Tidy static analyzer checks(Copy),点击Clazy,选择Level0,level1...;
3 点击Analyze-->Clang-Tidy and Clazy即可。