Skip to content

Commit

Permalink
feat: 添加 PPP Style Guide 到对应位置
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Nov 1, 2024
1 parent 4221930 commit 19d8f74
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion _static/links.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
.. _`Clang-Tidy 诊断选项列表`: https://clang.llvm.org/extra/clang-tidy/checks/list.html

.. _`Guidelines For snake_case Concept Naming`: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1851r0.html
.. _`C++ Core Guidelines`: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines
.. _`PPP Style Guide (天鹅书风格指南)`: https://www.stroustrup.com/PPP-style.pdf
.. _`C++ Core Guidelines (C++ 核心准则)`: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines
.. _`Google C++ Style Guide`: https://google.github.io/styleguide/cppguide.html
.. _`SEI CERT C++ Coding Standard`: https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?pageId=88046682
.. _`Chromium C++ style guide`: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/styleguide/c++/c++.md
Expand Down
2 changes: 1 addition & 1 deletion cpp/main.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ C++ 环境配置
C++ 拥有 "向后兼容性", 即新版本也能直接使用依据旧版本编写的代码.
这种 "向后兼容性" 本意是为了让程序员流畅地学习新版本特性, 同时保证旧有代码依然能执行, 但却被人利用来躲在旧版本舒适区.

新版本 C++ 拥有更简单的语法、更灵活的特性, 一套完整规范的 `C++ Core Guidelines`_ 和每年举行的诸多社区分享活动 (CppCon、CppNow、cpponsea……).
新版本 C++ 拥有更简单的语法、更灵活的特性, 一套完整规范的 `C++ Core Guidelines (C++ 核心准则)`_ 和每年举行的诸多社区分享活动 (CppCon、CppNow、cpponsea……).

.. _应试教育学习路径:

Expand Down
2 changes: 1 addition & 1 deletion faq/class_invariant/main.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
示例: 最简分式
========================================================================================================================

`C++ Core Guidelines`_ 将不变式定义为 "程序某一时刻或某一段时间里必须得到满足的条件", 对于类而言, 就是 **类的数据成员自己和之间的逻辑关系**.
`C++ Core Guidelines (C++ 核心准则)`_ 将不变式定义为 "程序某一时刻或某一段时间里必须得到满足的条件", 对于类而言, 就是 **类的数据成员自己和之间的逻辑关系**.

例如我们打算实现最简分式类, 则根据最简分式的数学定义, 可以将分子、分母作为数据成员, 并且分子分母应该满足下列关系:

Expand Down
2 changes: 1 addition & 1 deletion faq/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Visual Studio 特定问题
核心准则
***********************************************************************************************************************

为了配合常见问题解答, 对 `C++ Core Guidelines`_ 中的部分准则进行调整并翻译.
为了配合常见问题解答, 对 `C++ Core Guidelines (C++ 核心准则)`_ 中的部分准则进行调整并翻译.

.. toctree::
:maxdepth: 1
Expand Down
5 changes: 3 additions & 2 deletions learning_map/main.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
- `How to Ask For C++ Coding Help <http://www.gregcons.com/KateBlog/HowToAskForCCodingHelp.aspx>`_
- `Bjarne Stroustrup's Homepage`_
- `Standard C++ <https://isocpp.org/>`_
- `C++ Core Guidelines`_
- `C++ Core Guidelines (C++ 核心准则)`_

.. _学习大纲_基础:

Expand Down Expand Up @@ -292,7 +292,8 @@

更多见于 :ref:`学习大纲_常用网站资源`.

- `C++ Core Guidelines`_
- `PPP Style Guide (天鹅书风格指南)`_
- `C++ Core Guidelines (C++核心准则)`_
- `Guidelines For snake_case Concept Naming`_
- `Google C++ Style Guide`_
- `SEI CERT C++ Coding Standard`_
Expand Down
2 changes: 1 addition & 1 deletion theory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
编程思维
-----------------------------------------------------------------------------------------------------------------------

- `C++ Core Guidelines`_
- `C++ Core Guidelines (C++ 核心准则)`_
- 《Elements of Programming》
- `C++ Seasoning - Sean Parent - GoingNative 2013`_ 及 Sean Parent 其他公开视频
- 《Effective Modern C++》
Expand Down

0 comments on commit 19d8f74

Please sign in to comment.