Spice project coding style and coding conventions Table of Contents 1.C and C++ style......................................................................................................................3 2.Source Files............................................................................................................................3 2.1.Names..............................................................................................................................3 2.2.Line width.........................................................................................................................3 2.3.Tabs.................................................................................................................................3 2.4.White spaces...................................................................................................................3 2.5.New Line..........................................................................................................................3 3.Comparing...............................................................................................................................3 4.TRUE, FALSE and NULL........................................................................................................3 5.Static storage initialization......................................................................................................4 6.Fixme and todo.......................................................................................................................4 7.ASSERT..................................................................................................................................4 8.sizeof ......................................................................................................................................4 9.const........................................................................................................................................4 10.goto.......................................................................................................................................4 11.Defining Constant values......................................................................................................4 12.void argument.......................................................................................................................5 13.Short functions......................................................................................................................5 14.Return on if............................................................................................................................5 15.Names...................................................................................................................................5 16.Optimization..........................................................................................................................6 17.Spacing.................................................................................................................................6 18.Function Indentation..............................................................................................................6 19.Branching indentation...........................................................................................................7 20.Types indentation .................................................................................................................8 21.Vertical indentation................................................................................................................8 22.Multi line macro indentation..................................................................................................9 23.Multi line array indentation....................................................................................................9 24.C++........................................................................................................................................9 24.1.One super......................................................................................................................9 24.2.Data members...............................................................................................................9 24.3.Object reference............................................................................................................9 24.4.Templates......................................................................................................................9 24.5. '*' and '&'.....................................................................................................................10 24.6.Class indentation.........................................................................................................10 24.7.Constructor indentation................................................................................................11 24.8.bool..............................................................................................................................11 24.9.Operator overloading...................................................................................................11 24.10.AutoRef and AutoPtr..................................................................................................11 25.Spice client..........................................................................................................................11 25.1.#ifdef PLATFORM.......................................................................................................11 25.2.Use standard macros...................................................................................................11 1.
- 粉丝: 52
- 资源: 13
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 硕飞烧录器上位机软件及nand flash制作烧录文件及烧录方法
- genad-hGridSample-test.hbm
- 通信原理(第七版 樊昌信 曹丽娜)思维导图
- 基于python的网络爬虫爬取天气数据及可视化分析python大作业源码
- 老鼠图像目标检测数据【已标注,约1100张数据,YOLO 标注格式】
- 简易制作java1.8环境的docker镜像包arm64
- C#课程的最终大作业,个人Blog带db数据库文件winform
- 技术册投标文件的的查重
- J6上板测试模型,原始版本
- 基于python的网络爬虫爬取天气数据及可视化分析系统源码
- 基于 springboot+vue 的高校宿舍管理系统设计与实现 前端:Vue3 后端Springboot 数据库MySQL 含参考Word 可作为毕设参考,项目完整拿来即用 有数据库文件
- 基于java的商城积分系统(编号:90821116).zip
- 基于Java的电影院售票管理系统(编号:63808153).zip
- 基于java的电缆行业生产管理系统(编号:474342100).zip
- 基于java的网上订餐系统(编号:96717170).zip
- 基于python的网络爬虫爬取天气数据及可视化分析项目源码