码迷,mamicode.com
首页 > 编程语言 > 详细

Google C++ Style Guide 阅读笔记 2

时间:2015-04-06 14:14:22      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:c++

Inline Functions

  • 10行以上的函数不要内联。
  • 可以使用编译器自动内联。

Function Parameter Ordering

  • 参数顺序: 输入, 输出
  • 输入通常是值或者常量引用

Names and Order of Includes

  • 举例,在dir/foo.h 中:
    1. dir/foo.h
    2. C system files
    3. C++ system files
    4. Other libraries .h files
    5. Your project’s .h files

Google C++ Style Guide 阅读笔记 2

标签:c++

原文地址:http://blog.csdn.net/wl2002200/article/details/44901719

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!