Skip to content

wpaladins/refactoring-2nd-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

《重构(第2版)》书中代码的C++实现

测试

  • 使用 googletest 实现单元测试
  • googletest 以 git submodule 方式引入,需使用以下方式 clone 本项目:
    git clone --recurse-submodules https://github.com/wpaladins/refactoring-2nd-cpp.git
  • 使用 VSCode 插件 C++ TestMate 可以一键运行全部测试用例

头文件保护

  • 使用 VSCode 插件 C/C++ Include Guard 自动生成头文件保护
  • 配置如下
    {
        "C/C++ Include Guard.Macro Type": "Filepath",
        "C/C++ Include Guard.Comment Style": "Line",
        "C/C++ Include Guard.Remove Extension": false,
        "C/C++ Include Guard.Skip Comment Blocks": true,
        "C/C++ Include Guard.Prefix": "REFACTORING_2ND_",
        "C/C++ Include Guard.Path Depth": 0,
        "C/C++ Include Guard.Path Skip": 0,
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages