编程规范
发布日期:2021-05-10 05:06:24 浏览次数:15 分类:精选文章

本文共 2413 字,大约阅读时间需要 8 分钟。

Google ��� C++ ���������������������������������

��������������������������������������������������������������������������������������������������������������������������� Google C++ ���������������������������������������

1. Google C++ ������������������

Google ������������ C++ ������������������������������������������������������������������������������������������������������������

  • ������������������������������������������������������������ /** @file */���
  • ������_style��������������� modern C++ ��������������������������������������������� using namespace std;���
  • ��������������������������� tabs ��������� tabs ��������� tabs ��� spaces���
  • ������������������������ /* */ ��������������� //Sy guards.
  • ������������������������������������������������������������������

2. ������������������������

��������� Google ������������������������ project-specific style guides ������������������������

  • C++Guide.xml���������������������������������������������������������
  • ������������: ������������������������������������������������������������������������������

3. ������������������

��������� C++ ���������������������������������������������

  • ������������������������������������������������������������������ ...\n style ������������
  • ���������������������������������������������������������������������������������������
  • ������������������������ std::shared_ptr, std::unique_ptr ���������������������������������
  • ���������������������������������������������������������������������������������������������

4. ������������������

���������������������������������������������������������������������������������������������������������������������

  • ������������: ��������������������������� comment ������������������������\
  • ������������: ���������������������������������������������������������������������\
  • ������������: ������{{{������������������������������������������������������������������������`.

5. ������������

������������������������������������������������������������������������������������������������

  • Google C++ ������������: ���������������������������������������������\
  • ������������������������ c������ ������������: ���������������������������������������������������������\
  • MISRA-C2004 ������������: ���������������������������������������������������������������

���������������������������������������������������������������������������������������������������������������������

上一篇:SQL2008配置管理工具服务显示远程过程调用失败
下一篇:关于单片机内存地址存储空间分配

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2025年04月09日 13时33分49秒