SongJiangzhou/cpp_guidelines
Enforce consistent C++ style and best practices across your codebase. Analyze naming, memory safety, and const correctness, and get actionable modernization suggestions up to C++23. Accelerate reviews with ready-made prompts and quick access to curated guidelines.
Versions
unversionedlatestTools 5
check_naming 检查 C++ 标识符命名是否符合规范 参数: identifier: 要检查的标识符名称 category: 标识符类别(variable/constant/function/class/namespace/member_variable/template_parameter/file_naming) 返回: 检查结果,包含是否符合规范、详细说明和建议
check_include_guard 检查 C++ 头文件的包含保护是否正确 参数: code: 头文件的完整代码 file_path: 可选的文件路径,用于生成建议的保护宏名 返回: 检查结果,包含是否符合规范、详细说明和建议
analyze_memory_safety 分析 C++ 代码中的内存安全问题 参数: code: 要分析的 C++ 代码 返回: 内存安全分析报告,包括潜在的内存泄漏、悬空指针、不安全操作等
suggest_modern_cpp 建议将代码升级为现代 C++ 写法 参数: code: 要分析的 C++ 代码 target_standard: 目标 C++ 标准(cpp11/cpp14/cpp17/cpp20/cpp23,默认 cpp17) 返回: 现代化建议报告,包括可以使用的新特性和重写示例
check_const_correctness 检查 C++ 代码中的 const 正确性 参数: code: 要检查的 C++ 代码 返回: const 正确性检查报告,包括缺少 const 的地方和改进建议
Permissions 3
network medium filesystem low env_vars low